Date: Tue, 22 Aug 2023 06:42:50 +0100 From: Graham Perrin <grahamperrin@gmail.com> To: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: =?UTF-8?B?cG9ydHMtbWdtdC9wb3J0Y29uZiDigJMgbm90IHNyYy5jb25mKDUpIA==?= =?UTF-8?Q?=e2=80=93_to_specify_multiple_flavours_of_a_port_for_buildkernel_?= =?UTF-8?Q?purposes?= Message-ID: <e645f676-2eb8-fe1d-83ce-1812763bdbcf@gmail.com> In-Reply-To: <CANCZdfoouKRnDm3xfFGfFsdUL3cygyCvpJipoRWiRpvi4B_s7w@mail.gmail.com> References: <31c2b00f-a3c4-5608-9776-fa20ea005a45@gmail.com> <CANCZdfoouKRnDm3xfFGfFsdUL3cygyCvpJipoRWiRpvi4B_s7w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html data-lt-installed="true"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body style="padding-bottom: 1px;"> <div class="moz-cite-prefix">On 22/08/2023 05:34, Warner Losh wrote:<br> </div> <blockquote type="cite" cite="mid:CANCZdfoouKRnDm3xfFGfFsdUL3cygyCvpJipoRWiRpvi4B_s7w@mail.gmail.com"> <div> <div class="gmail_quote"> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div style="padding-bottom:1px"> <p>How might I use <font face="monospace">/etc/src.conf</font> to achieve much the same, with a different port?</p> </div> </blockquote> </div> </div> <div dir="auto"><br> </div> <div dir="auto"><br> </div> <div dir="auto">I thought stuff like this went in ports.conf...<br> <br> …<br> </div> </blockquote> <p>Warner solves another mystery. Thanks!<br> </p> <p>Honestly, I was oblivious to the possibility:<br> </p> <p><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">% man -P cat 5 ports.conf </span><br> No manual entry for ports.conf <br> % apropos ports.conf <br> apropos: nothing appropriate <br> % rg -i -e 'ports\.conf' /usr/doc/website/content/en <br> % rg -i -e 'ports\.conf' /usr/doc/documentation/content/en <br> % <br> </span></p> <p>– and so on. As far as I can tell, it's not documented in the usual places. <br> </p> <p>Eventually, Google helped to remind me of a 2021 comment <a class="moz-txt-link-rfc2396E" href="https://github.com/freebsd/poudriere/issues/835#issuecomment-962728743"><https://github.com/freebsd/poudriere/issues/835#issuecomment-962728743></a>, where part of the previous person's comment had never sunk in. I wrote:</p> <p> <blockquote type="cite">(I never used ports-mgmt/portconf, and so on.)</blockquote> </p> <p><br> </p> <p>So: <br> </p> <p><br> </p> <p><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">% gh repo sync grahamperrin/freebsd-ports && git -C /usr/ports pull --ff-only --quiet && git -C /usr/ports pull --ff-only freebsd main </span><br> <span style="color:#18b218;background-color:#ffffff;">✓</span><span style="color:#000000;background-color:#ffffff;"> Synced the "grahamperrin:main" branch from "freebsd:main" </span><br> Updating files: 100% (35/35), done. <br> From <a class="moz-txt-link-freetext" href="https://git.freebsd.org/ports">https://git.freebsd.org/ports</a> <br> * branch main -> FETCH_HEAD <br> 15a5c70847f1..355374a1f6be main -> freebsd/main <br> Already up to date. <br> % sudo pkg install ports-mgmt/portconf <br> grahamperrin's password: <br> Updating FreeBSD repository catalogue... <br> FreeBSD repository is up to date. <br> Updating poudriere repository catalogue... <br> Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 <br> Fetching packagesite.pkg: 100% 2 KiB 2.2kB/s 00:01 <br> The provides database is up-to-date. <br> Processing entries: 100% <br> poudriere repository update completed. 7 packages processed. <br> All repositories are up to date. <br> The following 1 package(s) will be affected (of 0 checked): <br> <br> New packages to be INSTALLED: <br> portconf: 1.6_1 [FreeBSD] <br> <br> Number of packages to be installed: 1 <br> <br> 2 KiB to be downloaded. <br> <br> Proceed with this action? [y/N]: y <br> [1/1] Fetching portconf-1.6_1.pkg: 100% 2 KiB 2.3kB/s 00:01 <br> Checking integrity... done (0 conflicting) <br> [1/1] Installing portconf-1.6_1... <br> [1/1] Extracting portconf-1.6_1: 100% <br> Spamming /etc/make.conf... Done. <br> ===== <br> Message from portconf-1.6_1: <br> <br> -- <br> To set port-specific make variables, create the <br> /usr/local/etc/ports.conf configuration file <br> with the following syntax: <br> <br> <br> # this is a comment <br> *: NOPORTDOCS <br> editors/openoffice-3: WITH_CCACHE|LOCALIZED_LANG=it <br> print/ghostscript-* print/lpr-wrapper: A4 <br> sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS <br> www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it <br> x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc" <br> <br> <br> Global port directory patterns and blanks around the <br> pipe "|" symbol are allowed. <br> Values shouldn't be quoted even if they contain spaces. <br> Lines beginning with a '#' are comments. <br> % apropos ports.conf <br> apropos: nothing appropriate <br> % rg --count -e 'ports\.conf' /usr/ports <br> <span style="color:#b218b2;background-color:#ffffff;">/usr/ports/net-mgmt/ocsinventory-ocsreports/files/pkg-message.in</span><span style="color:#000000;background-color:#ffffff;">:1 </span><br> <span style="color:#b218b2;background-color:#ffffff;">/usr/ports/ports-mgmt/portconf/files/pkg-message.in</span><span style="color:#000000;background-color:#ffffff;">:1 </span><br> <span style="color:#b218b2;background-color:#ffffff;">/usr/ports/ports-mgmt/portconf/files/portconf.sh.in</span><span style="color:#000000;background-color:#ffffff;">:1 </span><br> ^C <br> % sudo nano /usr/local/etc/ports.conf <br> grahamperrin's password: <br> % cat /usr/local/etc/ports.conf <br> graphics/gpu-firmware-radeon-kmod: FLAVORS=btc sumo turks <br> % <br> <br> <br> </span></p> <p>Still, there's guesswork. I have <i>no</i> idea whether the FLAVORS part of that last line is valid :-)</p> <p>Time will tell. <br> </p> </body> <lt-container></lt-container> </html> --------------2bLO4bdgjOQdXxrBu3Fcq0Cj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e645f676-2eb8-fe1d-83ce-1812763bdbcf>