From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 22:37:11 2014 Return-Path: Delivered-To: freebsd-questions@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 85745401 for ; Tue, 2 Sep 2014 22:37:11 +0000 (UTC) Received: from avasout08.plus.net (avasout08.plus.net [212.159.14.20]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF2C1E59 for ; Tue, 2 Sep 2014 22:37:10 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout08 with smtp id mNd21o002516WCc01Nd33J; Tue, 02 Sep 2014 23:37:03 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=fsVSZTIf c=1 sm=1 tr=0 a=lfSX4pPLp9EkufIcToJk/A==:117 a=lfSX4pPLp9EkufIcToJk/A==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=OOzCJWdBeL0A:10 a=C3HNYFm91mYA:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=6I5d2MoRAAAA:8 a=Q4HbV60tK_UD7cuJdC0A:9 a=wPNLvfGTeEIA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.84) (envelope-from ) id 1XOwhB-000BWc-Ny for freebsd-questions@freebsd.org; Tue, 02 Sep 2014 23:37:02 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Tue, 02 Sep 2014 23:37 +0100 Message-ID: <4449233.ee8yzlM0pQ@curlew.lan> User-Agent: KMail/4.12.5 (FreeBSD/9.3-RELEASE; KDE/4.12.5; amd64; ; ) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Subject: Package repository priorities Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-1" X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2014 22:37:11 -0000 I'm trying to use poudriere to maintain packages which need to be built with non-default options. I can install packages from my repository with the -r option but it looks like I'll have problems when I next need to run pkg upgrade because there doesn't seem to be a way to ensure that my repository will automaticallytake precedence over the remote FreeBSD repository for the packages I've built. According to pkg-repository(5) I should follow the following steps pkg install -r repo-a example-1.0.0 and then to make updates to that package ``sticky'' to the same reposi-tory, add an annotation to the package: pkg annotate -A example repository repo-a Things seem to have changed a bit since thw man page was created in September last year because I see that packages are now automatically annotated with the repository name: curlew:/root# uname -a FreeBSD curlew.lan 9.3-RELEASE FreeBSD 9.3-RELEASE #0 r268512: Thu Jul 10 23:44:39 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 curlew:/root# pkg info pkg exim-sa-exim mod_php5 pkg-1.3.7 exim-sa-exim-4.84+4.2_1 Mod_php5-5.4.32,1 Exim-sa-exim and mod_php5 came from my repository and this shows up without me setting any annotation: curlew:/var/log# pkg query "%n %At %Av" exim-sa-exim mod_php5 | grep repository exim-sa-exim repository poudriere mod_php5 repository poudriere But attempts to upgrade them are inconsistent in the choice of repository curlew:/root# pkg upgrade -f exim-sa-exim mod_php5 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. Updating poudriere repository catalogue... poudriere repository is up-to-date. Updating FreeBSD_new_xorg repository catalogue... FreeBSD_new_xorg repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) The following 2 packages will be affected (of 0 checked): Installed packages to be REINSTALLED: exim-sa-exim-4.84+4.2_1 [FreeBSD] mod_php5-5.4.32,1 [poudriere] The output from "pkg -vv" lists repositories in the following order: FreeBSD, poudriere, FreeBSD_new_xorg Is there any way I can ensure that pkg upgrade will use the "right" repository for each package or will I need to manually force an upgrade for just my modified packages first with the -r option before doing a bulk upgrade? -- Mike Clarke