From nobody Mon Jul 01 17:47:22 2024 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 4WCYRM3m48z5Q8r3 for ; Mon, 01 Jul 2024 17:47:59 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Received: from ipv6.s149.cyber-folks.pl (ipv6.s149.cyber-folks.pl [IPv6:2a02:1778::113:254]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCYRM1WvCz4Y1d; Mon, 1 Jul 2024 17:47:59 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smyrak.com; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CRrPLbEcG4V1X6W+ibqn51uU2LZGWcLzLP3S3kWUe/c=; b=rfovyUaTkloUn/i4XiIkG0eDiN rRc5rIdGoG5F8ojJPxeMtw95XmJ68TNhKdiQ3o9MXZD0sMIbcqpB0p+GzN1gBFXNzqxhblgbMUXa3 cfOnG2hh1GhDCYpd21lwq4sk0z3zCybpqRnhJm3o7aCafzy6hKJFZ1o6ry2yd0rG0YVIYj9zXLwBj AZ33qaMx4Mqiyi56iJlmze8wkAoaZidDwL54xbgiEhjQjlCjwYmzhqFWyanG2CEx0IwyP9QikLlkF Bb9UFeqVDj4G3cIjg6qgbsFUG7M2JM41G5rnqozuvervQagN7GpoFZ0ALY/N8tqEOEX4aVYITyn1a /vQylC+A==; Received: from 93-181-165-201.internetia.net.pl ([93.181.165.201] helo=daleth.home) by s149.cyber-folks.pl with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1sOL8A-0000000BZGH-0Amv; Mon, 01 Jul 2024 19:47:58 +0200 Date: Mon, 1 Jul 2024 19:47:22 +0200 From: Piotr Smyrak To: freebsd-ports@freebsd.org Cc: DutchDaemon - FreeBSD Forums Administrator Subject: Re: Can `pkg prime-origins` be "trained" to pick up flavors? Message-ID: <20240701194722.7474335e@daleth.home> In-Reply-To: References: 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authenticated-Id: piero@smyrak.com X-Spamd-Bar: ---- 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)[]; ASN(0.00)[asn:41079, ipnet:2a02:1778::/48, country:PL] X-Rspamd-Queue-Id: 4WCYRM1WvCz4Y1d On Mon, 1 Jul 2024 15:46:18 +0200 DutchDaemon - FreeBSD Forums Administrator wrote: > I use `pkg prime-origins` on my servers to pick up the ports that > Poudriere needs to build for that (cluster of) server(s). > > This doesn't work for flavors, or I'm missing a trick. > > E.g.: I have installed the "guestagent" flavor of emulators/qemu > ("qemu-guest-agent" in pkg terms), which gets built in Poudriere as > "emulators/qemu@guestagent". > > All good and well. > > But `pkg prime-origins` picks it up as "emulators/qemu", which, of > course, triggers Poudriere to build the whole thing, > "emulators/qemu@default". > > Which I don't need. > > So either pkg needs to be amended to be able to recognize and report > a flavor, or I have to put this in the jail's make.conf on Poudriere. > > I'm not sure if there's a place for that in a generic make.conf for > all ports in that specific jail; you know, one that contains > all-encompassing lines like > > DEFAULT_VERSIONS= php=82 apache=2.4 mysql=80 ssl=openssl python=3.9 > python3=3.9 `pkg prime-origins` is non part of pkg per se. It is an alias configured in pkg config and based on pkg-query(8), where it stands for: prime-origins: "query -e '%a = 0' '%o'", Which means that only the origin will be printed out. Flavors are recorded in package annotations, but IIUC only a number of pkg annotations is available for queries. -- Piotr Smyrak