-
Notifications
You must be signed in to change notification settings - Fork 232
filter/config: restore “system‑first, bundled‑fallback” Brotli detection #172
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
mikelolasagasti
wants to merge
1
commit into
google:master
Choose a base branch
from
mikelolasagasti:config-options
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63ca02a made the bundled sub‑module mandatory by hard‑coding deps/brotli and linking the objects produced in ../out. This broke distribution builds that are required to link against the shared libbrotli already shipped by the system. This change brings back the original behaviour while integrating `pkg-config`: * Detect a system installation with `pkg-config libbrotlienc`; if found, use the reported cflags/libs and compile only the NGINX wrapper source. * If no suitable system copy exists, fall back to the bundled git sub‑module exactly as before. * Abort early with a clear error message when neither flavour is available, including instructions to initialise the sub‑module. No command‑line flags are needed for the common case; packagers simply omit the sub‑module and let `pkg-config` do the work, while end users who prefer the bundled copy keep the sub‑module checked out. Fixes: 63ca02a (“filter: require bundled Brotli out/ artifacts”) Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
BalkanMadman
added a commit
to BalkanMadman/gentoo
that referenced
this pull request
Jul 10, 2025
This imports a patch[1] from upstream GitHub PR. The patch links to the system Brotli lib using pkgconfig. Since the system Brotli lib is used in favour of the bundled Brotli lib, the commit drops bundled Brotli from the package. Many thanks to Mikel Olasagasti Uranga for writing the patch[1]. [1]: google/ngx_brotli#172 Closes: https://bugs.gentoo.org/959780 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
BalkanMadman
added a commit
to BalkanMadman/gentoo
that referenced
this pull request
Jul 22, 2025
…bbrotlienc This imports a patch[1] from upstream GitHub PR. The patch links to the system Brotli lib using pkgconfig. Since the system Brotli lib is used in favour of the bundled Brotli lib, the commit drops bundled Brotli from the package. Many thanks to Mikel Olasagasti Uranga for writing the patch[1]. [1]: google/ngx_brotli#172 Closes: https://bugs.gentoo.org/959780 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
BalkanMadman
added a commit
to BalkanMadman/gentoo
that referenced
this pull request
Jul 22, 2025
…bbrotlienc This imports a patch[1] from upstream GitHub PR. The patch links to the system Brotli lib using pkgconfig. Since the system Brotli lib is used in favour of the bundled Brotli lib, the commit drops bundled Brotli from the package. Many thanks to Mikel Olasagasti Uranga for writing the patch[1]. [1]: google/ngx_brotli#172 Closes: https://bugs.gentoo.org/959780 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
BalkanMadman
added a commit
to BalkanMadman/gentoo
that referenced
this pull request
Jul 22, 2025
…otlienc This imports a patch[1] from upstream GitHub PR. The patch links to the system Brotli lib using pkgconfig. Since the system Brotli lib is used in favour of the bundled Brotli lib, the commit drops bundled Brotli from the package. Many thanks to Mikel Olasagasti Uranga for writing the patch[1]. [1]: google/ngx_brotli#172 Closes: https://bugs.gentoo.org/959780 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
BalkanMadman
added a commit
to BalkanMadman/gentoo
that referenced
this pull request
Jul 22, 2025
…rotlienc This imports a patch[1] from upstream GitHub PR. The patch links to the system Brotli lib using pkgconfig. Since the system Brotli lib is used in favour of the bundled Brotli lib, the commit drops bundled Brotli from the package. Many thanks to Mikel Olasagasti Uranga for writing the patch[1]. [1]: google/ngx_brotli#172 Closes: https://bugs.gentoo.org/959780 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
gentoo-bot
pushed a commit
to gentoo/gentoo
that referenced
this pull request
Jul 23, 2025
…rotlienc This imports a patch[1] from upstream GitHub PR. The patch links to the system Brotli lib using pkgconfig. Since the system Brotli lib is used in favour of the bundled Brotli lib, the commit drops bundled Brotli from the package. Many thanks to Mikel Olasagasti Uranga for writing the patch[1]. [1]: google/ngx_brotli#172 Closes: https://bugs.gentoo.org/959780 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com> Part-of: #42955 Closes: #42955 Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
63ca02a made the bundled sub‑module mandatory by hard‑coding deps/brotli and linking the objects produced in ../out. This broke distribution builds that are required to link against the shared libbrotli already shipped by the system.
This change brings back the original behaviour while integrating
pkg-config:pkg-config libbrotlienc; if found, use the reported cflags/libs and compile only the NGINX wrapper source.No command‑line flags are needed for the common case; packagers simply omit the sub‑module and let
pkg-configdo the work, while end users who prefer the bundled copy keep the sub‑module checked out.Fixes: 63ca02a (“filter: require bundled Brotli out/ artifacts”)