Skip to content

check for broken libzip versions #5738

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

Closed
wants to merge 1 commit into from

Conversation

remicollet
Copy link
Member

@remicollet remicollet requested a review from nikic June 18, 2020 14:46
@remicollet
Copy link
Member Author

remicollet commented Jun 18, 2020

Notice the check for 1.3.1 is only needed for master, where the safety conditional was removed, as testing LIBZIP_VERSION_MICRO is broken when using libzip from git tree (something such as "1a").

P.S. Well, looks like the "a" char is not there anymore with current master

@@ -6,6 +6,30 @@ PHP_ARG_WITH([zip],
if test "$PHP_ZIP" != "no"; then
PKG_CHECK_MODULES([LIBZIP], [libzip >= 0.11])
Copy link
Member

Choose a reason for hiding this comment

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

After playing around with pkg-config a bit, it looks like this should also work:

PKG_CHECK_MODULES([LIBZIP], [libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0])

It prints something like:

Requested 'libzip != 1.5.1' but version of libzip is 1.5.1

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

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

Rewritten (or add it in your PR)

BTW, if wanted for 7.3 we can use pierrejoye/php_zip@353ecec (ping @cmb69 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants