Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prod_build_cellframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
prod_build_cellframe-node
Commits
55185bc2
Commit
55185bc2
authored
2 years ago
by
dpuzyrkov
Browse files
Options
Downloads
Patches
Plain Diff
[+] install_dependencies in debian pre-build, zlib1g-dev in depends.
parent
97321d84
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
linux/debian/conf/dependencies
+1
-1
1 addition, 1 deletion
linux/debian/conf/dependencies
linux/debian/scripts/pre-build.sh
+41
-0
41 additions, 0 deletions
linux/debian/scripts/pre-build.sh
linux/ubuntu/scripts/pre-build.sh
+3
-1
3 additions, 1 deletion
linux/ubuntu/scripts/pre-build.sh
with
45 additions
and
2 deletions
linux/debian/conf/dependencies
+
1
−
1
View file @
55185bc2
PKG_DEPS="libjson-c-dev libsqlite3-dev libmagic-dev libcurl4-gnutls-dev traceroute libpq-dev libzip-dev lib
z
-dev"
PKG_DEPS="libjson-c-dev libsqlite3-dev libmagic-dev libcurl4-gnutls-dev traceroute libpq-dev libzip-dev
z
lib
1g
-dev"
This diff is collapsed.
Click to expand it.
linux/debian/scripts/pre-build.sh
+
41
−
0
View file @
55185bc2
#!/bin/bash
#installing required dependencies
check_packages
()
{
IFS
=
" "
local
PKG_DEPPIES
=
$(
echo
$PKG_DEPS
|
sed
's/\"//g'
)
for
element
in
"
$PKG_DEPPIES
"
;
do
echo
"[DEBUGGA] Checking if
$element
is installed"
if
!
dpkg-query
-s
$element
;
then
echo
"[WRN] Package
$element
is not installed. Starting installation"
return
1
fi
done
return
0
}
install_dependencies
()
{
if
check_packages
;
then
echo
"[INF] All required packages are installed"
else
echo
""
local
PKG_DEPPIES
=
$(
echo
$PKG_DEPS
|
sed
's/\"//g'
)
echo
"[DEBUGGA] Attempting to install
$PKG_DEPPIES
"
if
sudo
/usr/bin/apt-get
install
-y
$PKG_DEPPIES
;
then
echo
""
echo
"[INF] Packages were installed successfully"
else
echo
"[ERR] can
\'
t install required packages. Please, check your package manager"
echo
"Aborting"
exit
1
fi
fi
return
0
}
install_dependencies
#. prod_build/general/install_dependencies
.
prod_build/general/pre-build.sh
#VERSIONS and git
export_variables
"prod_build/general/conf/*"
...
...
This diff is collapsed.
Click to expand it.
linux/ubuntu/scripts/pre-build.sh
+
3
−
1
View file @
55185bc2
...
...
@@ -30,7 +30,7 @@ check_packages() {
install_dependencies
()
{
if
check_packages
>>
/dev/null
;
then
if
check_packages
;
then
echo
"[INF] All required packages are installed"
else
echo
""
...
...
@@ -69,6 +69,8 @@ install_dependencies() {
#
#}
install_dependencies
#. prod_build/general/install_dependencies
.
prod_build/general/pre-build.sh
#VERSIONS and git
export_variables
"prod_build/general/conf/*"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment