From nobody Sun Sep 06 16:57:28 2026 X-Original-To: dev-commits-src-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 4hdGbX5kxtz6rNfn for ; Sun, 06 Sep 2026 16:57:44 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hdGbX1XwNz3DgH for ; Sun, 06 Sep 2026 16:57:44 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-497e6956acfso2621928b6e.1 for ; Sun, 06 Sep 2026 09:57:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788713863; x=1789318663; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=8NlOb9teCcUoieWs8pgG0+ce+c/Lh12lXe8HCZLuTXg=; b=me9lS6vOqzIyzM/0MVlEyN/vAXGptMUhAElOnoYGp5Vdl4HMJJNlZDsEmRxKVWMnPL SHvz/y5uCLdUtbSKNALpeGEJXOv6/BwZJyLaf/T5XPzfoUsNHFLKwrjXsSBjzzGtJszf TkwceFGJ+YqWHB0Ww1QIhphAP6H6peL/Y4cLnFJkV+9mUmLOKGvoUhNQXNDCk/bVXJOh mCZW8KxGhDOptaWd/XQh1rfNX1WJUf3RnOC4DzHaSkD6THE6K6YkHnK00tifmYtFxJwq yqursdrsJnCDKvov5UiOw20gQatsE2vEj0mM9P7nSgXMgS2GSc6yj143yvCnGpncTMf+ Qy/w== X-Forwarded-Encrypted: i=1; AKwUvBw0nofIvAaH/ZjV8pTkegu9WmroSZ5vNx9TJ55SXIgsfVxKSN8xNkp9aeznIdjv2uisYCGd24CgzhhN4Kfqq7SCQCEY@freebsd.org X-Gm-Message-State: AFuF++n84YoAC0ljWZGEXWyYTql7d58lzZo3zs6D9F17gblMpd30qXvN BT/eiXQk9W+BKezSatdAQK9Uqea3KACpYAtX92aKFqwYnvHmvSadPuUfv7iDfVVg X-Gm-Gg: AYBFou0ObmnfotWqdhCAJ3YcPbTMCLjOpMfUE6FOUqN5nd5KvBJQICtdGMZZaaYkxrj B1QXbPyCoes2ffwI38disNNRvxI0umMCRcbxOytPk3adN6oDCyMqH+P/tPiRuPrRTA+NnEEi0rs rwrBPAQr+PTRPKaYJBNUsrkBf5o8faK3ePd4lTtp9QIT9iWl6th3bGjjPIy6rlvZ4SM/cA7L4vT RqrBbdOYyMLZKRIhb/soazPjDuR6MNxWBaOuD4kaVIRt1PAIXLJc9nnsIBGrIz9XWe0bVBAo0LN 3D2OJqo6XdxyOmxgeuLg41HlBV+/DGZGjb4BXzoHYM4SajhEindMeH5ET2BWfV7WcVrGvF3tjLr 3S5yxUg3uVkAnH/SZitWfa02dflUqysf2VZg/83nS4jVVIYi7XTiLr+0eXl38bPS4qZjmx6pCnE 1VYKde5xtmEG/XY/+hBGYboFgMOaePpD619CTKNRLPGTWRp8yI7gUpyNoSbPJ4Y3+fIheHrEQSR 32natddxwbKfyze6Il4TAItukqutoCH9U+6+8TnaHB3QJbcZxDsrjAdcZI/ X-Received: by 2002:a05:6808:1b1f:b0:495:f643:763f with SMTP id 5614622812f47-4b979e6c1a2mr7344805b6e.7.1788713862942; Sun, 06 Sep 2026 09:57:42 -0700 (PDT) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com. [209.85.167.169]) by smtp.gmail.com with ESMTPSA id 5614622812f47-4b97167bd69sm8766198b6e.13.2026.09.06.09.57.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Sep 2026 09:57:42 -0700 (PDT) Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-4b1ba286f6bso2715976b6e.1 for ; Sun, 06 Sep 2026 09:57:42 -0700 (PDT) X-Forwarded-Encrypted: i=1; AKwUvBz75+kPoOTsOHXgfZwZ0cqkl8vEoG3zO6yRyjIrtPXXRAYX+U5AU9rZIfaShKWHqqmWEoxXc+ymcT757K77w0Pjhsro@freebsd.org X-Received: by 2002:a4a:e914:0:b0:6b5:ec2f:3565 with SMTP id 006d021491bc7-6b5ec2f36bfmr9360099eaf.22.1788713862363; Sun, 06 Sep 2026 09:57:42 -0700 (PDT) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: <6a9d86a4.3ebe2.654627bc@gitrepo.freebsd.org> <1179D554-F68B-4F01-AB16-FC7D741996BF@gmail.com> In-Reply-To: <1179D554-F68B-4F01-AB16-FC7D741996BF@gmail.com> From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Sun, 6 Sep 2026 18:57:28 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AcwNN1XOD1aI6qkPQIEX_WFP-EvGpEacBDGy2x8gB24v_VVS3h-2eO2oPPlgHeA Message-ID: Subject: Re: git: fc002631af3e - main - whereis(1): Respect PORTSDIR variable To: "Enji Cooper (yaneurabeya)" Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000005f014c065ad3664b" X-Rspamd-Queue-Id: 4hdGbX1XwNz3DgH X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Spamd-Bar: ---- --0000000000005f014c065ad3664b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Sep 6, 2026 at 4:49=E2=80=AFPM Enji Cooper (yaneurabeya) < yaneurabeya@gmail.com> wrote: > Hi Fernando! > Apologies for not being more explicit when I provided a ship-it > earlier in the differential. There was a style(9) bug introduced with the > change that should have been fixed pre-commit. > I=E2=80=99ve highlighted the line below. > Thanks, > -Enji > > > On Sep 6, 2026, at 8:28=E2=80=AFAM, Fernando Apestegu=C3=ADa > wrote: > > > > The branch main has been updated by fernape: > > > > URL: > https://cgit.FreeBSD.org/src/commit/?id=3Dfc002631af3e25c65d74ca6869c13b5= 9f1af8689 > > > > commit fc002631af3e25c65d74ca6869c13b59f1af8689 > > Author: Fernando Apestegu=C3=ADa > > AuthorDate: 2026-09-04 18:27:34 +0000 > > Commit: Fernando Apestegu=C3=ADa > > CommitDate: 2026-09-06 15:25:59 +0000 > > > > whereis(1): Respect PORTSDIR variable > > > > Respect PORTSDIR variable for those who have the ports collection in > a different > > place than /usr/ports. PORTSDIR is a very common variable used in th= e > ports > > framework and in /etc/make.conf among other places. > > > > While here, remove and old reference to CVS. > > > > Reviewed by: delphij@, ngie@ > > Approved by: ngie@ > > Differential Revision: https://reviews.freebsd.org/D42156 > > --- > > usr.bin/whereis/whereis.1 | 4 +++- > > usr.bin/whereis/whereis.c | 38 +++++++++++++++++++++----------------- > > 2 files changed, 24 insertions(+), 18 deletions(-) > > =E2=80=A6 > > > - if (stat(PATH_PORTS, &sb) =3D=3D -1) { > > + path_ports =3D getenv("PORTSDIR"); > > + if (!path_ports) > > style(9): C code should test for `=3D=3D NULL`, not boolean false. Should be fixed now. Thanks for the heads up! --0000000000005f014c065ad3664b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Sep 6, = 2026 at 4:49=E2=80=AFPM Enji Cooper (yaneurabeya) <yaneurabeya@gmail.com> wrote:
Hi Fernando!
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Apologies for not being more explicit when I pr= ovided a ship-it earlier in the differential. There was a style(9) bug intr= oduced with the change that should have been fixed pre-commit.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I=E2=80=99ve highlighted the line below.
Thanks,
-Enji

> On Sep 6, 2026, at 8:28=E2=80=AFAM, Fernando Apestegu=C3=ADa <fernape@freebsd.org= > wrote:
>
> The branch main has been updated by fernape:
>
> URL: https://= cgit.FreeBSD.org/src/commit/?id=3Dfc002631af3e25c65d74ca6869c13b59f1af8689<= /a>
>
> commit fc002631af3e25c65d74ca6869c13b59f1af8689
> Author:=C2=A0 =C2=A0 =C2=A0Fernando Apestegu=C3=ADa <fernape@FreeBS= D.org>
> AuthorDate: 2026-09-04 18:27:34 +0000
> Commit:=C2=A0 =C2=A0 =C2=A0Fernando Apestegu=C3=ADa <fernape@FreeBS= D.org>
> CommitDate: 2026-09-06 15:25:59 +0000
>
>=C2=A0 =C2=A0 whereis(1): Respect PORTSDIR variable
>
>=C2=A0 =C2=A0 Respect PORTSDIR variable for those who have the ports co= llection in a different
>=C2=A0 =C2=A0 place than /usr/ports. PORTSDIR is a very common variable= used in the ports
>=C2=A0 =C2=A0 framework and in /etc/make.conf among other places.
>
>=C2=A0 =C2=A0 While here, remove and old reference to CVS.
>
>=C2=A0 =C2=A0 Reviewed by:=C2=A0 =C2=A0 delphij@, ngie@
>=C2=A0 =C2=A0 Approved by:=C2=A0 =C2=A0 ngie@
>=C2=A0 =C2=A0 Differential Revision:=C2=A0
https://reviews.fre= ebsd.org/D42156
> ---
> usr.bin/whereis/whereis.1 |=C2=A0 4 +++-
> usr.bin/whereis/whereis.c | 38 +++++++++++++++++++++-----------------<= br> > 2 files changed, 24 insertions(+), 18 deletions(-)

=E2=80=A6

> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (stat(PATH_PORTS, = &sb) =3D=3D -1) {
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path_ports =3D getenv= ("PORTSDIR");
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (!path_ports)

style(9): C code should test for `=3D=3D NULL`, not boolean false.

Should be fixed now.

Thank= s for the heads up!=C2=A0
--0000000000005f014c065ad3664b--