Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78144 - [nginx] Enable ngx_http_random_index_module

Attached to Project: Arch Linux
Opened by Alexander Tumin (iamtakingiteasy) - Friday, 07 April 2023, 23:16 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Saturday, 16 September 2023, 09:21 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Levente Polyak (anthraxx)
Giancarlo Razzolini (grazzolini)
T.J. Townsend (blakkheim)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I would like to propose enabling nginx random index module ( http://nginx.org/en/docs/http/ngx_http_random_index_module.html ).

While not often required, it can be extremely useful whenever serving a random file from a directory is required, especially if said directory regularly updated.

There is no simple alternatives that don't involve external implementations, whole scripting engines or enumerating every file in configuration individually, which may not be feasible on large file counts or frequent changes.

Simply adding --with-http_random_index_module to ABS PKGBUILD is sufficient, but without standardized methods of customizing upstream PKGBUILDs on user side during updates, it renders the process cumbersome and updates risky, with high likelihood of temporary downtimes, hence this feature request, to avoid the need altogether.
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Saturday, 16 September 2023, 09:21 GMT
Reason for closing:  Implemented
Additional comments about closing:  nginx-1.24.0-2
Comment by Toolybird (Toolybird) - Saturday, 08 April 2023, 21:55 GMT
Mentioned in the Wiki at [1]. See also Arch guiding principle numero uno [2]. I wouldn't get your hopes up.

[1] https://wiki.archlinux.org/title/Nginx#Compiling_with_additional_modules
[2] https://wiki.archlinux.org/title/Arch_Linux#Simplicity
Comment by novenary (Streetwalrus) - Sunday, 14 May 2023, 10:39 GMT
I was on my way to request exactly this and found this bug was already open, so +1 from me.
Something so simple shouldn't force me to write a backend application.

Toolybird: I'm not sure the simplicity argument stands here. To paraphrase the wiki page you linked, the main point is to avoid unnecessary patching and changing default (runtime) configuration.
Arch is not a cookie-cutter minimalist distro, enabling build-time-optional features is normal, and I've had such requests fulfilled before.

The suggested workaround is not something I find particularly acceptable either, and it should probably be removed from the wiki. I'm pretty sure nginx-src is provided to build out-of-tree modules against, rather than building nginx (as root!) and running `make install` outside of pacman's control. I'm not a maintainer so please correct me if I'm wrong, but I've been using Arch for long enough to see a huge red flag here.

Loading...