Commit Graph
969829 Commits
Author SHA1 Message Date
Zurab Kvachadze d0abe4e81c www-nginx/ngx-brotli: new package, add 20231109
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:57 +01:00
Zurab Kvachadze 8e39e1bb8a www-nginx/ngx-set-misc: new package, add 0.33
The build system of this package automagically enables HMAC support
based on SSL functionality being enabled in the installed NGINX.

In order to enable this support independently, via a USE flag, a "hack"
is applied: only if GENTOO_USE_HMAC environmental variable and
preprocessor definition are defined, HMAC support is enabled.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:57 +01:00
Zurab Kvachadze 90d1b57864 www-nginx/ngx-encrypted-session: new package, add 0.09
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:56 +01:00
Zurab Kvachadze 22c08e6af2 www-nginx/ngx-echo: new package, add 0.63
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:55 +01:00
Zurab Kvachadze 7ed207261d www-nginx/ngx_devel_kit: new package, add 0.3.4
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:55 +01:00
Zurab Kvachadze fc76c57b63 www-servers/nginx: add 9999 live version, use nginx.eclass
This commit adds the live Git version of NGINX to the Gentoo tree,
making use of nginx.eclass.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:54 +01:00
Zurab Kvachadze c325bb7575 www-servers/nginx: add 1.29.0, use nginx.eclass
This commit makes NGINX employ new nginx.eclass. This adds the mainline
1.29.0 NGINX version to the Gentoo tree bringing a considerable
amount of changes:

    * NGINX is now fully slotted. Stable versions are in the 'stable'
      SLOT and mainline ones are in the 'mainline' SLOT. There is also a
      'live' slot for the latest git version.

    * All external modules have been unbundled from the main NGINX
      package. They will soon be available as separate packages in the
      www-nginx/ category. In addition, NGINX development kit
      (ngx_devel_kit) is no longer unconditionally statically built into
      NGINX binary.

    * LICENSE has been modified to reflect reality.

    * USE flag changes:

	1. "pcre", "pcre2" have been removed along with the dependency
	   on EOL libpcre1. Bug 886537, although it is not really closed
	   until old versions that still depend on libpcre1 are
	   treecleaned.

	2. "ktls" and "pcre-jit" have been removed completely since they
	   have no effect if system OpenSSL and libpcre are used (as is
	   always the case with NGINX on Gentoo).

	3. "threads" - removed, even though some really ancient
	   third-party modules break with this (e.g. mogilefs last time
	   I checked it). nginx.eclass enables pthreads support
	   unconditionally, see https://bugs.gentoo.org/868336.

	4. "vim-syntax" has been removed, as vimfiles are bundled with
	   NGINX, are more updated there and, therefore, are now
	   installed from the NGINX tarball.

	5. "http2" and "http3" have been moved to their
	   nginx_modules_http_v{2,3} counterparts where they actually
	   belong as regular modules.

	6. "ssl" has been moved to nginx_modules_{http,mail,stream}_ssl.

	7. "http-cache" has been removed. It does not even qualify to be
	   a USE flag: the flag just passes some argument to disable the
	   http cache, which (the cache) is not documented upstream at
	   all.

	8. "modules" USE flag has been added to control dynamic modules
	   support.

	9. A substantial amount of USE flags have been added for minor
	   HTTP, stream (bug 735020) and mail modules.

    * All the miscellaneous files (configuration file, confd, init and
      logrotate scripts, systemd service) have been revbumped. NGINX now
      ships with tmpfiles.d(5) configuration file (see below). This
      closes bugs 481456, 928131, 576414.

    * All the files that previously went into /etc/nginx are now stored
      in /usr/share/nginx, apart from nginx.conf.

    * NGINX's temporary files are now stored in /var/tmp/nginx, instead
      of /var/lib/nginx/tmp. The new directory is managed by
      systemd-tmpfiles(8), which has been added as a dependency.

    * NGINX now uses the access.log and error.log as default log names,
      instead of access_log and error_log (bug 700866).

    * NGINX no longer does strange permission checks for 8-year-old
      CVEs.

This commit also closes the bug 578658 mentioned in nginx.eclass.

Bug: https://bugs.gentoo.org/886537
Closes: https://bugs.gentoo.org/481456
Closes: https://bugs.gentoo.org/928131
Closes: https://bugs.gentoo.org/576414
Closes: https://bugs.gentoo.org/578658
Closes: https://bugs.gentoo.org/735020
Closes: https://bugs.gentoo.org/700866
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:53 +01:00
Zurab Kvachadze aaa8004875 app-metrics/nginx-lua-prometheus: revbump to r101, update EAPI 7 -> 8, remove r100
Depend www-nginx/ngx-lua-module if it is present, use default disable "(-)"
USE-dependency on the nginx_module_http_lua USE flag of www-servers/nginx.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:52 +01:00
Zurab Kvachadze 2a43077725 profiles/categories: Add www-nginx category for external NGINX modules
The www-nginx category is expected to contain third party modules for
the NGINX server, which was made possible with the introduction of
nginx-module.eclass.

Currently, NGINX bundles 25 modules that could all be separate packages.
A non-comprehensive list of these modules: ngx_devel_kit[1],
ngx-fancyindex[2], lua-nginx-module[3], nginx-push-stream-module[4] and
many more.
See the www-servers/nginx ebuild for the full list of bundled moduled
that may be packaged in the www-nginx category.

[1]: https://github.com/vision5/ngx_devel_kit
[2]: https://github.com/aperezdc/ngx-fancyindex
[3]: https://github.com/openresty/lua-nginx-module
[4]: https://github.com/wandenberg/nginx-push-stream-module

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:52 +01:00
Zurab Kvachadze 4723d1d286 profiles/desc: reword and update nginx_modules_stream.desc
Does the same as two previous commits, this time with
nginx_modules_stream.desc.

Two new modules were added: "pass", "set", "upstream_random" and "ssl".
For the last module, see [1] in the first of two preceeding commits.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:51 +01:00
Zurab Kvachadze 5fe31d9dc0 profiles/desc: reword and update nginx_modules_mail.desc
This commit modifies the nginx_modules_mail.desc roughly the same as the
preceeding one modified nginx_modules_http.desc.

This commit adds description for the "ssl" module (see [1] in the
previous commit).

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:50 +01:00
Zurab Kvachadze 40b51fb632 profiles/desc: reword and update nginx_modules_http.desc
The wording used in nginx_modules_http.desc to describe the USE flags
was rather inconsistent with how USE flags are described in Gentoo.

This commit features the following changes:

    * The missing descriptions were added for the "ssl"[1],
      "upstream_random", "v2"[1] and "v3"[1] modules.

    * "This module does something" was changed to "Add support for
      something" en masse, as is done elsewhere in Gentoo.

    * The descriptions were brought in line with upstream[2] ones. For
      many of them, the wording was modified to better (sometimes more
      concisely) reflect their function.

    * Update copyright and actually sort the modules!

[1]: Previously, these modules were not USE_EXPAND flags but rather USE
flags on their own. With the introduction of nginx.eclass, they become
NGINX_MODULES_HTTP USE_EXPAND flags, as the rest of NGINX modules are.
[2]: See "Module reference" at the bottom of https://nginx.org/en/docs/

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:50 +01:00
Zurab Kvachadze ab1cf38a0e www-servers/nginx: add nginx-r4.conf
This is the fourth revision of the main configuration file of NGINX.

Thank you Torbjörn Lönnemark for reporting this!

This revision brings a lot of changes, mainly in terms of removed
directives (and yes, I will quote Torbjörn Lönnemark on this):
    * worker_processes "1" -> "auto": it makes no sense to cap the
      number of worker processes at 1, this commit makes the NGINX spawn
      as many worker processes as there are CPU cores.
    * remove "worker_connections 1024": 512 is the default value, no
      reason to increase.
    * remove "use epoll": NGINX already uses the most efficient polling
      method available by default, no need to specify it explicitly.
      Additionally, NGINX may even fail to start if epoll() is
      unavailable on the system.
    * remove "default_type application/octet-stream": arbitrary setting
      with no obvious purpose, in some circumstances may even be
      harmful, considering that the default value for this directive is
      "text/plain".
    * remove custom "log_format": needlessly diverges from the default
      format, quoting Torbjörn Lönnemark:
> The only difference between this and the builtin 'combined' format
> is that it includes gzip_ratio, and gzip is disabled by default
> anyway. Can be removed while additionally replacing 'main' in the
> access_log directives to 'combined'
    * remove "connection_pool_size 256", "client_header_buffer_size 1k"
      and "large_client_header_buffers 4 2k": the connection_pool_size
      directive sets the default value on 32-bit machines and overrides
      the default value on 64-bit machines, client_body_buffer_size is 8
      times less than the default value, the same applies to
      large_client_header_buffers.
    * remove "request_pool_size 4k", "gzip off", "tcp_nodelay on",
      "ignore_invalid_headers on", "index index.html": they restate the
      defaults.
    * remove "client_header_timeout 10m", "client_body_timeout 10m",
      "send_timeout 10m", "output_buffers 1 32k", "postpone_output
      1460", "tcp_nopush off", "keepalive_timeout 75 20": the directives
      override the defaults with no clear intent.

The "server" blocks have also been reworked. Due to www-servers/nginx
not installing anything into /var/www/localhost/htodcs, the root
directory for the default server will almost always be empty. Therefore,
the plaintext example server has had its "root" directive commented out.
For the SSL server, the removed-since-1.25.1 "ssl" directive has been
changed into an argument to the "listen" directive, as prescribed
upstream.

Bug: https://bugs.gentoo.org/928131
Bug: https://bugs.gentoo.org/576414
Reported-by: Torbjörn Lönnemark
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:49 +01:00
Zurab Kvachadze c7e33e57a2 www-servers/nginx: add nginx-r2.logrotate
This is the second revision of the logrotate script for NGINX.

This changes the log files' names from /var/log/nginx/*_log to
/var/log/nginx/*.log, resembling the new nginx.eclass defaults (bug
700866).

The postrotate script was updated to use the "$()" construct for the
command substitution, instead of the legacy `backtick` one. The "kill"
utility now use a more POSIX-complying argument "-s singal_name",
replacing the XSI's "-signal_name".

Bug: https://bugs.gentoo.org/700866
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:48 +01:00
Zurab Kvachadze 28e06dc62b www-servers/nginx: add nginx-r2.service
This is the second revision of the systemd service file for NGINX.

This commit removes redundant Exec{Stop,Reload} lines that restate the
systemd defaults and changes the ExecStartPre directive from "nginx -t"
(testing the NGINX configuration that is done anyway by the main
process, bug 481456) to "mkdir -p /var/tmp/nginx", making sure the
required directory for the NGINX temp files is present. ExecStopPost has
also been removed, since sleeping for 100 ms serves no purpose.

The second revision also changes the Exec* directives to use the plain
file names, instead of the absolute ones, per systemd.service(5)
guidelines:
> It is thus safe to use just the executable name in case of executables
> located in any of the "standard" directories, and an absolute path
> must be used in other cases.

Bug: https://bugs.gentoo.org/481456
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:47 +01:00
Zurab Kvachadze bd0f94bcec www-servers/nginx: add nginx-r1.confd
This is the first revision of NGINX .confd file.

This removes the NGINX_PIDFILE configuration directive as it is now
unconditionally set to /run/${RV_SVCNAME}.pid.

Additionally, the NGINX_MAXWAITTIME variable has been added, which
configures the maximum amount of time for the upgrade() function to wait
for NGINX to start before producing an error.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:47 +01:00
Zurab Kvachadze 6fae8e18dd www-servers/nginx: add nginx-r5.initd
This is the fifth revision of the init.d script for NGINX.

Starting with this commit, NGINX does not check its configuration twice
upon start and configuration reload (bug 481456). In the former case, if
any errors occur, the error message will be printed. This is not the
case with the reload() function though, as it is impossible to
programmatically check if it has succeeded.

Previously, the stop_post() function would block the termination of the
NGINX service from finishing successfuly by returning 1 after not being
able to remove the PID-file. This was caused due to the PID-file being
deleted before the code block in question got executed. This revision
removes this troublesome statement.

Bug: https://bugs.gentoo.org/481456
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:46 +01:00
Zurab Kvachadze 00db474260 www-servers/nginx: add nginx.tmpfiles for managing /var/tmp/nginx
This places the burden on creating and cleaning /var/tmp/nginx in
world-writable /var/tmp on systemd-tmpfiles(8).

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:45 +01:00
Zurab Kvachadze 46c140ff19 www-servers/nginx: add myself as a proxy maintainer; update metadata.xml
With this commit I am stepping up to maintain the www-servers/nginx
package.

In addition to changing the maintainer tags, this commit also makes the
following modifications to the metadata.xml:
  1. Added longdescription from [1].
  2. Changed descriptions for "aio", "http", "libatomic" USE flags.
  3. Added descriptions for "debug", "mail" and "stream" USE flags.
     These USE flags were introduced by nginx.eclass.
  4. Add <doc>, <bugs-to> and <remote-id> elements under the <upstream>
     element; update vendor in NGINX's CPE.
  5. Remove all the <remote-id>'s, since they mention third party
     modules, not NGINX itself.

[1]: https://nginx.org/en/

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:45 +01:00
Zurab Kvachadze 85b28aa437 profiles/arch/riscv: mask tests for www-servers/nginx
Tests for www-servers/nginx require www-servers/uwsgi. uwsgi is not keyworded on
RISC-V.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:44 +01:00
Zurab Kvachadze fc2211073c profiles/arch/powerpc/ppc64: mask tests for www-servers/nginx
Tests require www-servers/uwsgi which is not keyworded for ppc64 yet.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:43 +01:00
Zurab Kvachadze 5f9a4cf888 nginx-module.eclass: Add new eclass for building NGINX external modules
Currently, it is impossible for NGINX external modules to be packaged
on their own, separately from the NGINX ebuild. The nginx-module.eclass
enables packaging third party NGINX modules as any other software in the
Gentoo tree.

The eclass builds on the foundation provided by nginx.eclass.

NGINX modules are somewhat special in the way they are built. In
addition to (obviously) requiring NGINX headers, their build system is
the one of NGINX. Actually, they are intended to be built and installed
alongside the NGINX server, but, luckily, it is possible to succesfuly
build a module, given (1) the headers, (2) the build system and the
exact same (3) ./configure flags that have been used to configure NGINX
itself are present. The points (1) and (2) are taken for granted here,
as nginx.eclass takes care of them:

    * headers are installed into /usr/include/nginx

    * build system is installed into /usr/src/nginx

As for the (3) point, the configuration flags are recorder into
ngx_auto_config.h file as preprocessor #define's. The file is also saved
into /usr/include/nginx.

The build process undergoes in the ${WORKDIR}/nginx directory, which
has 3 symlinks:
    * src/        -> /usr/include/nginx
    * configure   -> /usr/src/nginx/configure
    * auto/       -> /usr/src/nginx/auto
The build is the exact same as building a module "in-tree": the
./configure script is called with the '--add-dynamic-module' flag. The
rest of the eclass is really simple; src_compile() executes 'make
modules' and src_install() installs the compiled shared objects into
/usr/$(get_libdir)/nginx/modules.

Closes: https://bugs.gentoo.org/573710
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:43 +01:00
Zurab Kvachadze e7d46b9145 dev-perl/Test-Nginx: new package, add 0.31
The Test::Nginx Perl module is a testing framework utilised by various
third party NGINX modules, mainly developed by OpenResty.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:42 +01:00
Zurab Kvachadze 33d3f76d5d nginx.eclass: Add new eclass for building the NGINX server
This adds a generic eclass for building, testing and installing NGINX
distributions (F5's NGINX, freenginx, etc).
This is a complete revamp of the way NGINX is packaged in Gentoo.

The problem
===========
NGINX has not been maintained for almost 2 years, since June 5 2022
(commit 9061b2f231: "*/*: reassign whissi's packages"). In its current
state, NGINX has 16 open bugs, with the oldest being reported more than
10 years ago (471106, 496318 and a few more). Moreover, each NGINX
ebuild is over 1100 lines of code and 40 kilobytes in size, with
enormous amounts of code being copied over with each version bump.
Currently, these are some of the most obvious issues.

There is another major problem: the www-servers/nginx package bundles
25 third party modules. This inflexible approach has its own issues:

    * version pinning (of the external modules).

    * no trivial way to add other external modules (for the end user).

The actual code is very old, has inconsistent USE flag choices
(http{2,3} being USE flags on their own rather than NGINX_MODULES_HTTP
USE_EXPAND flags, the same goes for the ssl USE flag, etc.), outright
useless USE flags that do nothing at all (pcre-jit and ktls), outdated
dependencies (libpcre instead of libpcre2 by default), mixed shell
constructs ('[' somewhere and '[[' elsewhere). The ebuild adds the
default include paths to CFLAGS and LDFLAGS for no reason and has
warnings about the versions as old as 1.10 (released in January
2017); the ebuild configures NGINX to store its temporary files in
/var/lib, instead of /var/tmp and so on...

Although this does not intend to cover all the flaws of the current
state of NGINX in the Gentoo tree, it is blatant that the quality of the
NGINX ebuilds are quite poor and that they are overall particularly
messy and clunky.

So, I deemed "repackaging" NGINX from the ground up an easier task (than
fixing the current NGINX ebuild in-place) and went on with it.

The solution
============
This eclass aims to fully cover as much of what is in common between
different NGINX versions and distributions as possible, which by itself
requires a high degree of flexibility in an eclass. The nginx.eclass
does not intend to move the aforementioned complexity to a one place,
but rather to *get rid* of it entirely. It achieves this by requiring
the inheriting ebuilds to provide the "specification" of their version.

The specification is really simple and is comprised of 4 variables:

    * NGINX_MODULES, that defines available modules, i.e "http_perl",
      "http_geoip", "http_ssl", "http_v3", "mail_imap", etc.

    * NGINX_SUBSYSTEMS, that defines individual available NGINX servers:
      "http", "stream" and "mail".

    * NGINX_TESTS_COMMIT, that defines a partcular commit of NGINX
      tests.

    * NGINX_UPDATE_STREAM, that corresponds to the NGINX version type as
      defined upstream. Currently, it is either "mainline", "stable" or
      "live" for the Git version. SLOT is derived from this
      variable.

And 1 optional variable:

    * NGINX_MISC_FILES, that specifies files in FILESDIR, e.g. NGINX
      main configuration file, NGINX systemd service file, etc. They are
      installed into specific locations based on their file extension.

The nginx.eclass takes care of all the other aspects. This eclass:

    1. Sets the default value for DESCRITPION, HOMEPAGE, LICENSE,
       SRC_URI. SLOT is set to ${NGINX_UPDATE_STREAM}/${PV}.

    2. Populates IUSE, based on the NGINX_MODULES and NGINX_SUBSYSTEMS
       variables.

    3. Fills BDEPEND, DEPEND and RDEPEND with general NGINX
       dependencies.

    4. Sets blocks on all possible update streams (that are expressed as
       SLOT) apart from the current one, in order to disallow installing
       multiple NGINX versions at once.

    5. Sets REQUIRED_USE for inter-module dependencies, unless
       OVERRIDE_NGINX_MOD_REQUIRED_USE is set.

    6. Sets BDEPEND, DEPEND and RDEPEND for external module
       dependencies, unless OVERRIDE_NGINX_MOD_DEPEND is set.

    7. Sets BDEPEND for module test dependencies, unless
       OVERRIDE_NGINX_MOD_TEST_DEPEND is set.

    (points 5-7: the nginx.eclass comes with a default list for such
    dependencies; the REQUIRED_USE and *DEPEND variables are only set
    for the modules that are present in NGINX_MODULES).

    8. Unpacks the sources or clones the Git repository.

    9. Configures NGINX, obviously.

    10. Compiles NGINX.

    11. Tests the compiled binary. The test dependencies have also been
	brought in line with what tests actually depend on.

    12. Installs NGINX, complying with the FHS. The files specified in
	NGINX_MISC_FILES are installed in their respective directories.
	If "modules" use flag is enabled, indicating dynamic modules
	support, NGINX build system is installed into /usr/src/nginx and
	NGINX headers are installed into /usr/include/nginx.
	The nginx.eclass also installs Portage set
	@nginx-modules-rebuild. It groups all the NGINX dynamic modules
	and is mainly of use for those who install the "live" version.

A considerable part of the eclass parses the ebuild variables, the
actual phase function code constitues roughly 240 LoC (out of 790
total). Every part of the eclass is thoroughly annotated and documented.

The nginx.eclass sets up the infrastructure for resolving the following
bugs:

    * 886537 - "drop support for obsolete dev-libs/libpcre":
	_ngx_set_mod_depend() makes the http_rewrite module depend only
	on dev-libs/libpcre2.

    * 578658 - "silently ignoring USE=http":
	nginx.eclass introduces the "http" USE flag, which is a master
	switch for the whole http subsystem.

    * 573710 - "Add support for external 3rd party modules":
	nginx.eclass acts as a foundation for such support. The actual
	support for building dynamic modules will be in a separate
	eclass - nginx-module.eclass.

    * 735020 - "missing a USE flag for building --with-stream only":
	nginx.eclass adds the "stream" flag to IUSE, allowing the
	subsystem to be enabled without requiring to alter the
	NGINX_MODULES_STREAM variable.

    * 700866 - "use default log names":
	this eclass uses the default {access,error}.log filenames,
	instead of {access,error}_log.

    * 925098 - "www-servers/freenginx - new package":
	with this eclass, adding freenginx to the Gentoo tree is as
	simple as setting the aforementioned NGINX_* variables,
	inheriting nginx.eclass and setting the proper HOMEPAGE,
	DESCRITPION and SRC_URI. It is crucial to also add block on
	www-servers/nginx, so that the two packages are not installed
	simultaneously. Nonetheless, the procedure desribed above is not
	comprehensive; freenginx will not be regarded by the package
	manager as a drop-in replacement of F5's NGINX for external
	modules. To achieve this, a separate virtual/nginx ebuild must
	be created.

Bug: https://bugs.gentoo.org/886537
Bug: https://bugs.gentoo.org/578658
Bug: https://bugs.gentoo.org/573710
Bug: https://bugs.gentoo.org/735020
Bug: https://bugs.gentoo.org/700866
Bug: https://bugs.gentoo.org/925098
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:41 +01:00
Violet Purcell 9825ca9906 profiles/features/musl: add sys-apps/musl-locales to @system
musl by default does not provide any sort of locale support, and so does
not have a `locale` binary by default. This often results in spurious
command not found QA notices or in extreme cases even build failures.
Adelie's musl-locales project has been adopted as the de facto solution
for locales on musl, so having it in @system for consistency with glibc
is probably a good idea.

Signed-off-by: Violet Purcell <vimproved@inventati.org>
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:40 +01:00
Pacho Ramos 1d7b7c6331 net-misc/networkmanager: drop 1.46.0-r2, 1.48.4-r1, 1.48.10-r1
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
2025-07-05 09:21:48 +02:00
Pacho Ramos 5260fa4155 net-misc/networkmanager: Don't enable gtk-doc USE by default
Thanks-to: Filip Kobierski
Closes: https://bugs.gentoo.org/958934
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
2025-07-05 09:21:48 +02:00
Sam James 9e32181d80 sys-auth/sssd: Stabilize 2.9.7 x86, #959519
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:42 +01:00
Sam James abe4327a52 sys-auth/sssd: Stabilize 2.9.7 amd64, #959519
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:41 +01:00
Sam James e04f618710 net-libs/rpcsvc-proto: Stabilize 1.4.4-r1 x86, #959518
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:40 +01:00
Sam James 9c3ce98d81 sys-devel/bc: Stabilize 1.08.2 x86, #959513
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:39 +01:00
Sam James eb03a769f8 dev-cpp/taskflow: Stabilize 3.10.0 amd64, #959512
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:37 +01:00
Thomas Bettler 4d5aa5c787 sci-libs/pdal: bump to v2.9.0
Signed-off-by: Thomas Bettler <thomas.bettler@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42694
Closes: https://github.com/gentoo/gentoo/pull/42694
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:16 +01:00
Sv. Lockal e89fae67c3 dev-libs/rccl: fix AMDGPU_TARGETS=gfx942 rccl-6.3.0 compilation
Applies the same fix as in 6.4.1

Closes: https://bugs.gentoo.org/949565
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Closes: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:16 +01:00
Sv. Lockal 335d7ba7bb sci-libs/rocThrust: don't install tests; install cmake files in a better place
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:15 +01:00
Sv. Lockal c3ee5ea9cb sci-libs/hipBLASLt: improve flag filtration
Bug: https://bugs.gentoo.org/957893
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:14 +01:00
Sv. Lockal d5f466a71b sci-libs/rocBLAS: fix compilation failure with incorrect clang selection
This switches compiles from hipcc to clang (no difference, just to remove warning),
and more importantly prepends llvm path (build scripts call clang++ in many places).

Closes: https://bugs.gentoo.org/949817
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:14 +01:00
Sv. Lockal 2acae82ecc rocm.eclass: add rocm_use_clang and strip flags in a better way
In recent releases some ROCm packages switched from hipcc to clang++
(as hipcc is now mostly a simple wrapper that calls clang++).
New rocm_use_clang function allows to switch compiler to HIP-compatible clang.

Both hipcc and clang reject some flags when compiling *.hip files;
to clean incompatible CXXFLAGS new test-flags-HIPCXX function is used.

Bug: https://bugs.gentoo.org/957893
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:13 +01:00
Sv. Lockal 74d25eedd9 flag-o-matic.eclass: Add functions for testing/stipping HIPFLAGS
HIPFLAFS allows to specify default compilation flags to be used when compiling HIP files.
As environment variable, it is supported in CMake for all projects that specify HIP as language[1][2].
Some flags like -mtls-dialect=* are not supported by HIP compiler; test-flags-HIPCXX can be used to test flags.

[1] https://cmake.org/cmake/help/latest/envvar/HIPFLAGS.html
[2] https://rocm.docs.amd.com/en/latest/conceptual/cmake-packages.html#using-the-hip-single-source-programming-model

Bug: https://bugs.gentoo.org/957893
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:13 +01:00
Sv. Lockal 1f14d47e71 toolchain-funcs.eclass: add tc-getHIPCXX function
This allows to find compiler for HIP language files.
Environment variable HIPCXX is used by CMake[1].
In recent releases of CMake, it strictly requires clang++, not hipcc.
When not defined, CMake uses multiple methods to find HIP compiler, hipconfig is one of them[2].

[1] https://cmake.org/cmake/help/latest/envvar/HIPCXX.html
[2] https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/CMakeDetermineHIPCompiler.cmake

Bug: https://bugs.gentoo.org/957893
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:14:12 +01:00
Michał Górny 5e5f177fdc dev-python/pymongo: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-07-05 09:08:26 +02:00
Arthur Zamarin 774aae2b01 net-analyzer/slurm: fix LICENSE
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-07-05 09:50:50 +03:00
Vladislav Mikhailikov 6b160ee7f6 net-analyzer/slurm: fix typo
Signed-off-by: Vladislav Mikhailikov <vmikhailikov@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42744
Closes: https://github.com/gentoo/gentoo/pull/42744
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-07-05 09:50:04 +03:00
Vladislav Mikhailikov cad6b94a0c net-analyzer/slurm: add long description
Signed-off-by: Vladislav Mikhailikov <vmikhailikov@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42744
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-07-05 09:50:04 +03:00
Vladislav Mikhailikov a8313e23bd net-analyzer/slurm: add 0.4.4, EAPI=8, use meson
Signed-off-by: Vladislav Mikhailikov <vmikhailikov@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42744
Closes: https://bugs.gentoo.org/957245
Closes: https://bugs.gentoo.org/953893
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-07-05 09:50:04 +03:00
Ulrich Müller 9eb3652796 metadata: Fix GPL with font exception
There is no Font-exception-3.0 in SPDX's list of license exceptions.
They have Font-exception-2.0 which is the GPL font exception:
https://www.gnu.org/licenses/gpl-faq.html#FontException

Note that the font exception (as listed by the FSF) is unversioned.
No idea why SPDX would list it with a version; this looks like a recipe
for confusion.

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2025-07-05 08:46:34 +02:00
Ulrich Müller ef22397d4b dev-tex/gentoo-newage: add codeberg upstream metadata
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2025-07-05 08:18:33 +02:00
Michał Górny 57fe24c852 dev-python/pytest-regressions: Disable plugin autoloading for tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-07-05 08:11:27 +02:00
Matt Jolly 5b46dc3449 app-portage/pram: stabilise 14 for arm64
Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-07-05 16:04:08 +10:00
Arthur Zamarin 3998405fba net-libs/rpcsvc-proto: Stabilize 1.4.4-r1 amd64, #959518
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-07-05 08:46:19 +03:00