amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Package Request] - nginx-module-njs

Open weavage opened this issue 4 months ago • 4 comments

What package is missing from Amazon Linux 2023? Please describe and include package name. nginx-module-njs njs is an nginx module that extends the server's functionality through JavaScript scripting, enabling the creation of custom server-sideligic and more.

nginx-module-njs-debuginfo Debug symbols for the nginx-module-njs package

Is this an update to existing package or new package request? New

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. I did not find it on the package list for AL2, but it is available from the nginx repo.

Any additional information you'd like to include. (use-cases, etc) It would appear that this module (and possibly others?) from the upstream nginx repo are looking for an nginx provides string with an 'r' in it. Example: nginx-r1.28.1. The Amazon Linux repo nginx package does not provide this string. I can't speak to the compatibility implications, but adding that provides string to Amazon's build of nginx would allow people to install upstream modules without needing to request a new package every time.

weavage avatar Aug 22 '25 18:08 weavage

I don't see any r in the AL2 and AL2023 rpm packages built by Nginx. For example, https://nginx.org/packages/amzn/2023/x86_64/RPMS/

adding that provides string to Amazon's build of nginx would allow people to install upstream modules without needing to request a new package every time.

If this is fine for your case to use upstream modules directly, I wonder if you tried rpm repositories for AL2/AL2023 with packages built by the upstream (Nginx)? The repositories can be added as described here: https://nginx.org/en/linux_packages.html#Amazon-Linux

alexey-tsvetnov avatar Aug 22 '25 20:08 alexey-tsvetnov

Here you can see the upstream package provides the r:

~]# dnf repoquery --provides  nginx-1.26.3
Last metadata expiration check: 6:46:53 ago on Mon Aug 25 08:31:30 2025.
config(nginx) = 1.26.3-1.amzn2023.ngx
nginx = 1.26.3-1.amzn2023.ngx
nginx = 1:1.26.3-1.amzn2023.0.1
nginx(abi) = 1.26.3
nginx(x86-64) = 1.26.3-1.amzn2023.ngx
nginx(x86-64) = 1:1.26.3-1.amzn2023.0.1
nginx-r1.26.3  <----
webserver

Here you can see the module requires the r:

~]# dnf repoquery --requires  nginx-module-njs
Last metadata expiration check: 6:49:07 ago on Mon Aug 25 08:31:30 2025.
/bin/sh
libc.so.6(GLIBC_2.34)(64bit)
...
libz.so.1()(64bit)
nginx-r1.22.1
nginx-r1.24.0
nginx-r1.26.0
nginx-r1.26.1
nginx-r1.26.2
nginx-r1.26.3  <----
nginx-r1.28.0
rtld(GNU_HASH)

Here you can see the Amazon version does NOT provide the r:

~]# dnf --disablerepo=nginx-stable repoquery --provides  nginx-1.26.3
Last metadata expiration check: 6:51:28 ago on Mon Aug 25 08:31:30 2025.
nginx = 1:1.26.3-1.amzn2023.0.1
nginx(abi) = 1.26.3
nginx(x86-64) = 1:1.26.3-1.amzn2023.0.1
webserver

Note that I only mentioned this as 'additional information', would it still possible to add the requested package?

weavage avatar Aug 25 '25 15:08 weavage

Any word on this package request?

weavage avatar Sep 10 '25 01:09 weavage

The possibility of adding this package is being discussed.

alexey-tsvetnov avatar Sep 10 '25 21:09 alexey-tsvetnov