From nobody Sun Jul 24 12:21:24 2022 X-Original-To: freebsd-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 4LrMjX6bHZz4Xgw8 for ; Sun, 24 Jul 2022 12:21:36 +0000 (UTC) (envelope-from eduardo@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 4LrMjX5gt8z3qJN for ; Sun, 24 Jul 2022 12:21:36 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658665296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GxYZnA1I/nI5zSHBU/slkdxZurKMX88Xjzk+BlIhmLg=; b=tgs5MWiVpy0so03kFHFEwsIbs34zWUNaFptOiNaSIUkxx583muHe+E6CxHNDOFiDw/nD+C 85GpIY6DwRZ0sseuCHVpCu2jwtoSJl5D6BMcYV8KznrTB+PU/8Y4h/fgbPqs8mwR3rtDCy x20K1veHmPLNyi6X4Tkqw/rVoKE0HVuyQir6PW4XbiwU1B7AkX+ErzrX9oK9XoFahZmf51 nX43bl90Usb/nn+GV6HAUMJNF1l9l8uvpIbN8WDA8LAAEdirXFEWpGycBxH4/qCsHWA6SX FfogohxUAjpH7aohVBRag0v3DDWVc6xdA0y6t4WM+E55MV42wI9MLRF7OHsYcA== Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LrMjX4brPzjFv for ; Sun, 24 Jul 2022 12:21:36 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f45.google.com with SMTP id a63so6539975vsa.3 for ; Sun, 24 Jul 2022 05:21:36 -0700 (PDT) X-Gm-Message-State: AJIora/TNBUzV3gbZFctrN/JWlOFDPZe5jpOJEpgMusZud1T1dsEFe3B uZF3Uck3QkyiyOXbLtPSSh4QfimIMvJyWfNSNso= X-Google-Smtp-Source: AGRyM1tXdK7k0KTxZ5Pv+Lwpie1Bx7R+rsaKKAiQXhSpFFpDcTuW3flmIiFVFESx7cKdiiGeiHHtBrqqXHxRiP0P0uI= X-Received: by 2002:a05:6102:911:b0:357:58d7:3ec with SMTP id x17-20020a056102091100b0035758d703ecmr2106578vsh.19.1658665296003; Sun, 24 Jul 2022 05:21:36 -0700 (PDT) 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 References: <20220723225651.i7x7a322g2owgnh5@nexus.home.palmen-it.de> <20220724013346.3x2lyd6ehumzbtjv@nexus.home.palmen-it.de> In-Reply-To: <20220724013346.3x2lyd6ehumzbtjv@nexus.home.palmen-it.de> From: Nuno Teixeira Date: Sun, 24 Jul 2022 13:21:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Portscout wrong 'New version' To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000c509f905e48c1b1f" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658665296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GxYZnA1I/nI5zSHBU/slkdxZurKMX88Xjzk+BlIhmLg=; b=YIw/RSiTAG1JXfmIOlB3ZvKGjCWNg85RB5Zj/njFvnn8avy+CwJ5yRleFlHyBU7BgGBcUp DbF993B6QTsCXUMXUB6q1oiOJEyqSCJUYjjotyNVw8yQLPK3qFEkKIWG8XIGLkk4qOK607 ciREXH+oheyeair0AYSdGWerb7qpgto+CPGoG7XkLe5gDXh+A+IXJNxuL7yXO4AsgJGBus 30woGWFYSLD7r5k9/nHot2oOJrKOEpRt4JiKpSc4vDZNR4PtB3YHrge8Y0T/6C3sKuEES6 bF0mHEJ0cRU0cIP9f21bxBRMOE5vtbnTtxbK1rwsqsJs50nrfZqsccVto0dsAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658665296; a=rsa-sha256; cv=none; b=ac/nARHvHiK/mOBNsFz4txULEFxG4ikQTFJg/KLshGDkx+xvBHSHSaPuEOSfHyHLwvZFxK 7rWcz5Upjn+R+A1cv28RAk9pA1l2ZEP4GKkWWsTOJFXX69ZnvdLH0R+9UwBqXnIaP6lY5U CSZurj6cJw2nj2q4PVKRxg4VVrBQNlwg4gC7xnxnzZV9vVwes78v5yG3zPPke5jxNBm19W Js1bufLpw0Vvp2eWVTqLQjKQwzjljJ++6BxUz22CepV/5rJbKa+bdXIMvn3D5CAmi+EF3G NjGQhtnZHmaEKheyAy283h03aGvA4dJXwH80/dFvDlCZW18mp/ZZw0gwQT6Vzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --000000000000c509f905e48c1b1f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've take a look at perl regex and followed your example of using 'd' instead of '[0-9]: use PORTSCOUT=3D limit:^\d\.\d\.\d\.\d+$ will match 0.5.4.18 versions Thanks Felix Palmen escreveu no dia domingo, 24/07/2022 =C3= =A0(s) 02:33: > Hello Nuno, > > * Nuno Teixeira [20220724 01:53]: > > PORTSCOUT=3D limit:^[0-9.]+$$ # ignore master.mint* tags > > regarding this, portscout is documented to use perl regex. I didn't try > myself so far, but this *should* mean [0-9] could be simplified to \d. > > Of course, then it wouldn't include a dot (.) > > But then, no version number will ever *start* with a dot (I assume). > With PORTSCOUT limit, I'd try to be as permissive as possible. \d\.\d > seems to be a (perl regex) pattern matching most "sane" version numbers > (and reject other tags appearing on github). > > Cheers, Felix > > -- > Dipl.-Inform. Felix Palmen ,.//.......... > {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de > {pgp public key} http://palmen-it.de/pub.txt // """"""""""" > {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A > --000000000000c509f905e48c1b1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've take a look at perl regex and followed your = example of using 'd' instead of '[0-9]:

use PORTSCOUT=3D limit:^\d\.\d\.\d\.\d+$ will match 0.5.4.18 versions=

Thanks

Felix Palmen <felix@palmen-it.de> escreveu no dia domingo, 2= 4/07/2022 =C3=A0(s) 02:33:
Hello Nuno,

* Nuno Teixeira <eduardo@freebsd.org> [20220724 01:53]:
> PORTSCOUT=3D limit:^[0-9.]+$$ # ignore master.mint* tags

regarding this, portscout is documented to use perl regex. I didn't try=
myself so far, but this *should* mean [0-9] could be simplified to \d.

Of course, then it wouldn't include a dot (.)

But then, no version number will ever *start* with a dot (I assume).
With PORTSCOUT limit, I'd try to be as permissive as possible. \d\.\d seems to be a (perl regex) pattern matching most "sane" version n= umbers
(and reject other tags appearing on github).

Cheers, Felix

--
=C2=A0Dipl.-Inform. Felix Palmen=C2=A0 <felix@palmen-it.de>=C2=A0 =C2=A0,.//........= ..
=C2=A0{web}=C2=A0 http://palmen-it.de=C2=A0 {jabber} [see email]=C2=A0 =C2=A0= ,//pal= men-it.de
=C2=A0{pgp public key}=C2=A0 =C2=A0 =C2=A0http://palmen-it.de/pub.txt= =C2=A0 =C2=A0//=C2=A0 =C2=A0""""""""= ;"""
=C2=A0{pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A
--000000000000c509f905e48c1b1f--