From owner-freebsd-ports@FreeBSD.ORG Mon Aug 27 21:53:37 2012 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 5B531106564A for ; Mon, 27 Aug 2012 21:53:37 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2460A8FC0C; Mon, 27 Aug 2012 21:53:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7RLrbaE026053; Mon, 27 Aug 2012 21:53:37 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7RLranv026052; Mon, 27 Aug 2012 21:53:36 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Mon, 27 Aug 2012 23:53:34 +0200 From: Baptiste Daroussin To: olli hauer Message-ID: <20120827215334.GE64447@ithaqua.etoilebsd.net> References: <503BB682.5070108@freebsd.org> <503BD703.2020001@gmx.de> <20120827212331.GD64447@ithaqua.etoilebsd.net> <503BEA1A.40501@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gMR3gsNFwZpnI/Ts" Content-Disposition: inline In-Reply-To: <503BEA1A.40501@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) 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:53:37 -0000 --gMR3gsNFwZpnI/Ts Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 27, 2012 at 11:43:54PM +0200, olli hauer wrote: > 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 > >>> =3D=3D=3D> Deinstalling for math/lapack > >>> =3D=3D=3D> 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=3Dyes 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.or= g" > >=20 > > Can you try changing: > > https://github.com/pkgng/pkgng/blob/master/libpkg/pkg_manifest.c#L395 t= o: > > pkg_addfile(pkg, sbuf_get(tmp), pkg_sum, false); > >=20 > > ? > >=20 >=20 > will do, >=20 > could you please provide a diff >=20 > fetch 'https://github.com/pkgng/pkgng/blob/master/libpkg/pkg_manifest.c#L= 395' > gives only glibber and I don't want to enable javascrit to grab a simple = patch ... >=20 >=20 > -- > Regards, > olli sure: http://people.freebsd.org/~bapt/patch-no-test-duplicate-from-manifest just add it to you files/ directory regards, Bapt --gMR3gsNFwZpnI/Ts Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlA77F4ACgkQ8kTtMUmk6Ex7HQCdG/vBXc7W7SIM3yrI7/DvUdsk 4VYAoJnYg+bPbcanQXCKV0WoYPQn34Hm =Y3hv -----END PGP SIGNATURE----- --gMR3gsNFwZpnI/Ts--