From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ED47D158170 for ; Wed, 17 Jul 2024 12:06:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66CC22BC066; Wed, 17 Jul 2024 12:05:58 +0000 (UTC) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07AC02BC061 for ; Wed, 17 Jul 2024 12:05:58 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2eedea0fd88so48363491fa.2 for ; Wed, 17 Jul 2024 05:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721217956; x=1721822756; darn=lists.gentoo.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8e9Trsbo8TEbFgb6U05T2S1zmf2jS4OsfZVchfyRCNg=; b=exyq4Tkio8bJIyWnW6ZumdKq6B+wZw8BYXxwvTu64sTC6c+32b7XsjoxeFuXqn6/Qc YqGYqo0WVsE/71O1IFUruy4RSDhgPceWMEZtEaSyg/esIofL8JfTW1vN5WvWTX4Pc4GQ wyKcinmcC+/gsFeh61Sro2sF86BfBoNofPa6QOgiP3LTR0GaUzZsuxJpe11lZDuPGZUV dYuWvNSkb7kPPT0n+k6SHpqfx1zTmZrutUrWfnE7oklOV+c3QVfYwjasaamIxI/yJwyK JkHP+yqBv7iWxQf183Wl4FWz8QPXD22c1V4pB53jeFD5eFOIbwn752bpjbaZZ3RwPlfn mr6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721217956; x=1721822756; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8e9Trsbo8TEbFgb6U05T2S1zmf2jS4OsfZVchfyRCNg=; b=i8BT7njtzdrYB+87i/iDoQarmTNa5wOitb8sAeoIZJFvQ68ZCaoSrt5Z/3Yjc4DJRM xr0RAvoDvrmVvgvM+qyyphqsQQqZNwUtoeZRo7VOeJV6zyMKQrY1OPGtPasobgnGD5Do nkkSjPt7peb3bgZJse2nI3x3rlSsIHWF6SyMfsy3/U+eUCv/oaOMsgoEQx6c/gBRHlV8 ggJKxfsoAcjHDjDkSySC9oCSZcoa8/J8vgDc2B9MA1j7uM/UvftmR8uFu4BDm/6cb1OV lsei/5OEHwfaTDRSeYWtpz7gIvTgJ8OA97m+XJOJDAbS5DKwZrmE15fdNfIBfL0iCCI4 c/LQ== X-Gm-Message-State: AOJu0YyvHbKX2Ue85r86kYzA2JK6GkrjtwTcaJ+SNrqhbqndB3vb15e0 r9JJJ/mdxSryFMu2g91AceuVlr97n7YErY4bGkfqhYpgYpEjkXq+HYEJ8A== X-Google-Smtp-Source: AGHT+IE8fWXqmJVG3BC51arpmR0vvvyIXxwIUooHeoertc9HzIuWX+wVyzZp46CEytBtmfiby7Jtig== X-Received: by 2002:a2e:a3cd:0:b0:2ee:80b2:1e99 with SMTP id 38308e7fff4ca-2eefd1639demr10572011fa.44.1721217956342; Wed, 17 Jul 2024 05:05:56 -0700 (PDT) Received: from localhost.localdomain ([62.244.50.57]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2eee1914ad5sm14636941fa.79.2024.07.17.05.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jul 2024 05:05:56 -0700 (PDT) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: Zurab Kvachadze Subject: [gentoo-dev] [RFC PATCH 00/19] Rework NGINX packaging in Gentoo by introducing nginx{,-module}.eclass Date: Wed, 17 Jul 2024 15:05:32 +0300 Message-ID: <20240717120553.31866-1-zurabid2016@gmail.com> X-Mailer: git-send-email 2.44.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 82dbd651-47d5-4397-b384-6de3869c1969 X-Archives-Hash: 7ef9b0cfdd6963bae04442057a6463fd Do not merge this yet! This patch is still an RFC. Refer to the "Questions and problems" section for more detailed explanation of the issues that (more or less) block the merging of the patches. GitHub PR: https://github.com/gentoo/gentoo/pull/37590 This is an attempt to improve the state of NGINX in the Gentoo tree. The majority of reasoning for introducing this series can be found in the nginx.eclass commit, whereas the actual differences between the previous and the new versions are outlined in the NGINX 1.26.1 revbump commit. Such "refreshes" are important for Gentoo, as to my belief. NGINX has not been maintained for two years now, let alone being rewritten. Thus, NGINX ebuilds are around 42K in size, having accumulated rust over the years. The sheer size and monstrosity of the ebuild hinders the discourages developers from adopting the package. These patches aim to drastically reduce the size and fix numerous issues that NGINX has acquired throughout its lifetime. Questions and problems ====================== (1) Is having separate SLOTs for different NGINX update streams useful? Currently, NGINX is half-slotted. It has the '0' and the 'mainline' slot with both undergoing the same stabilisation, i.e. 'mainline' version can and do have stable keywords (unlike, for example Firefox, where LTS versions are stable and rapid ones are always testing). Therefore, intention for this was to make this half-baked slotting complete, by introducing the 'stable' slot. One use case of such distinction is an ability to subscribe to the 'stable' version and receive updates from that, ignoring 'mainline' versions. One of the downsides of SLOTting NGINX is the fact that mainline versions are not always ahead of the stable ones. As an example of this point, the stable NGINX 1.26.0 version was ahead of the mainline 1.25.5. If, for instance, NGINX utilised SLOTting and a user updated from nginx-1.25.5:mainline to nginx-1.26.0:stable, they would be greeted with rather unwelcoming blocker messages. Is this approach reasonable? If not, the SLOTting machinery can easily be removed :) (2) Do all the previously-bundled modules need to be ported to nginx-module.eclass for this to be considered "mergeable"? This implements somewhat special infrastructure (which could be considered as a hack) to tackle the fact that the NGINX build system does not fully support building external modules out of tree. As a proof of concept, four simple modules have been ported to the introduced nginx-module.eclass. If the nginx-module.eclass approach is deemed suitable, should I port the rest of the modules to maintain their presence in the Gentoo tree or shall we just drop them altogether? I am bringing this up since despite the modules (modsecurity, rtmp, lua, etc.) were not independent packages a lot of people rely on them in their workflow, and, thus, we should not just blindly remove them. Having said this, I am not really willing to maintain third party modules as I have no interest in using them. Nonetheless, I believe that people will be encouraged to adopt the unbundled NGINX modules quicker with a number of simplifications brought forth by these patches. (3) Please, test these patches. Although automated tests do work and the ebuilds pass them, it is entirely possible that I have missed something. Happy hacking :) Zurab Kvachadze (19): nginx.eclass: Add new eclass for building the NGINX server nginx-module.eclass: Add new eclass for building NGINX external modules www-servers/nginx: add myself as a proxy maintainer; update metadata.xml www-servers/nginx: add nginx-r5.initd www-servers/nginx: add nginx-r1.confd www-servers/nginx: add nginx-r2.service www-servers/nginx: add nginx-r2.logrotate www-servers/nginx: add nginx-r4.conf profiles/desc: reword and update nginx_modules_http.desc profiles/desc: reword and update nginx_modules_mail.desc profiles/desc: reword and update nginx_modules_stream.desc profiles/categories: Add www-nginx category for external NGINX modules www-servers/nginx: revbump 1.26.1-r1 to 1.26.1-r2, use nginx.eclass www-servers/nginx: revbump 1.27.0-r1 to 1.27.0-r2, use nginx.eclass www-servers/nginx: add 9999 live version, use nginx.eclass www-nginx/ngx_devel_kit: new package, add 0.3.3 www-nginx/ngx-echo: new package, add 0.63 www-nginx/ngx-encrypted-session: new package, add 0.09 www-nginx/ngx-set-misc: new package, add 0.33 eclass/nginx-module.eclass | 180 ++++ eclass/nginx.eclass | 774 ++++++++++++++++++ profiles/categories | 1 + profiles/desc/nginx_modules_http.desc | 147 ++-- profiles/desc/nginx_modules_mail.desc | 9 +- profiles/desc/nginx_modules_stream.desc | 34 +- www-nginx/metadata.xml | 7 + www-nginx/ngx-echo/Manifest | 1 + www-nginx/ngx-echo/metadata.xml | 8 + www-nginx/ngx-echo/ngx-echo-0.63.ebuild | 18 + www-nginx/ngx-encrypted-session/Manifest | 1 + www-nginx/ngx-encrypted-session/metadata.xml | 8 + .../ngx-encrypted-session-0.09.ebuild | 32 + www-nginx/ngx-set-misc/Manifest | 1 + www-nginx/ngx-set-misc/metadata.xml | 11 + .../ngx-set-misc/ngx-set-misc-0.33.ebuild | 50 ++ www-nginx/ngx_devel_kit/Manifest | 1 + www-nginx/ngx_devel_kit/metadata.xml | 8 + .../ngx_devel_kit/ngx_devel_kit-0.3.3.ebuild | 28 + www-servers/nginx/Manifest | 1 + www-servers/nginx/files/nginx-r1.confd | 37 + www-servers/nginx/files/nginx-r2.logrotate | 11 + www-servers/nginx/files/nginx-r2.service | 12 + www-servers/nginx/files/nginx-r4.conf | 39 + www-servers/nginx/files/nginx-r5.initd | 117 +++ www-servers/nginx/metadata.xml | 61 +- www-servers/nginx/nginx-1.26.1-r2.ebuild | 30 + www-servers/nginx/nginx-1.27.0-r2.ebuild | 30 + www-servers/nginx/nginx-9999.ebuild | 28 + 29 files changed, 1574 insertions(+), 111 deletions(-) create mode 100644 eclass/nginx-module.eclass create mode 100644 eclass/nginx.eclass create mode 100644 www-nginx/metadata.xml create mode 100644 www-nginx/ngx-echo/Manifest create mode 100644 www-nginx/ngx-echo/metadata.xml create mode 100644 www-nginx/ngx-echo/ngx-echo-0.63.ebuild create mode 100644 www-nginx/ngx-encrypted-session/Manifest create mode 100644 www-nginx/ngx-encrypted-session/metadata.xml create mode 100644 www-nginx/ngx-encrypted-session/ngx-encrypted-session-0.09.ebuild create mode 100644 www-nginx/ngx-set-misc/Manifest create mode 100644 www-nginx/ngx-set-misc/metadata.xml create mode 100644 www-nginx/ngx-set-misc/ngx-set-misc-0.33.ebuild create mode 100644 www-nginx/ngx_devel_kit/Manifest create mode 100644 www-nginx/ngx_devel_kit/metadata.xml create mode 100644 www-nginx/ngx_devel_kit/ngx_devel_kit-0.3.3.ebuild create mode 100644 www-servers/nginx/files/nginx-r1.confd create mode 100644 www-servers/nginx/files/nginx-r2.logrotate create mode 100644 www-servers/nginx/files/nginx-r2.service create mode 100644 www-servers/nginx/files/nginx-r4.conf create mode 100644 www-servers/nginx/files/nginx-r5.initd create mode 100644 www-servers/nginx/nginx-1.26.1-r2.ebuild create mode 100644 www-servers/nginx/nginx-1.27.0-r2.ebuild create mode 100644 www-servers/nginx/nginx-9999.ebuild -- 2.44.2