From nobody Thu Feb 22 09:59:38 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TgTC54vY2z5CK63; Thu, 22 Feb 2024 09:59:45 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TgTC52dlvz4hHH; Thu, 22 Feb 2024 09:59:45 +0000 (UTC) (envelope-from mat@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708595985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=p0SqIBeOTgJsUN8a1uNqCmdqAWmktxTf3M7/lQG6KJ8=; b=O5qa4Q10DV+Tfih+zJtxf2/1dmPfRnuStgknFHH5+IXM7rod4u5vVI71c3CnBHeGtk0T8z qId2CFOVYqjXbbkg1HpZupItOR3bmdXRry1cUSStn1ICy7pIlTicwK9ApEUiwZSiIpbKu7 AL42TpQTJsceKmcdxmSjKU69HtQSYyWFR4A3qrKPcSBCKtDLsMIg7uEyFTxIo4vCNk7LuF 2Ow3oq7ffFcO4V7bBHfMci47nGNO/0rn8VvXdGYNPpJfeM/s5lY8fJCzrGxr79sDYGCiSd EYLmPmhJlgc5F7qe1sV/kBeR33FqJV5rwYEoo9ySWWLLlDYMq3SX9pSTiq0O9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708595985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=p0SqIBeOTgJsUN8a1uNqCmdqAWmktxTf3M7/lQG6KJ8=; b=K5N9swdbcmobTlEHZ+srFeQwcBrwGmHjUKOraGgq3FUboQXXzY4kkNP+QphLZWlLNONRrp kD+KStDQVxXduNQeTNCMHYqmnmR8XPRrs+rnLyuG5BNj2bNt9eWNO9gOniL+HrbsJ9nCaQ yZ55YLbcRzfuaqdbkaajLCvY2Fu/9anZuW0Rxf9AZjYNy9JTbsmrPY/SFrUOXQw8hoGsuE SVe703220IZPxWw8zE+xf6QJaoozYqvEOnyX9o8JkRUlUfC9VV0ZSvBlJr9koTc7Jjn7Zh cSbwpq2Py5ajphNtkOUGYmzgpP4j0tjuTRH1aSs5704YMbRaSYk+29XZxGToqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708595985; a=rsa-sha256; cv=none; b=w2sJVbzfEiNEC96l4GZbHSltHh5vCZEDrMpakAv7friUtpiTTMmxMohbiB/M4h3uoyJbWH APWzxd7SUkHF1ruR8Y28ZlYqe+BZ4ESWbYhIuwKIHZbysvDWC5DUuaK8vT0HDhp2OfbkD6 /rR+I+UZJNPk4i1xBRP0XXqQ3i53l8sljX4/64vZ4ogj1/4yQEvD3vhjVvEC8J/+RM/gmm eWgMrHlGPmLx2t99Soo9YaBg8NTPtNhHdHH7nnLKFZzgk8in2fVDDvkjlaplzUrxnhEkOA yDO5RruncLACV0vavQaUovZy3JuwcgdJLA25zaZGmjCK/FztiC+ovaakZoGq5w== Received: from relay.mat.cc (eqx1.mat.cc [IPv6:2a01:678:2:200::49]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "cow.mat.cc", Issuer "R3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TgTC510SKz1NZx; Thu, 22 Feb 2024 09:59:45 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:678:ab:50:716:1ded:630c:7c39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by relay.mat.cc (Postfix) with ESMTPSA id 1D8482136D; Thu, 22 Feb 2024 10:59:40 +0100 (CET) Date: Thu, 22 Feb 2024 10:59:38 +0100 From: Mathieu Arnold To: Max Brazhnikov Cc: Nuno Teixeira , Po-Chuan Hsieh , ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 48437516330b - main - www/nghttp2: Remove unnecessary substitution Message-ID: <4b75z3c7itpd4r6iakji6ccfez7buknwl3lwh47jlbcttv2egg@no5ifeo2i5ky> References: <202402211520.41LFKHJO027649@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nnrdqcuqllabw3gs" Content-Disposition: inline In-Reply-To: --nnrdqcuqllabw3gs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 12:32:44PM +0300, Max Brazhnikov wrote: > On Thu, 22 Feb 2024 at 11:01, Nuno Teixeira wrote: > > > > Hello, > > > > What's going on? > > > > -DISTVERSION=3D 1.59.0 > > +PORTVERSION=3D 1.59.0 > > > > Should Porter's Handbook be fixed? >=20 > Or veteran committers should update their knowledge :) >=20 > Less jokingly, the problem with DISTVERSION/PORTVERSION is that the > Porters's Handbook and ports framework are out of sync. Somebody has > decided that DISTVERSION is higher than PORTVERSION (makes sense for > me, if you want my opinion) and has commited update to the handbook. > However, the framework has not been changed, it checks for PORTVERSION > first, while DISTVERSION is derived from PORTVERSION. >=20 > If we want to switch to DISTVERSION and deprecate PORTVERSION, we > should update the framework and docs and CHANGES and notify people > before upcoming change and after. This applies to other changes in the > ports framework. That's fubar, we're not deprecating PORTVERSION, nor should we change the way they work inside the framework. It's only a if/else, it does not matter which way it goes. The algorithm is simple : 1) Use DISTVERSION, and thus, PORTVERSION is derived from it so that the port version is correct wrt what pkg expects. For example, 1.2.0-beta1 -> 1.2.0.b1 2) If the software version is non standard, DISTVERSION's automatic derivation does something funky, and the software version is something pkg can understand correctly, then use PORTVERSION. For example, 1.34a that is after 1.34 (aka not an alpha), as is done for sysutils/tmux 3) If it still does not work, set PORTVERSION and DISTNAME. For example the software version of 9.8.7-P1 that is after 9.8.7, and thus should have a port version of 9.8.7P1. In that case set PORTVERSION so the version is untouched, and set DISTNAME with foo-9.8.7-P1 as was done with very old versions of dns/bind9, say: https://cgit.freebsd.org/ports/tree/dns/bind98/Makefile?h=3D9a1f79615562= d0c5b74732c244790121c0c905b8 --=20 Mathieu Arnold --nnrdqcuqllabw3gs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmXXGwlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1 NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d Qb5TPQv8DCjBnRHCMto3yIQM22kp0FJ3SY/tHHp9Hm/jRS7HUJOEZKZMAwme0Tim n47+zSGQVbD3bH9ALIiEJjfvUh69Cq6Z65pRpWrqsA7rOpOUzPo1ijkKmVbk1VL3 ner7g732+ZolCURi8jkd0svPNYhhAz9l3LSIgHfc0CrZkfXsuEaPbzr9zZxlBFi3 T8JDwC5ngvd1oiu+Pn1Fjb01Jh8F1ip4wiGf5AXX4OhiX4QrSyDFXpa8232QTo36 JBtjAmSe2MVelHKZRwCpF2BVPJ9SLFhDO1jHIwnrf6MPBV1xKzkQ6WDm+hKodkze 0puTEPvwJZPqRbzkSBGiZX3+d9Lia5HbgBhP0xn6M865WTkC4QqIwHnSEIVUvQd8 t296OdzEgr5czNpk7JIYMytNN+OuEASf3wlWndfFsOQhCnerkvG7HOXBsvlgYVBf BZgZgRgvOJ8Ng3Oq/BowmsVZk2v2j1f3LuJoR2ToP4It1cGgOnfGiAsRsqmYMwlI LSVjgTCN =RraH -----END PGP SIGNATURE----- --nnrdqcuqllabw3gs--