From owner-freebsd-ports@FreeBSD.ORG Thu Mar 22 22:25:59 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C5D216A404 for ; Thu, 22 Mar 2007 22:25:59 +0000 (UTC) (envelope-from danny@ricin.com) Received: from smtpq2.tilbu1.nb.home.nl (smtpq2.tilbu1.nb.home.nl [213.51.146.201]) by mx1.freebsd.org (Postfix) with ESMTP id DC5C813C4BD for ; Thu, 22 Mar 2007 22:25:58 +0000 (UTC) (envelope-from danny@ricin.com) Received: from [213.51.146.188] (port=52527 helo=smtp3.tilbu1.nb.home.nl) by smtpq2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1HUVjJ-0001k3-Qw for freebsd-ports@freebsd.org; Thu, 22 Mar 2007 23:25:57 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.214.242]:54414 helo=desktop.homenet) by smtp3.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1HUVjG-0006pa-Ip for freebsd-ports@freebsd.org; Thu, 22 Mar 2007 23:25:54 +0100 From: Danny Pansters To: freebsd-ports@freebsd.org Date: Thu, 22 Mar 2007 23:25:42 +0100 User-Agent: KMail/1.9.6 References: <1174330341.26866.32.camel@shumai.marcuscom.com> <46001864.8050005@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703222325.43113.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Re: Problems running pkgdb -fF 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, 22 Mar 2007 22:25:59 -0000 There should be single (or escaped double) quotes inside the "" for the sed argument. Seems to be caused by the combination of [ ] with \t. Observe: desktop# cat /COPYRIGHT | sed s/[ \t]// sed: 1: "s/[": unbalanced brackets ([]) But cat /COPYRIGHT | sed 's/[ \t]//' is OK. So "s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|" should be replaced by "'s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|'" Not tested as I'm not in sync with latest portstree and I don't know Ruby. Dan On Tuesday 20 March 2007 19:06:06 Andrew Pantyukhin wrote: > On 3/20/07, Sergey Matveychuk wrote: > > Andrew Pantyukhin wrote: > > > On 3/19/07, Joe Marcus Clarke wrote: > > >> Running pkgdb -Ff today gives me the following error: > > > > > > Just a "me too" here, and this problem appears during > > > portupgrade runs, too. > > > > Try the patch please. I could not find a box where I can reproduce the > > error, so it's not tested. Just a obvious quick fix. > > > > Index: pkgtools.rb > > =================================================================== > > RCS file: /cvsroot/portupgrade/pkgtools/lib/pkgtools.rb,v > > retrieving revision 1.16.2.4 > > diff -u -r1.16.2.4 pkgtools.rb > > --- pkgtools.rb 27 Feb 2007 11:34:59 -0000 1.16.2.4 > > +++ pkgtools.rb 20 Mar 2007 17:18:35 -0000 > > @@ -790,8 +790,7 @@ > > contents_file = $pkgdb.pkg_contents(pkgname) > > > > if grep_q_file(/^@comment[ \t]+ORIGIN:/, contents_file) > > - command = shelljoin('sed', > > - "s|^\\(@comment[ \t][ > > \t]*ORIGIN:\\).*$|\\1#{origin}|") > > + command = "sed s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|" > > else > > command = "(cat; echo '@comment ORIGIN:#{origin}')" > > end > > Stale origin: 'x11-wm/fluxbox-devel': perhaps moved or obsoleted. > -> The port 'x11-wm/fluxbox-devel' was moved to 'x11-wm/fluxbox' on > 2007-03-19 because: > "Merged into x11-wm/fluxbox" > 1x11-wm/fluxbox: not found > ^(@comment[: not found > sed: 1: "s": substitute pattern can not be delimited by newline or > backslash Fixed. (-> x11-wm/fluxbox) > > At least the error is shorter now. I can make my > /var/db/pkg available if you want. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"