From nobody Fri Jul 15 03:38:45 2022 X-Original-To: ports@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 4LkcXV0Mzbz4WjRn for ; Fri, 15 Jul 2022 03:38:50 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (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 (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LkcXS3n98z46Q5 for ; Fri, 15 Jul 2022 03:38:48 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.16.1/8.16.1) with ESMTPS id 26F3cjEn097215 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 15 Jul 2022 03:38:46 GMT (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.16.1/8.16.1/Submit) id 26F3cjMg097214; Fri, 15 Jul 2022 05:38:45 +0200 (CEST) (envelope-from fuz) Date: Fri, 15 Jul 2022 05:38:45 +0200 From: Robert Clausecker To: Eugene Grosbein Cc: ports@freebsd.org Subject: Re: How does the pkg version syntax work? Message-ID: References: <0db9120d-d787-665c-060b-7f6738021c76@grosbein.net> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0db9120d-d787-665c-060b-7f6738021c76@grosbein.net> X-Rspamd-Queue-Id: 4LkcXS3n98z46Q5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of fuz@fuz.su designates 2001:41d0:8:e508::1 as permitted sender) smtp.mailfrom=fuz@fuz.su X-Spamd-Result: default: False [-2.30 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[ports]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[fuz.su]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi Eugene, That one does not actually really explain how the syntax works. It gives a bunch of examples but does not systematically explains how it works. Additionally, the explanation is incomplete (e.g. it's completely silent about how + works and the special cases for letters in version numbers) and seems in one place even wrong (according to pkg, a colon is interpreted like a period, but here it says that it's ignored; but maybe ports mangling of version numbers is different from how pkg does it). So really, I wouldn't quite call this documentation. Yours, Robert Clausecker Am Fri, Jul 15, 2022 at 10:18:17AM +0700 schrieb Eugene Grosbein: > 15.07.2022 1:42, Robert Clausecker wrote: > > > The ports collection generates a PKGVERSION from the DISTVERSION or > > PORTVERSION provided by the port. This PKGVERSION is then used to > > decide whether one package is newer or older than the other. > > > > However, it seems to be poorly documented. > > https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-naming > Look for subsection 5.2.2. Versions, DISTVERSION or PORTVERSION > > -- () ascii ribbon campaign - for an 8-bit clean world /\ - against html email - against proprietary attachments