From owner-freebsd-pkg@FreeBSD.ORG Mon Nov 24 15:00:02 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E918A80; Mon, 24 Nov 2014 15:00:02 +0000 (UTC) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7A3DF88; Mon, 24 Nov 2014 15:00:01 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id tr6so1297005ieb.35 for ; Mon, 24 Nov 2014 07:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ANAgSyl0yBFRADxHzt/EIsk3iDqo4iK42T/SSug8c28=; b=OxnFy/22PiXUdvDIaQfniw9PgzfV0WcqaFgyRUL8YkwzkJADhd31wNiJWIHkzRO24M pglWAIi3LU2KT8hIKvmM2RkzwjcP5mwJHiupORSYyvqTryQs2628Q7Gdg1I7MHzoaPd7 i13CdNmcTTN8ntmef3BiWuK06CF1wIKKwLOGicOEr0BBnUyNYR9okebkgejecFxgL6vX mP4iAsMzqiNUtLNkgZu6NSpVWlWVpso/e8TA/Vl56EcxRyWMupiu5vvbl9nMoWelhrEJ 4V9DtPscdjQFelF4jI4W3OxW1WKA0sAZL0YEpLFb+XC3+cA0CpEQ94hb6HK8TQ4wLyDP YWEg== MIME-Version: 1.0 X-Received: by 10.50.114.97 with SMTP id jf1mr11687449igb.29.1416841201314; Mon, 24 Nov 2014 07:00:01 -0800 (PST) Sender: vrwmiller@gmail.com Received: by 10.64.165.73 with HTTP; Mon, 24 Nov 2014 07:00:01 -0800 (PST) In-Reply-To: <547342F0.5000601@freebsd.org> References: <547331B1.2020000@freebsd.org> <547342F0.5000601@freebsd.org> Date: Mon, 24 Nov 2014 10:00:01 -0500 X-Google-Sender-Auth: dZXb8pMRFC5RR5JDEt9U4Wp50Hs Message-ID: Subject: Re: Create empty package catalog (feature request) From: Rick Miller To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2014 15:00:02 -0000 On Mon, Nov 24, 2014 at 9:38 AM, Matthew Seaman wrote: > On 11/24/14 14:15, Rick Miller wrote: > > On Mon, Nov 24, 2014 at 8:25 AM, Matthew Seaman > wrote: > > > >> On 11/24/14 13:14, Rick Miller wrote: > >>> Is it feasible to add a feature/command line argument to `pkg` > permitting > >>> the creation of an empty package catalog? > >> > >> What's the use-case for that? > > > > > > In a nutshell... > > > > On the client-side, pkg(8) enforces uniqueness of packages within a > single > > repo introducing a scenario where multiple versions of the same package, > > while the server can and does include these in the repo catalog, is > > unsupported in a single repo. Consider, however, that a project has > > explicit dependancies on a previous version of a particular package. > `pkg > > install` consistently chooses the most recent version of a package where > > the catalog has multiple occurrences of it. > > > > A system consisting of consistent, yet limited quantity of package repos > > implementing an algorithm to select a repo where to distribute newly > > published packages was deployed. Target clients are pre-configured with > > this repo set permitting them to specify a particular version of a > > package. While working around the above limitation, it causes an error > on > > the client when encountering an empty repo citing: > > Have you tested pkg-devel with this scenario? There's a bug solved in > 1.4.x to do with pkg(8) not applying any sort of preference ordering to > repositories. This has not been tested. Thanks for the info. > pkg: http://hostname.domain.com/repo_mirror/bsd-qa-local-repo8/meta.txz: > > Not Found > > pkg: repository bsd-qa-local-repo8 has no meta file, using default > settings > > > > It's much more involved than this, however, and in the interest of > brevity, > > I attempted to describe it concisely. > > > > So what you'ld really like is to have multiple different versions of the > same package in the same repo, and have pkg(8) able to select the > appropriate version based on the explicit dependencies you state? > Essentially, yes. A colleague recently communicated with Bapt about this and we had considered working on it though it's unlikely we'll get to it for another few months thus the original question regarding generation of empty repo catalogs :) -- Take care Rick Miller