Skip to content

Commit

Permalink
skip dh_strip error to ignore --compress-debug-sections error
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jan 6, 2025
1 parent 3628f11 commit 89a759a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ build_deb(){
sed -i 's@/opt/ros/debian@/opt/ros/one@g' debian/rules
# skip dh_shlibdeps, because some pip modules, speech_recognition for example, contains x86/x86_64/win32/mac binaries
sed -i '/dh_shlibdeps / s@$@ || echo "Skip dh_shlibdeps error!!!"@' debian/rules
# ignore dh_strip error, from jammy, 'objcopy' added '--compress-debug-sections' and this cause error on 'numpy/core/_multiarray_umath.cpython-310-x86_64-linux-gnu.so has a corrupt string table index - ignoring'
echo -e 'override_dh_strip:\n dh_strip || true\n' |tee -a debian/rules

sed -i "1 s@([^)]*)@($pkg_version)@" debian/changelog

Expand Down

0 comments on commit 89a759a

Please sign in to comment.