File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,7 @@ patch_binary() {
201201 echo " Patching dependency ${name} "
202202 strip " $1 "
203203 " ${patchelf} " --set-rpath ' $ORIGIN' " $1 "
204- if [ " $( command -v symlinks) " ]; then
205- ln -s " $1 " " ${APPDIR} /usr/lib/${name} "
206- symlinks -c " ${APPDIR} /usr/lib/${name} "
207- else
208- ln -rs " $1 " " ${APPDIR} /usr/lib"
209- fi
204+ ln -s " $2 " /" $1 " " ${APPDIR} /usr/lib/${name} "
210205 fi
211206 else
212207 echo " Patching C-extension module ${name} "
@@ -240,9 +235,10 @@ cd "$APPDIR/${prefix}/bin"
240235python=$( ls " python" ? " ." ? )
241236mkdir -p " ${APPDIR} /usr/lib"
242237cd " ${APPDIR} /${prefix} /lib/${python} "
243- find " lib-dynload" -name ' *.so' -type f | while read file; do patch_binary " ${file} " ; done
244- find " site-packages" -name ' *.so' -type f | while read file; do patch_binary " ${file} " ; done
245- find " site-packages" -name ' lib*.so*' -type f | while read file; do patch_binary " ${file} " ; done
238+ relpath=" ../../${prefix} /lib/${python} "
239+ find " lib-dynload" -name ' *.so' -type f | while read file; do patch_binary " ${file} " " ${relpath} " ; done
240+ find " site-packages" -name ' *.so' -type f | while read file; do patch_binary " ${file} " " ${relpath} " ; done
241+ find " site-packages" -name ' lib*.so*' -type f | while read file; do patch_binary " ${file} " " ${relpath} " ; done
246242
247243
248244# Copy any TCl/Tk shared data
You can’t perform that action at this time.
0 commit comments