From nobody Tue Jul 2 11:21:30 2024 X-Original-To: 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 4WD0q03cBWz5Q9Vn for ; Tue, 02 Jul 2024 11:21:32 +0000 (UTC) (envelope-from DutchDaemon@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WD0q00Nf8z4jJT for ; Tue, 2 Jul 2024 11:21:32 +0000 (UTC) (envelope-from DutchDaemon@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719919292; 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:autocrypt:autocrypt; bh=eBGF45hK/TxEvDnCySoChk9u8n0NsoJFVr1ymlaWZfM=; b=adIM0nW7X59QMtroK3f79tjeB5YFZaRHfA4jq9md3uRKVS8JacxXCdMoFK2iLbiT3AEAvE 6vYyWQSFSgf4OPa9wlfiz2GW2XrXItUF5ScnhV7S0v/qKKAsUKeIOO6m4kQ6kt4pNA3zg3 a0qJGIeivtg4gSaSA0LGdrCWpAElwV9IO85MAQECAhMaO82qcX26D673NYacj0sR3nj0WK hwNhSN/pQvKVVzGo/adrcKRsTMHjwUv20GlTOlLQBtljCmk+Zpg7dfBHE6yRc7hApDrfhL f2fB01g9MJEPFtc4k/3KP/MDmGi/pxWiUYAe+ENB43A3CeQaOdgpk6azptuXKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719919292; a=rsa-sha256; cv=none; b=tBs1dYOWEoA5UxQ3l9lQaPbvphxw3NKOunl25EvXsooi0OKFIC0lR7A7uUso3FQRPjYENu Xw1vn8l6EnIShHj6CzhiIvBh/yTYjv3eMsjYKhy862o6Av4kqm76kgBVvOp0vcxjmOQe+4 wPTF+utDaDKuteSAwDgtG4k9I7kT5OVe9N1laiRrTwIEWzntWVPFzJOfTbp/xwf2bLh5Oi SFZiGlbwW9i3rg939rnxKoJAESBPoucc/crY2XvwEGy9iJhuKIdVhEUaT4c4wDadeOLle6 RC6S5hfCT/Wnq7Cjz1uSMwJsEj6q3RnaH+NJI/DO3548t+Xard4lBbV7c8vHpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719919292; 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:autocrypt:autocrypt; bh=eBGF45hK/TxEvDnCySoChk9u8n0NsoJFVr1ymlaWZfM=; b=IwjQD+WRbBjfjyLeg6ltDD9h+jyOSiuxtMlh13NHPE4C+FdkLq9YesLJW395rWdh4bnCDO akg/NN56PXSgacrLn6JsHnMu/FZGoKFUwbHfHI2TFZJv97wvoLR9bSA4tbRpZC+CLKsz7F 3f34kfoBvX4TA5x53cbWfZZkahQx8cckOUa4j5P3HsFCbddoxvZqtyEHgbNlV+EGyC5ak2 P/LFd0ALXoFxsYZRc42K2Alcgvc5FuZHn9DWKjPjK09LStbFS31uPdvWd1RPQ4jYwPyhHp ESZbo/pxl7zSl/wDY80235fHwIx5VZ4cEcVbGdTw9Msh5LknJP4iD0/gBZ/Hkw== Received: from [192.168.178.212] (unknown [85.148.89.7]) (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 did not present a certificate) (Authenticated sender: dutchdaemon/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WD0pz5lcwz13k2 for ; Tue, 2 Jul 2024 11:21:31 +0000 (UTC) (envelope-from DutchDaemon@FreeBSD.org) Message-ID: <1144fd28-c9d5-43be-b3ce-77a8e0051634@FreeBSD.org> Date: Tue, 2 Jul 2024 13:21:30 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Betterbird (Windows) Subject: Re: Can `pkg prime-origins` be "trained" to pick up flavors? To: ports@freebsd.org References: <20240702022215.86f678352bf5d7c6bf3dea4d@dec.sakura.ne.jp> <748eaf90-6c2d-41e3-8334-88458c21b7c3@FreeBSD.org> <20240702064448.1072c2a31ba44ed483730d0b@dec.sakura.ne.jp> <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp> Content-Language: en-US From: DutchDaemon - FreeBSD Forums Administrator Autocrypt: addr=DutchDaemon@FreeBSD.org; keydata= xjMEZa5xHxYJKwYBBAHaRw8BAQdAfWZ69PhvjxSC5/RYQaU5TFyz+SENz3Oi0fkdJIISjGHN RER1dGNoRGFlbW9uIC0gRnJlZUJTRCBGb3J1bXMgQWRtaW5pc3RyYXRvciA8RHV0Y2hEYWVt b25ARnJlZUJTRC5vcmc+wokEExYIADEWIQSDIpfQllw48uFsWk/r4FMJZEPckQUCZa5xHwIb AwQLCQgHBRUICQoLBRYCAwEAAAoJEOvgUwlkQ9yRf7EBAMinyZF8zVzNuHpeKdGPHVZcNqBj 1H192nmduRSxejFnAP490W4kl7pwtdpMVrX7iJqkWanO2L0kWlig7csNIi5nAs44BGWucR8S CisGAQQBl1UBBQEBB0Ajr12wp47yOqDF5v8c+VC9pklim0qa1FrqxTMaA1kUJAMBCAfCeAQY FggAIBYhBIMil9CWXDjy4WxaT+vgUwlkQ9yRBQJlrnEfAhsMAAoJEOvgUwlkQ9yRsg0A/1UY CnRZEZOesZgnpCTuERpnJR5chIY9Y1bxUSxTerF7AP9x+CE28IZ7xFZfwHiss0VaDvQhNG08 NzNJHBSshFjtBQ== Organization: The FreeBSD Forums In-Reply-To: <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------huZftVrkmpHSFF0K5ZH45EJU" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------huZftVrkmpHSFF0K5ZH45EJU Content-Type: multipart/mixed; boundary="------------pyk5isQwJ0EO71t05Rjs6NZL"; protected-headers="v1" From: DutchDaemon - FreeBSD Forums Administrator To: ports@freebsd.org Message-ID: <1144fd28-c9d5-43be-b3ce-77a8e0051634@FreeBSD.org> Subject: Re: Can `pkg prime-origins` be "trained" to pick up flavors? References: <20240702022215.86f678352bf5d7c6bf3dea4d@dec.sakura.ne.jp> <748eaf90-6c2d-41e3-8334-88458c21b7c3@FreeBSD.org> <20240702064448.1072c2a31ba44ed483730d0b@dec.sakura.ne.jp> <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp> In-Reply-To: <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp> --------------pyk5isQwJ0EO71t05Rjs6NZL Content-Type: multipart/alternative; boundary="------------2QXV0O5A0ZjOy6dpG2HERoel" --------------2QXV0O5A0ZjOy6dpG2HERoel Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMi03LTIwMjQgMDA6NTIsIFRvbW9ha2kgQU9LSSB3cm90ZToNCj4gU2NyaXB0IGJlbG93 IHdvdWxkIHdvcmsgZm9yIHlvdS4NCj4gZm9yIHBvcnQgaW4gJCggL3Vzci9sb2NhbC9zYmlu L3BrZyBwcmltZS1vcmlnaW5zIHwgc29ydCAtdSApDQo+IGRvDQo+IGZsYXZvcj0kKCAvdXNy L2xvY2FsL3NiaW4vcGtnIGluZm8gLUEgIiR7cG9ydH0iIHwgXA0KPiAvdXNyL2Jpbi9ncmVw ICJmbGF2b3IiIHwgL3Vzci9iaW4vYXdrICd7cHJpbnQgJE5GfScgfCBcDQo+IC91c3IvYmlu L2dyZXAgLXYgImRlZmF1bHQiICkNCj4gWyAieCR7Zmxhdm9yfSIgPSAieCIgXSAmJiBlY2hv ICIke3BvcnR9IiB8fCBcDQo+ICAgIGZvciBmbHZyIGluICR7Zmxhdm9yfQ0KPiAgICBkbw0K PiAgICAgIGVjaG8gLW4gJHtmbHZyfSA7IFsgIngke2ZsdnJ9IiA9ICJ4IiBdICYmIGVjaG8g IiR7cG9ydH0iIHx8IFwNCj4gICAgICBlY2hvICIke3BvcnR9QCR7Zmx2cn0iDQo+ICAgIGRv bmUNCj4gZG9uZQ0KDQoNCkkgZG9uJ3QgdGhpbmsgSSBoYXZlIGFueXRoaW5nIG11bHRpLWZs YXZvcmVkIGFueXdoZXJlLCBidXQgZ29vZCBjYXRjaC4gDQpUaGFua3MhDQoNCg== --------------2QXV0O5A0ZjOy6dpG2HERoel Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 2-7-2024 00:52, Tomoaki AOKI wrote:=
Script below would work for you.
for port in $( /usr/local/sbin/pkg prime-origins | sort -u )
do
flavor=3D$( /usr/local/sbin/pkg info -A "${port}" | \
/usr/bin/grep "flavor" | /usr/bin/awk '{print $NF}' | \
/usr/bin/grep -v "default" )
[ "x${flavor}" =3D "x" ] && echo "${port}" || \
  for flvr in ${flavor}
  do
    echo -n ${flvr} ; [ "x${flvr}" =3D "x" ] && echo "${port}" ||=
 \
    echo "${port}@${flvr}"
  done
done


I don't think I have anything multi-flavored anywhere, but good catch. Thanks!

--------------2QXV0O5A0ZjOy6dpG2HERoel-- --------------pyk5isQwJ0EO71t05Rjs6NZL-- --------------huZftVrkmpHSFF0K5ZH45EJU Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQSDIpfQllw48uFsWk/r4FMJZEPckQUCZoPiugUDAAAAAAAKCRDr4FMJZEPckS5p AP9yuV+ZDxZ2qcLISzX9UeC7txQmWqpWpCVata1XmD9WuQD+LK5Z3tm7FwtCkXAyYkOpAIOHUaR0 j2iF6jvVhsn/mAc= =nAzE -----END PGP SIGNATURE----- --------------huZftVrkmpHSFF0K5ZH45EJU--