From owner-freebsd-ports@FreeBSD.ORG Mon Aug 27 21:43:56 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F2011065675 for ; Mon, 27 Aug 2012 21:43:56 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 8271E8FC19 for ; Mon, 27 Aug 2012 21:43:55 +0000 (UTC) Received: (qmail invoked by alias); 27 Aug 2012 21:43:54 -0000 Received: from p578be941.dip0.t-ipconnect.de (EHLO [192.168.0.100]) [87.139.233.65] by mail.gmx.net (mp002) with SMTP; 27 Aug 2012 23:43:54 +0200 X-Authenticated: #1956535 X-Provags-ID: V01U2FsdGVkX1/92y5PQcT9r5LrN+vO+KG8dAAleYuJzjjvyTSb7f iuAN+xdJBGBiyR Message-ID: <503BEA1A.40501@gmx.de> Date: Mon, 27 Aug 2012 23:43:54 +0200 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Baptiste Daroussin References: <503BB682.5070108@freebsd.org> <503BD703.2020001@gmx.de> <20120827212331.GD64447@ithaqua.etoilebsd.net> In-Reply-To: <20120827212331.GD64447@ithaqua.etoilebsd.net> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: FreeBSD Ports Subject: Re: PKG_NG: pkg deinstall fails with "argument list too long" 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: Mon, 27 Aug 2012 21:43:56 -0000 On 2012-08-27 23:23, Baptiste Daroussin wrote: > On Mon, Aug 27, 2012 at 10:22:27PM +0200, olli hauer wrote: >> On 2012-08-27 20:03, Stefan Esser wrote: >>> PKG_NG seems to have introduced a limit on the size of ports that can be >>> deinstalled: >>> >>> # cd /usr/ports/math/lapack >>> # make deinstall >>> ===> Deinstalling for math/lapack >>> ===> Deinstalling lapack-3.4.0_2 >>> The following packages will be deinstalled: >>> >>> lapack-3.4.0_2 >>> >>> The deinstallation will free 28 MB >>> Deinstalling lapack-3.4.0_2...lapack-3.4.0_2 is required by: >>> qrupdate-1.1.1, deleting anyway >>> pkg: Cannot run script(DEINSTALL): Argument list too long >>> *** [deinstall] Error code 3 >>> >>> This is on an up-to-date -CURRENT with freshly fetched ports and >>> pkg-1.0.r6_1 and WITH_PKGNG=yes in /etc/make.conf. >>> >>> Regards, STefan >> >> One limitation I found was if the port has a really long pkg-plist >> the `pkg repo' command times are going to the roof. >> >> For example `pkg repo' a folder with metasploit.txz only takes >> in a ramdisk and everything else on SSD ~80+ seconds. >> Extracting the packages takes ~3s. in RAM or on SSD (pkgng issue #322). >> >> _______________________________________________ >> 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" > > Can you try changing: > https://github.com/pkgng/pkgng/blob/master/libpkg/pkg_manifest.c#L395 to: > pkg_addfile(pkg, sbuf_get(tmp), pkg_sum, false); > > ? > will do, could you please provide a diff fetch 'https://github.com/pkgng/pkgng/blob/master/libpkg/pkg_manifest.c#L395' gives only glibber and I don't want to enable javascrit to grab a simple patch ... -- Regards, olli