Debian build issues
gordboy opened this issue · 1 comments
Description
Debian build has unstripped libs and exes and has random user:group
ownership. It is also unusually large.
Fix for now
Unpack .deb
file, strip stuff, fix ownerships, recalculate md5sums, amend DEBIAN/control
with new install size then repack. This is not trivial for the n00b.
File sizes before and after repack
-rw-r--r-- 1 gordboy gordboy 50613548 Dec 23 10:43 r2ghidra_5.8.0_amd64.deb
-rw-r--r-- 1 gordboy gordboy 9422720 Dec 23 11:31 r2ghidra_5.8.0_amd64.deb
Suggested partial fixes
Strip things
In dist/debian/build.sh
add section to strip things, similar to the way it is done in
https://github.com/radareorg/radare2/blob/master/sys/debian.sh
for radare2
Change zip format for tar
In dist/debian/deb.mk
change to xz
zip format by using
tar cJvf
and cpJvf
instead of
tar czvf
and tar cpzvf
similar to the way it is done in
https://github.com/radareorg/radare2/blob/master/dist/debian/deb_hand.mak
for radare2
Good work on all the recent fixes both here and in the radare2 mothership.
And best wishes to you and the team.