From owner-freebsd-ports@FreeBSD.ORG Fri Mar 25 14:38:31 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F1981065677; Fri, 25 Mar 2011 14:38:31 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 64D708FC15; Fri, 25 Mar 2011 14:38:30 +0000 (UTC) Received: from outgoing.leidinger.net (p5B1553A9.dip.t-dialin.net [91.21.83.169]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 95AFF844017; Fri, 25 Mar 2011 15:38:23 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 933CD1485; Fri, 25 Mar 2011 15:38:20 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p2PEcF0U036113; Fri, 25 Mar 2011 15:38:15 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 25 Mar 2011 15:38:14 +0100 Message-ID: <20110325153814.20287h1594npcu80@webmail.leidinger.net> Date: Fri, 25 Mar 2011 15:38:14 +0100 From: Alexander Leidinger To: Baptiste Daroussin References: <20110325101111.GA36840@azathoth.lan> <20110325150653.21132ej6abxmjpgk@webmail.leidinger.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 95AFF844017.AFCC4 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=0.077, required 6, autolearn=disabled, TW_KG 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1301668706.98996@8dLvdr1UCaeNUw34HdkXtg X-EBL-Spam-Status: No Cc: ports@freebsd.org, hackers@freebsd.org, current@freebsd.org Subject: Re: [ECFT] pkgng 0.1-alpha1: a replacement for pkg_install 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: Fri, 25 Mar 2011 14:38:31 -0000 Quoting Baptiste Daroussin (from Fri, 25 Mar 2011 15:14:52 +0100): > 2011/3/25 Alexander Leidinger : >> Quoting Baptiste Daroussin (from Fri, 25 Mar 2011 >> 11:11:11 +0100): >> >>> pkgng is a binary package manager written from scratch for FreeBSD. >> >> I didn't had a look at it, just some comments about some parts you >> explained. >> >>> features supported are or will be : >>> - a special architecture "all" allows to specify when a package can be >>> used >>> on every architecture. (not done yet) >> >> What if a package is able to install on a subset, e.g. the linuxulator ports >> are for amd64 and i386? >> > > No clue for that at the moment but we are open to suggestions. The suggestion is easy, allow a way to specify a set of valid architectures. >> What about DB corruption/loss? Do you keep the /var/db/pkg//xxx >> files even with pkgng and only use the DB as a way to speed up some work (so >> the DB corruption just requires to run pkg2ng), or are you lost of the DB is >> lost? >> > > Nothing is done about DB corruption/loss, I am not sure we need to > do something. > Maybe. I would say "for sure". Info: In Solaris 10 sqlite is used for the service managenemt framework (SMF). It is possible that the DB is corrupt in some bad situations. In this case you have to rebuild the DB (script provided, been there, had to use it). > Currently a filesystem corruption/loss on /var/db/pkg would do the same. Put a corruption of /var/db/pkg/xyz-1/+REQUIRED_BY would only affect a small part, and this part could be even recovered from (pkgdb from portupgrade is able to do it). > but it is sqlite so we can perhaps provide a way to get compressed > dump so user can periodically backup their database. It needs to be automated. Maybe periodic daily... but maybe this is not often enough after a day of a lot of changes (think about it this way: do you want to lose a day of changes?). The current FS based DB is very robust, partly because there is redundant data, pertly because losing a file just means that the very limited subset of information is lost (and a reinstall of one port will fix it). Bye, Alexander. -- Programming is an unnatural act. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137