From owner-freebsd-stable@FreeBSD.ORG Wed Nov 20 13:53:10 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88A78259 for ; Wed, 20 Nov 2013 13:53:10 +0000 (UTC) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2CCF12C1B for ; Wed, 20 Nov 2013 13:53:09 +0000 (UTC) Received: from hugo10.ka.punkt.de ([217.29.45.10]) by gate1.intern.punkt.de with ESMTP id rAKDr7f2050895; Wed, 20 Nov 2013 14:53:07 +0100 (CET) Received: from hausen-mbp.intern.punkt.de (hausen-mbp.intern.punkt.de [217.29.45.124] (may be forged)) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id rAKDr7SO077967; Wed, 20 Nov 2013 14:53:07 +0100 (CET) (envelope-from hausen@punkt.de) Content-Type: multipart/signed; boundary="Apple-Mail=_EFEE9081-EC65-4285-8D4D-5F8BFC33D22B"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: 10.0 BETA3 - nanobsd.sh does not use pkg From: "Patrick M. Hausen" In-Reply-To: Date: Wed, 20 Nov 2013 14:53:06 +0100 Message-Id: <4D1434BD-F4B2-4572-B3FD-E5030FFB2FB3@punkt.de> References: <834900CF-EEF2-4AA7-8BAC-CBAFCE7007E8@punkt.de> To: Zenny X-Mailer: Apple Mail (2.1822) Cc: "freebsd-stable@freebsd.org List" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 13:53:10 -0000 --Apple-Mail=_EFEE9081-EC65-4285-8D4D-5F8BFC33D22B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi, all, Am 20.11.2013 um 09:09 schrieb Zenny : > +1 I had the same experience. >=20 > On 11/20/13, Patrick M. Hausen wrote: >> Hi, all, >>=20 >> I just wanted to report that. I do not yet have a patch to suggest. >> nanobsd.sh cust_pkg() still tries to call pkg_add and fails when >> adding packages to the NANO_WORLD_DIR. tbz vs. txz =85 OK, here=92s a quick hack to just make it work somehow. I have to build = an image at the moment ;-) Any takers for tidying up? I=92m using the =84-c=93 option and pkg from = the buidling system instead of chroot into the NANO_WORLD_DIR first. Looks like that might = simplify things even more than I just did. Kind regards Patrick =97=97=97=97=97=97=97=97=97=97=97=97=97=97=97 root@freebsd10:/home/nanobsd/build/vagrant # cat pkgng.nano cust_pkgng () ( # If the package directory doesn't exist, we're done. if [ ! -d ${NANO_PACKAGE_DIR} ]; then echo "DONE 0 packages" return 0 fi # Copy packages into chroot mkdir -p ${NANO_WORLDDIR}/Pkg ( cd ${NANO_PACKAGE_DIR} find ${NANO_PACKAGE_LIST} -print | cpio -Ldumpv ${NANO_WORLDDIR}/Pkg ) # Count & report how many we have to install todo=3D`ls ${NANO_WORLDDIR}/Pkg | wc -l` echo "=3D=3D=3D TODO: $todo" ls ${NANO_WORLDDIR}/Pkg echo "=3D=3D=3D" while true do # Record how many we have now have=3D`pkg -c ${NANO_WORLDDIR} info | wc -l` # Attempt to install more packages # ...but no more than one at a time - experienced sqlite = errors (cd ${NANO_WORLDDIR} && ls Pkg/*txz) | xargs -n 1 pkg -c = ${NANO_WORLDDIR} add || true # See what that got us now=3D`pkg -c ${NANO_WORLDDIR} info | wc -l` echo "=3D=3D=3D NOW $now" pkg -c ${NANO_WORLDDIR} info echo "=3D=3D=3D" if [ $now -eq $todo ] ; then echo "DONE $now packages" break elif [ $now -eq $have ] ; then echo "FAILED: Nothing happened on this pass" exit 2 fi done rm -rf ${NANO_WORLDDIR}/Pkg ) =97=97=97=97=97=97=97=97=97=97=97=97=97=97=97 --=20 punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J=FCrgen Egeling AG Mannheim 108285 --Apple-Mail=_EFEE9081-EC65-4285-8D4D-5F8BFC33D22B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJSjL7DAAoJEJBvLuLt2olcOhAH/13sEKnvwuMMPiSDSp4zbo/Y 7WIjHYyVrSq5HCHsa0WvGMu8/lOnHMAuC2FNOfYI9Tv7oFkt7kqYcmovB+cdRm0k 1RnxUcWaeMktpjfdSvYUV+P3P65ZGulunoA3Bf584gfJfjUiVMbZ7oObkMa+IY5u Rx5ILsaYcbiFAg7ulXgP5+tUux9lVxiZxxTEDswJauMGiNPM17dz9+s4KQv0uOXJ xHhV7HIuoUq/Q0acNVCqCG+cUu766i8urOKAeyqdlpIsEo7Mk2h4Nw888kR9ZRiS HgwZWtxNaxHk+n95yQ33ccqFJ8u4HAL00EAJjNYRUNhtjwBnTzhMea/bSQhT2qY= =yXiU -----END PGP SIGNATURE----- --Apple-Mail=_EFEE9081-EC65-4285-8D4D-5F8BFC33D22B--