Bug 291245 - www/nginx: compile erros with njs and zstd options selected
Summary: www/nginx: compile erros with njs and zstd options selected
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-27 12:11 UTC by Krzysztof
Modified: 2025-12-02 13:06 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
update patch (4.09 KB, patch)
2025-11-27 12:11 UTC, Krzysztof
no flags Details | Diff
poudriere testport log (636.41 KB, text/plain)
2025-11-27 12:11 UTC, Krzysztof
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof 2025-11-27 12:11:09 UTC
Created attachment 265671 [details]
update patch

* www/nginx with njs selected without zstd - no errors
* www/nginx with zstd selected without njs - no errors

when both options selected there are errors about quickjs.h missing.

After some debugging I've found, that lang/quickjs should be added as dependency. I've tried lang/quickjs-ng as dependency, but it seems that njs is using quickjs, not quickjs-ng.

So I've made a patch - when applied nginx compiled correctly with njs and zstd enabled.

It was tested with poudriere - logfile is attached also.
Comment 1 Krzysztof 2025-11-27 12:11:57 UTC
Created attachment 265672 [details]
poudriere testport log

testport or bulk logfile
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-27 15:04:09 UTC
Maybe www/angie and www/freenginx affected too.
Comment 3 Sebastian Oswald 2025-12-02 13:06:09 UTC
(In reply to Vladimir Druzenko from comment #2)

Thanks for bringing this to my attention.

I believe angie isn't affected as njs and zstd are external modules for angie. NJS is available via www/angie-module-njs and builds fine (just did a poudriere bulk on 14.3-RELEASE + latest); the zstd module is not yet in ports.
I already have the zstd module on my list and even a working Makefile (at least it built a few weeks ago...), but wanted to postprone adding a new port until I reworked/untangled the Makefiles for angie and its modules to properly reflect upstream versions (It's almost finished, but $life was rather busy the last 2 months).