From owner-freebsd-ports@FreeBSD.ORG Wed Mar 19 12:25:10 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D50B5E91 for ; Wed, 19 Mar 2014 12:25:10 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B8DF7E96 for ; Wed, 19 Mar 2014 12:25:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2JCPAt4086687 for ; Wed, 19 Mar 2014 12:25:10 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2JCPAGM086686 for ports@FreeBSD.org; Wed, 19 Mar 2014 12:25:10 GMT (envelope-from bdrewery) Received: (qmail 94891 invoked from network); 19 Mar 2014 07:25:05 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 19 Mar 2014 07:25:05 -0500 Message-ID: <53298C9F.50200@FreeBSD.org> Date: Wed, 19 Mar 2014 07:25:03 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: FreeBSD Ports Subject: portmaster/portupgrade -P/PP + pkg, ports package sources X-Enigmail-Version: 1.6 OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jK1DV0pXf1p3jtdeaH2jkLM76EaJhwmsh" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 12:25:11 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jK1DV0pXf1p3jtdeaH2jkLM76EaJhwmsh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable FYI, I plan to enable this support soon in both tools. I actually see 4 different modes here. Note I made up --local-only for this discussion, I am not changing the flags in either tool. -P: Use package if available, otherwise build from source. -P --local-only: Use local package if available, otherwise build from source. -PP: Only use packages -PP --local-only: Only use local packages. I did not quite understand the use-case for it and was not convinced it was needed until recently. I will be adding a majority of the logic into the ports framework though. A lot of this logic already exists, just needs to be refined and hooked together. Ports will have a flags to enable the use cases above (only for pkgng). It will search local package dir and then remote for the package before installing. These flags will all be off by default. Portmaster/Portupgrade/Poudriere all will utilize them. Yes, poudriere has a need here for installing dependencies from local packages for interactive testing where it is more efficient to do it in the framework.= One of the reasons I plan to put this logic into ports is so the same consistent (smart) logic can be used in both tools. In general I believe that all logic like this should be in ports and not in tools such as portmaster/portupgrade/poudriere/tinderbox. There is still some unrelated lingering logic in poudriere that needs to be moved to the framework in fact. One of the blockers to making this work properly is having an official repository installed out-of-the-box. I am working on getting an EN out to publish the repository and fingerprints for pkg. As a last resort we may publish this in ports as well in /Templates/repo, which pkg(8) can utilize as a last resort for this ports feature. If it comes to that I will give more details on it. This repo could be disabled in the same way as the FreeBSD one is today, by creating a file in /usr/local/etc/pkg/repos/FreeBSD.conf with contents "FreeBSD: { enabled: false }" --=20 Regards, Bryan Drewery --jK1DV0pXf1p3jtdeaH2jkLM76EaJhwmsh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTKYyfAAoJEDXXcbtuRpfPPrQIAMO3Eb2askTw30NyVtWnJ7Gh itklq9G8aomD973MQGKqJrSjKIYlasImtJWBzDqSuD9dS0ofCb0NByg9wN+sd+rl 8fHg4Q4mnuIblkJcZ3pPc8IMm6WBsGmELyWYnG2F0EzmL61f8RBIgFTV8DRB0KgN nVrSVpnnf3tC7QGpVYLFT1TVfb1Z9+wyUPBrB39Q/FocYGufH9+DvpUol35F7nmI 8hWfqjr/XNfaI49QIBaziNVdP0NVHiB2uWMBRm3xOKKpuE9LxlBMqcvC0kNZH1st JzPNKZvvIgnr8vPKWMygb7plWvxswZj5y6yMf0YfQ6abaUAiMxE/SfveoBMrD3Q= =MXKZ -----END PGP SIGNATURE----- --jK1DV0pXf1p3jtdeaH2jkLM76EaJhwmsh--