Skip to content

allow to build with system liburiparser #18886

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

remicollet
Copy link
Member

To avoid another bundled library

Test suite with version 0.9.8 passes

Notice: It seems the bundled version is not really 0.9.8, but rather a git snapshot

New build option --with-external-uriparser (as we already have --with-external-gd and --with-external-libcrypt)
Use bundled sources by default.

$URIPARSER_DIR/src/UriRecompose.c $URIPARSER_DIR/src/UriResolve.c $URIPARSER_DIR/src/UriShorten.c"
URI_CFLAGS="-DURI_STATIC_BUILD"
else
PKG_CHECK_MODULES([LIBURIPARSER], [liburiparser >= 0.9.8])
Copy link
Member Author

@remicollet remicollet Jun 20, 2025

Choose a reason for hiding this comment

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

I used the same version than the bundled one (0.9.8 release in May 2024, fixing 2 CVEs)

May be interesting to see if 0.9.7 is OK as this seems to be the version in debian (released in Oct 2022)

ping @oerdnj

Copy link
Member Author

Choose a reason for hiding this comment

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

So will have to be 0.9.9 later (in PR #18836)

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps also an even later version, since that PR also is not fully implementing the RFC. The "withers" to update an URI are missing and might also require some upstream changes.

@TimWolla
Copy link
Member

Test suite with version 0.9.8 passes

That's likely because the library is not actually used yet. See #18836. The current git HEAD of uriparser contains some fixes contributed by Máté.

@remicollet
Copy link
Member Author

That's likely because the library is not actually used yet

:(

BTW, I think we should allow building with system libraries, and bundled libraries should be exceptional

It seems a new version (0.9.9) will required (and we should encourage upstream to release it with needed patches)

@TimWolla
Copy link
Member

It seems a new version (0.9.9) will required

Yes.

(and we should encourage upstream to release it with needed patches)

Yes, once all the necessary changes are included upstream.

@kocsismate
Copy link
Member

It seems a new version (0.9.9) will required (and we should encourage upstream to release it with needed patches)

Yes, 0.9.9 will likely be the next release for sure according to this review suggestion: uriparser/uriparser#230 (comment)

@remicollet remicollet force-pushed the issue-liburiparser branch from 59a21c3 to 2e6ae0e Compare June 20, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants