From owner-freebsd-ports@FreeBSD.ORG Thu Aug 19 17:16:13 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 304C110656A4 for ; Thu, 19 Aug 2010 17:16:13 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id D27428FC15 for ; Thu, 19 Aug 2010 17:16:12 +0000 (UTC) Received: by qyk8 with SMTP id 8so1636970qyk.13 for ; Thu, 19 Aug 2010 10:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=pjo6Euk4mQC3BkHb6TyEMjcS43GSIpef1krQ3MbyKLI=; b=Pq9HFEKlXR2z0jUtsszoeEAuGdw071sBMEHAojiotR/FCBamcNaaniqSMlIntNTnpz CQmqdJ67YtzS1+kCaEBeNVYIE97mkC55MZMEngSeKAcsH4EBITZcGdGwza53wrlE8hFi nt80k9RkMADl1d+tjGTKu6L3lYQ/nHvusk47c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=MR6DhVnlZJaH+h/Q2cWzptKFV85v7E+bfE1rclIkY4NnoiLxSm3P4mBtz4IWu2tS8y H8XxX6KZRhhqpgs125i/gcuuJNAGr/6IhPurie6m8LoomJ8ybZm1EI85IUYSWZb7ygCT af4Wf2VywR0gsSl0Abl30p4TBdjYI0i+UGq3o= MIME-Version: 1.0 Received: by 10.224.19.200 with SMTP id c8mr64373qab.70.1282236629768; Thu, 19 Aug 2010 09:50:29 -0700 (PDT) Sender: ivoras@gmail.com Received: by 10.229.236.132 with HTTP; Thu, 19 Aug 2010 09:50:29 -0700 (PDT) In-Reply-To: References: <20100819143830.GJ35140@azathoth.lan> Date: Thu, 19 Aug 2010 18:50:29 +0200 X-Google-Sender-Auth: dkFK5OoxNafBPRISJiYfMcFHzu0 Message-ID: From: Ivan Voras To: Julien Laffaye Content-Type: text/plain; charset=UTF-8 Cc: bapt@freebsd.org, Florent Thoumie , David Forsythe , Garrett Cooper , Tim Kientzle , freebsd-ports@freebsd.org Subject: Re: what next for the pkg_install rewrite X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2010 17:16:13 -0000 On 19/08/2010, Julien Laffaye wrote: > There are a lot of areas of potential discussions: packing list format, > local database format, ... > In my opinion, trying to be 100% compatible with the actual tools will slow > down the project. I am thinking, for example, about the slave/master modes > which made sense when we used a temporary directory, but less if we want to > extract the files to their final destination via libarchive. > > Then, this specification will need to be approved by portmgr@ so the actual > coding can start! Like many people in this discussion I have done some work on pkg_* and for what it's worth, here's what I would like changed: - Fully specify and separate package name from its version - metadata should not record "apache-2.2.13" but "apache", "2.2.13" to better support upgrading and dependancies. - Debian-like dependancies - the "suggests" variety, as well as "ranged-dependancies" - package X depends on Y versions W through Z. - A wrapper for all pkg_ tools to use, implemented with libarchive. This wrapper would allow preparation of the whole archive layout in-memory, together with simulating common file system operations like chmod, chown, rmdir, mkdir, rename, unlink, etc. and would as a last step offer to serialize this virtual file system to an archive. - Policy to forbid the lazy-maintainer dances with package names, such as package names depending on config flags used, etc. - this probably needs more thinking through. Essentially, I want to avoid things like what happened to the apr port - names like "apr-ipv6-devrandom-gdbm-db42-1.4.2.9.3.1_1" Of course, this would better be if documented somewhere semi-permanent - in our wiki for example.