Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unzip was not building with bzip2 support #18

Merged
merged 5 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build/unzip/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ configure_aarch64() {
}

pre_install() {
ldd $PROG | $EGREP -s libbz2 || logerr "unzip was built without bzip2"
$ELFEDIT -e dyn:dump -o simple $PROG | $EGREP -s 'libbz2\.so' \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ELFEDIT -e dyn:dump -o simple $PROG | $EGREP -s 'libbz2\.so' \
$ELFEDIT -r -e 'dyn:tag NEEDED' -o simple $PROG | $EGREP -s 'libbz2\.so' \

This makes sure that elfedit opens it read-only, which should be fine, but if the users are off will throw this off. Tihs also only dumps the needed tag, so that way if something else is in here and matches for some weird reason, you'll not be thrown off. Here's an example output:

rm@beren:~$ elfedit -r -e 'dyn:tag NEEDED' /usr/bin/ls
     index  tag                value
       [1]  NEEDED            0x693               libsec.so.1
       [3]  NEEDED            0x6b8               libnvpair.so.1
       [5]  NEEDED            0x6d0               libcmdutils.so.1
       [7]  NEEDED            0x6e1               libcurses.so.1
       [8]  NEEDED            0x6f0               libc.so.1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's better, done.

|| logerr "unzip was built without bzip2"
save_variable MAKE_INSTALL_ARGS
MAKE_INSTALL_ARGS+=" prefix=$DESTDIR$PREFIX"
}
Expand Down