From owner-freebsd-ports@FreeBSD.ORG Fri Apr 11 16:22:09 2014 Return-Path: Delivered-To: freebsd-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 2E0CFCF5; Fri, 11 Apr 2014 16:22:09 +0000 (UTC) Received: from smtp1.multiplay.co.uk (smtp1.multiplay.co.uk [85.236.96.35]) by mx1.freebsd.org (Postfix) with ESMTP id E69C01FB9; Fri, 11 Apr 2014 16:22:08 +0000 (UTC) Received: by smtp1.multiplay.co.uk (Postfix, from userid 65534) id B15F920E7088C; Fri, 11 Apr 2014 16:22:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.multiplay.co.uk X-Spam-Level: ** X-Spam-Status: No, score=3.0 required=8.0 tests=AWL,BAYES_05,DOS_OE_TO_MX, FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,RDNS_DYNAMIC,STOX_REPLY_TYPE autolearn=no version=3.3.1 Received: from r2d2 (82-69-141-170.dsl.in-addr.zen.co.uk [82.69.141.170]) by smtp1.multiplay.co.uk (Postfix) with ESMTPS id 7F96020E70885; Fri, 11 Apr 2014 16:21:57 +0000 (UTC) Message-ID: <899AD4B2287A42ECBA65930F0204F1CF@multiplay.co.uk> From: "Steven Hartland" To: "Andriy Gapon" , References: <525F9F17.4020509@FreeBSD.org> Subject: Re: pkgng multi-repository support description Date: Fri, 11 Apr 2014 17:21:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 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: Fri, 11 Apr 2014 16:22:09 -0000 ----- Original Message ----- From: "Andriy Gapon" > Is there a document that describes how pkgng multi-repository support works? > I am trying to understand what pkgng does when different versions of the same > package are present in different repositories. > > Practically, I want to achieve the following. > One repository is designated as primary. If a package is present in the primary > repository, then its presence in other repositories is completely ignored. > > Alternatively, the following could also work for me. > A package remembers from what repository it was originally installed and all > future upgrades are taken from the same repository. > > What I want to avoid is a package flip-flopping between being installed from > different repositories depending on their update pace. This is useful e.g. when > I have my local repository for some packages that I want to build with special > options but I also want to install all other packages from some other repository > which is not under my control. So I fear that the other repository gets a newer > version of a package than what my repository has, then pkg upgrade would upgrade > the package and thus it won't have any customizations until my repository > catches up. > > Thank you very much. > > P.S. https://github.com/freebsd/pkg#multirepos seems to be outdated? Did you ever figure this one out? In our case we want to tell pkg to only use repro XYZ from the ones availble, for example without having to delete /etc/pkg/FreeBSD.conf. Regards Steve