Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
24b08b11
Commit
24b08b11
authored
Jan 22, 2009
by
goro
Browse files
Update rpath handling
parent
f5714575
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/shipping/prepare-linux-qt-for-shipping.sh
View file @
24b08b11
...
...
@@ -76,20 +76,6 @@ build() {
ret
=
$?
;
[
${
ret
}
=
0
]
||
exit
${
ret
}
}
fix_rpath
()
{
folder
=
$1
pattern
=
$2
rpath
=
$3
(
cd
"
${
destdir
}
"
||
die
"cd failed"
while
read
file
;
do
echo
"Fixing
${
file
}
"
chrpath
-r
"
${
rpath
}
"
"
${
file
}
"
2>&1 |
sed
's/^/\t/'
done
< <
(
find
"
${
folder
}
"
-type
f
-name
"
${
pattern
}
"
)
)
ret
=
$?
;
[
${
ret
}
=
0
]
||
exit
${
ret
}
}
inst
()
{
(
cd
"
${
dir
}
"
||
die
"cd failed"
...
...
@@ -98,19 +84,13 @@ inst() {
env
-i
"
${
MAKE
}
"
install
||
die
"make install failed"
fi
# Fix rpath's
cd
"
${
destdir
}
"
||
die
"cd failed"
# Fix files bin/*
fix_rpath bin
'*'
'$ORIGIN/../lib'
# Fix files lib/*.so
fix_rpath lib
'*.so.?.?.?.debug'
'$ORIGIN'
# Fix files examples/tools/*/*/*.so
fix_rpath examples/tools
'*.so'
'$ORIGIN/../../../lib'
# Fix files plugins/*/*.so
fix_rpath plugins
'*.so'
'$ORIGIN/../../lib'
find bin
-mindepth
1
-maxdepth
1
-type
f
-perm
-100
| xargs
-n
1 chrpath
-r
'$ORIGIN/../lib'
find lib
-mindepth
1
-maxdepth
1
-type
f
-perm
-100
| xargs
-n
1 chrpath
-r
'$ORIGIN'
find
.
-mindepth
3
-maxdepth
3
-type
f
-perm
-100
| xargs
-n
1 chrpath
-r
'$ORIGIN/../../lib'
find
.
-mindepth
4
-maxdepth
4
-type
f
-perm
-100
| xargs
-n
1 chrpath
-r
'$ORIGIN/../../../lib'
find
.
-mindepth
5
-maxdepth
5
-type
f
-perm
-100
| xargs
-n
1 chrpath
-r
'$ORIGIN/../../../../lib'
)
ret
=
$?
;
[
${
ret
}
=
0
]
||
exit
${
ret
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment