From nobody Thu Jul 21 20:36:09 2022 X-Original-To: ports-bugs@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 4LpkqZ0FZnz4XTPv for ; Thu, 21 Jul 2022 20:36:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LpkqY59mmz3lVV for ; Thu, 21 Jul 2022 20:36:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LpkqY4FHYzbG2 for ; Thu, 21 Jul 2022 20:36:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26LKa9bJ016918 for ; Thu, 21 Jul 2022 20:36:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26LKa9ct016917 for ports-bugs@FreeBSD.org; Thu, 21 Jul 2022 20:36:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265364] ports-mgmt/portlint: PORTVERSION check busted for versions like g20220630+2022.04 Date: Thu, 21 Jul 2022 20:36:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fuz@fuz.su X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: marcus@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658435769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sMuPdv2SOj1ai5+par8htp7mfU5SLqgfYy9HYcCQhIE=; b=gYiZEinlU/lfzfjn3pX5UD8Uj5ProlBEZOpTS83cMgotEbSB05Ad2UVsZqI8982x0sccHp kB9bVTbAIfydY/4vKTgrANjS+uMzbH19T/CDl/RJ5tp+EV9XAs96M6DgAzXOj4vJLR1F10 HsJu0aMEOqrGuVZfLt40JTWo55E6G6KXktC/pD9hKuXNhcy4kcS7FRVT/wvcjQdIE1S9IO PdjB/mVylc2b8tDGI+Rk8Tx4rHVXQYJWhrZMSU2ZHe2A/u2Xp2YjTcQl+6HJeIWbKyFfMU MIXvyRPdtwP+g7PINAz/BXVPTBNDc0iUBgJbEouPIrDzik/QioVz612Lrkwmnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658435769; a=rsa-sha256; cv=none; b=yBQ6UBr0pPR+VmsnwPhE2ZmBz6h3bXROW2+hP+RdLUY+ThPLurhd9wZFoIgUW5IxVlVp0C C+f5UxFgFHKBCxWqhQbKx0fjRyI0K8dyXcq+bG67lbWU6zmmwVnOKJvh+E9/mprD4HyClM Ag5JPmUnqsbzpbY3nI7174SPQgBOQRGTn3544o28WtP+kG8dssgNlHdcLBl/FY2+kuBw// En4S+B13fl7mmMUVx4epFt0woiN94bq817gGElQ2rtyQRVAmVAH9MslfXq845QHFaEm1k7 xqRbPYRNDrNmqDvyL2+8hW5VDLVL6LzZYU5+vgtzB2VXqcb0PVQBnf0Nw/eYOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265364 Bug ID: 265364 Summary: ports-mgmt/portlint: PORTVERSION check busted for versions like g20220630+2022.04 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: marcus@FreeBSD.org Reporter: fuz@fuz.su Flags: maintainer-feedback?(marcus@FreeBSD.org) Assignee: marcus@FreeBSD.org I would like to add a port made of two independently versioned components. = The first component is fetched from git with no versioning (so version g2022063= 0), the second component is a more conventional version (Apr2022 which I transl= ate into 2022.04). So the complete PORTVERSION ends up being g20220630+2022.04 Unfortunately portlint doesn't like this version. The regex used for check= ing portversions is $portversion =3D~ /^[0-9]*[A-Za-z]?[0-9]*(\.[0-9]*[A-Za-z]?[0-9+]*)*$/ Which only permits port versions with a + after a dot and the + must be succeeded by numbers. How about changing it to $portversion =3D~ /^[0-9]*[A-Za-z]?[0-9]*([.+][0-9]*[A-Za-z]?[0-9]*)*$/ to fix the detection of port versions? Note that this regular expression s= till matches port versions with nothing after the +, but now it also matches my = port version. --=20 You are receiving this mail because: You are the assignee for the bug.=