From nobody Tue Aug 22 05:42:50 2023
X-Original-To: freebsd-current@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 4RVJCl43yZz4qN8m
for ; Tue, 22 Aug 2023 05:42:59 +0000 (UTC)
(envelope-from grahamperrin@gmail.com)
Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229])
(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))
by mx1.freebsd.org (Postfix) with ESMTPS id 4RVJCj6dTRz4RNf
for ; Tue, 22 Aug 2023 05:42:57 +0000 (UTC)
(envelope-from grahamperrin@gmail.com)
Authentication-Results: mx1.freebsd.org;
dkim=pass header.d=gmail.com header.s=20221208 header.b=jOm4JG7g;
spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com
Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b974031aeaso63474761fa.0
for ; Mon, 21 Aug 2023 22:42:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20221208; t=1692682974; x=1693287774;
h=in-reply-to:subject:from:references:to:content-language:user-agent
:mime-version:date:message-id:from:to:cc:subject:date:message-id
:reply-to;
bh=M7XBR7sJU8fLaMaMAerlvve5OGBAqzs7vYk6VlGdvsk=;
b=jOm4JG7gyXDxEov0/txL4/cZi3QI0EFHqWTi0FW9kq8KebTINMS3u+uYNihv1hGxEt
9WBp4+iBis4m1Nd0jiGzyS546w1fg++pFOCI1nPOpgA/ZkM+rhkBHfkAwb6amltfpLAK
SP07bX8Lyc05WrwE+zwmErrDZbv+1S8fJnNB0YlEuO+wMr9AHFE3D5cP2208UhnU6ZsM
G941PqlXRfP9+D+qYZ98ZibD3LyWyF9I1ZzWRCnv//sITvlqmpw4E7Ugq5T9wLSoXasg
zHncloLWpeSuWvqATu/+3W1rUA0HR51Bbz/VQUugvXOxlA+aVreyLxyvdT521qWCRAof
1niA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1692682974; x=1693287774;
h=in-reply-to:subject:from:references:to:content-language:user-agent
:mime-version:date:message-id:x-gm-message-state:from:to:cc:subject
:date:message-id:reply-to;
bh=M7XBR7sJU8fLaMaMAerlvve5OGBAqzs7vYk6VlGdvsk=;
b=eP2ug6Yb7G/j21rg895KP9cDXXblSKZ704WttGozdpIjTGAbKEycTvDLKK7x0wfQjU
5sMYHXfs6Q0at/wpIpXNS2ks6Sy7KTuIvZVcyIZFt3vim/oyADhvSbosNSBBiNuEf6o3
1XLgsxSPfhfjr+4ZoWh4EO72wDYv6WKjypxhxGfxdouzVgMTXtr9K0VSLQd+8IC5ADxz
+EEV+vKdQkog3KyddeGx0cliXts8RpifW+xLUqSr9PTTfdsgmDrv/GCeJIVL8t2bKLlJ
b9j8jB51LYxiJKUV4gwtG6TiPujYHRvy4Sxf7bdQXJz3c/LTBwnexeSiBNX22i6Gh500
zlXg==
X-Gm-Message-State: AOJu0YzltRXp9CGSg7cA1hhpcxI+aaYLQexoDQB4KqhPBNrJuf6ZIpmS
WArXcTMXAlMnM1Xh1iwhkM/0D89D6Yg=
X-Google-Smtp-Source: AGHT+IFzQlhVZ0bet74OO1qIG+pNR7eds2yYhxx1vUQmAV7d1CzUzX86ACoqZQ/ZXk1Ub4pmxxC/tA==
X-Received: by 2002:a2e:894b:0:b0:2ba:38c4:1624 with SMTP id b11-20020a2e894b000000b002ba38c41624mr6912455ljk.15.1692682973370;
Mon, 21 Aug 2023 22:42:53 -0700 (PDT)
Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93])
by smtp.gmail.com with ESMTPSA id bs9-20020a170906d1c900b0099bcd1fa5b0sm7587560ejb.192.2023.08.21.22.42.51
for
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Mon, 21 Aug 2023 22:42:52 -0700 (PDT)
Content-Type: multipart/alternative;
boundary="------------2bLO4bdgjOQdXxrBu3Fcq0Cj"
Message-ID:
Date: Tue, 22 Aug 2023 06:42:50 +0100
List-Id: Discussions about the use of FreeBSD-current
List-Archive: https://lists.freebsd.org/archives/freebsd-current
List-Help:
List-Post:
List-Subscribe:
List-Unsubscribe:
Sender: owner-freebsd-current@freebsd.org
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Content-Language: en-US
To: FreeBSD CURRENT
References: <31c2b00f-a3c4-5608-9776-fa20ea005a45@gmail.com>
From: Graham Perrin
Subject: =?UTF-8?B?cG9ydHMtbWdtdC9wb3J0Y29uZiDigJMgbm90IHNyYy5jb25mKDUpIA==?=
=?UTF-8?Q?=e2=80=93_to_specify_multiple_flavours_of_a_port_for_buildkernel_?=
=?UTF-8?Q?purposes?=
In-Reply-To:
X-Spamd-Result: default: False [-2.99 / 15.00];
URI_COUNT_ODD(1.00)[7];
NEURAL_HAM_MEDIUM(-1.00)[-1.000];
NEURAL_HAM_LONG(-1.00)[-1.000];
NEURAL_HAM_SHORT(-0.99)[-0.989];
DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36];
R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208];
MIME_GOOD(-0.10)[multipart/alternative,text/plain];
FROM_HAS_DN(0.00)[];
FREEFALL_USER(0.00)[grahamperrin];
TO_MATCH_ENVRCPT_ALL(0.00)[];
RCVD_VIA_SMTP_AUTH(0.00)[];
RCPT_COUNT_ONE(0.00)[1];
PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org];
RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from];
ARC_NA(0.00)[];
MID_RHS_MATCH_FROM(0.00)[];
MLMMJ_DEST(0.00)[freebsd-current@freebsd.org];
DKIM_TRACE(0.00)[gmail.com:+];
TO_DN_ALL(0.00)[];
FREEMAIL_FROM(0.00)[gmail.com];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
FROM_EQ_ENVFROM(0.00)[];
MIME_TRACE(0.00)[0:+,1:+,2:~];
RCVD_TLS_LAST(0.00)[];
ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
FREEMAIL_ENVFROM(0.00)[gmail.com];
RCVD_COUNT_TWO(0.00)[2]
X-Spamd-Bar: --
X-Rspamd-Queue-Id: 4RVJCj6dTRz4RNf
This is a multi-part message in MIME format.
--------------2bLO4bdgjOQdXxrBu3Fcq0Cj
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
On 22/08/2023 05:34, Warner Losh wrote:
>
> How might I use /etc/src.conf to achieve much the same, with a
> different port?
>
>
>
> I thought stuff like this went in ports.conf...
>
> …
Warner solves another mystery. Thanks!
Honestly, I was oblivious to the possibility:
% man -P cat 5 ports.conf
No manual entry for ports.conf
% apropos ports.conf
apropos: nothing appropriate
% rg -i -e 'ports\.conf' /usr/doc/website/content/en
% rg -i -e 'ports\.conf' /usr/doc/documentation/content/en
%
– and so on. As far as I can tell, it's not documented in the usual places.
Eventually, Google helped to remind me of a 2021 comment
,
where part of the previous person's comment had never sunk in. I wrote:
> (I never used ports-mgmt/portconf, and so on.)
So:
% gh repo sync grahamperrin/freebsd-ports && git -C /usr/ports pull
--ff-only --quiet && git -C /usr/ports pull --ff-only freebsd main
✓Synced the "grahamperrin:main" branch from "freebsd:main"
Updating files: 100% (35/35), done.
From https://git.freebsd.org/ports
* branch main -> FETCH_HEAD
15a5c70847f1..355374a1f6be main -> freebsd/main
Already up to date.
% sudo pkg install ports-mgmt/portconf
grahamperrin's password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.pkg: 100% 2 KiB 2.2kB/s 00:01
The provides database is up-to-date.
Processing entries: 100%
poudriere repository update completed. 7 packages processed.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
portconf: 1.6_1 [FreeBSD]
Number of packages to be installed: 1
2 KiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching portconf-1.6_1.pkg: 100% 2 KiB 2.3kB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Installing portconf-1.6_1...
[1/1] Extracting portconf-1.6_1: 100%
Spamming /etc/make.conf... Done.
=====
Message from portconf-1.6_1:
--
To set port-specific make variables, create the
/usr/local/etc/ports.conf configuration file
with the following syntax:
# this is a comment
*: NOPORTDOCS
editors/openoffice-3: WITH_CCACHE|LOCALIZED_LANG=it
print/ghostscript-* print/lpr-wrapper: A4
sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS
www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it
x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc"
Global port directory patterns and blanks around the
pipe "|" symbol are allowed.
Values shouldn't be quoted even if they contain spaces.
Lines beginning with a '#' are comments.
% apropos ports.conf
apropos: nothing appropriate
% rg --count -e 'ports\.conf' /usr/ports
/usr/ports/net-mgmt/ocsinventory-ocsreports/files/pkg-message.in:1
/usr/ports/ports-mgmt/portconf/files/pkg-message.in:1
/usr/ports/ports-mgmt/portconf/files/portconf.sh.in:1
^C
% sudo nano /usr/local/etc/ports.conf
grahamperrin's password:
% cat /usr/local/etc/ports.conf
graphics/gpu-firmware-radeon-kmod: FLAVORS=btc sumo turks
%
Still, there's guesswork. I have /no/ idea whether the FLAVORS part of
that last line is valid :-)
Time will tell.
--------------2bLO4bdgjOQdXxrBu3Fcq0Cj
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
On 22/08/2023 05:34, Warner Losh wrote:
How might I use /etc/src.conf
to achieve much the same, with a different port?
I thought stuff like this went in ports.conf...
…
Warner solves another mystery. Thanks!
Honestly, I was oblivious to the possibility:
% man -P cat 5
ports.conf
No manual entry for ports.conf
% apropos ports.conf
apropos: nothing appropriate
% rg -i -e 'ports\.conf' /usr/doc/website/content/en
% rg -i -e 'ports\.conf' /usr/doc/documentation/content/en
%
– and so on. As far as I can tell, it's not documented in the
usual places.
Eventually, Google helped to remind me of a 2021 comment
<https://github.com/freebsd/poudriere/issues/835#issuecomment-962728743>,
where part of the previous person's comment had never sunk in. I
wrote:
(I never used ports-mgmt/portconf, and so
on.)
So:
% gh repo sync
grahamperrin/freebsd-ports && git -C /usr/ports pull
--ff-only --quiet && git -C /usr/ports pull --ff-only
freebsd main
✓ Synced the
"grahamperrin:main" branch from "freebsd:main"
Updating files: 100% (35/35), done.
From https://git.freebsd.org/ports
* branch main -> FETCH_HEAD
15a5c70847f1..355374a1f6be main -> freebsd/main
Already up to date.
% sudo pkg install ports-mgmt/portconf
grahamperrin's password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.pkg: 100% 2 KiB 2.2kB/s 00:01
The provides database is up-to-date.
Processing entries: 100%
poudriere repository update completed. 7 packages processed.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
portconf: 1.6_1 [FreeBSD]
Number of packages to be installed: 1
2 KiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching portconf-1.6_1.pkg: 100% 2 KiB 2.3kB/s
00:01
Checking integrity... done (0 conflicting)
[1/1] Installing portconf-1.6_1...
[1/1] Extracting portconf-1.6_1: 100%
Spamming /etc/make.conf... Done.
=====
Message from portconf-1.6_1:
--
To set port-specific make variables, create the
/usr/local/etc/ports.conf configuration file
with the following syntax:
# this is a comment
*: NOPORTDOCS
editors/openoffice-3: WITH_CCACHE|LOCALIZED_LANG=it
print/ghostscript-* print/lpr-wrapper: A4
sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS
www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it
x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc"
Global port directory patterns and blanks around the
pipe "|" symbol are allowed.
Values shouldn't be quoted even if they contain spaces.
Lines beginning with a '#' are comments.
% apropos ports.conf
apropos: nothing appropriate
% rg --count -e 'ports\.conf' /usr/ports
/usr/ports/net-mgmt/ocsinventory-ocsreports/files/pkg-message.in:1
/usr/ports/ports-mgmt/portconf/files/pkg-message.in:1
/usr/ports/ports-mgmt/portconf/files/portconf.sh.in:1
^C
% sudo nano /usr/local/etc/ports.conf
grahamperrin's password:
% cat /usr/local/etc/ports.conf
graphics/gpu-firmware-radeon-kmod: FLAVORS=btc sumo turks
%
Still, there's guesswork. I have no idea whether the
FLAVORS part of that last line is valid :-)
Time will tell.
--------------2bLO4bdgjOQdXxrBu3Fcq0Cj--