Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
tci-gateway-module
Grpc
Commits
6b2b05ee
Commit
6b2b05ee
authored
10 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to build_deb_packages script to allow running on Docker
parent
cad2782c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/distpackages/build_deb_packages.sh
+9
-2
9 additions, 2 deletions
tools/distpackages/build_deb_packages.sh
with
9 additions
and
2 deletions
tools/distpackages/build_deb_packages.sh
+
9
−
2
View file @
6b2b05ee
...
@@ -35,7 +35,13 @@ mkdir -p $deb_dest
...
@@ -35,7 +35,13 @@ mkdir -p $deb_dest
version
=
'0.8.0.0'
version
=
'0.8.0.0'
arch
=
`
uname
-p
`
if
[
-f
/.dockerinit
]
;
then
# We're in Docker where uname -p returns "unknown".
arch
=
x86_64
else
arch
=
`
uname
-p
`
fi
if
[
$arch
!=
"x86_64"
]
if
[
$arch
!=
"x86_64"
]
then
then
echo
Unsupported architecture.
echo
Unsupported architecture.
...
@@ -77,13 +83,14 @@ do
...
@@ -77,13 +83,14 @@ do
# create symlinks to shared libraries
# create symlinks to shared libraries
for
libname
in
$arch_lib_dir
/
*
.a
for
libname
in
$arch_lib_dir
/
*
.a
do
do
base
=
`
basename
-s
.a
$libname
`
base
=
`
basename
$libname
.a
`
ln
-s
$base
.so.
$version
$arch_lib_dir
/
$base
.so
ln
-s
$base
.so.
$version
$arch_lib_dir
/
$base
.so
done
done
fi
fi
# Adjust mode for some files in the package
# Adjust mode for some files in the package
find
$tmp_dir
/
$pkg_name
-type
d | xargs
chmod
755
find
$tmp_dir
/
$pkg_name
-type
d | xargs
chmod
755
find
$tmp_dir
/
$pkg_name
-type
d | xargs
chmod
a-s
find
$tmp_dir
/
$pkg_name
-type
f | xargs
chmod
644
find
$tmp_dir
/
$pkg_name
-type
f | xargs
chmod
644
chmod
755
$tmp_dir
/
$pkg_name
/DEBIAN/
{
postinst,postrm
}
chmod
755
$tmp_dir
/
$pkg_name
/DEBIAN/
{
postinst,postrm
}
...
...
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