From owner-freebsd-stable@FreeBSD.ORG Sun Apr 5 01:20:20 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 17F9ABC5; Sun, 5 Apr 2015 01:20:20 +0000 (UTC) Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA1ABDD3; Sun, 5 Apr 2015 01:20:19 +0000 (UTC) Received: by obvd1 with SMTP id d1so3303066obv.0; Sat, 04 Apr 2015 18:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gpNG+WMj4i/y3nxVGkcZWbVMe1HyFrJqdMCs9f7wtbY=; b=bM5Y8vkzvjZSocludWY1yG8WE08jxPZSeHQXX7cwp7nTxwRfwclEOPxJMk37iLFZd9 HcByHxID/ChqeKxkQXVNz8O76+9YCINbgndZQdAyDfuSYHT8Br/zwf4xD3w9MZTgw9A+ FkxnwH7Wdcd1rr03vzoT86VDQM7saVqbmdWx6dC8PH7h47qAuoWDdqiBeEy23PFCvZ7L HGBOAOsb9+r8X9qRC4HHEd55ClLaFXwZwm18ZXnDjCaefQpGScjMvMEQW6IlYV5MK0Oq eigT6vNJcnTEO0Ecg8cTjxGPjSz6twC1qWWOTwoM/7F01I79vV+H7Fyoy2gO0HS0IzzQ sd/g== MIME-Version: 1.0 X-Received: by 10.60.147.165 with SMTP id tl5mr2617564oeb.81.1428196819158; Sat, 04 Apr 2015 18:20:19 -0700 (PDT) Received: by 10.202.177.136 with HTTP; Sat, 4 Apr 2015 18:20:19 -0700 (PDT) In-Reply-To: References: <20150402183939.GC30115@ivaldir.etoilebsd.net> Date: Sun, 5 Apr 2015 03:20:19 +0200 Message-ID: Subject: Re: pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1 From: Zenny To: Brandon Allbery Content-Type: text/plain; charset=UTF-8 Cc: Baptiste Daroussin , "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2015 01:20:20 -0000 On 4/5/15, Zenny wrote: > Thanks Brandon. > > Yes, I did notice a typo. Missed a 'D' in NANO_WORLDDIR: > pkg -c ${NANO_WORLDIR} install -fy ${PACKAGELIST} The above asked to do a 'pkg update', so accordingly, I added to custom_packages the following: cust_NANOBSD_packages() { env SSL_NO_VERIFY_HOSTNAME="true" \ env SSL_NO_VERIFY_PPER="true" \ pkg -c ${NANO_WORLDDIR} -f update env SSL_NO_VERIFY_HOSTNAME="true" \ env SSL_NO_VERIFY_PPER="true" \ pkg -c ${NANO_WORLDDIR} install -y ${PACKAGELIST} env SSL_NO_VERIFY_HOSTNAME="true" \ SSL_NO_VERIFY_PEER="true" \ pkg -c ${NANO_WORLDDIR} clean -a -y rm -f ${NANO_WORLDDIR}/var/db/pkg/repo-*.sqlite } But it fails with: + env SSL_NO_VERIFY_HOSTNAME=true env SSL_NO_VERIFY_PPER=true pkg -c /usr/obj/nanobsd.NANOBSD-PFS//_.w -f update pkg: illegal option -- f Updating FreeBSD repository catalogue... pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/meta.txz: No address record pkg: repository FreeBSD has no meta file, using default settings pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/packagesite.txz: No address record pkg: Unable to update repository FreeBSD hmmmm.... > > /z > > > On 4/5/15, Brandon Allbery wrote: >> On Sat, Apr 4, 2015 at 8:26 PM, Zenny wrote: >> >>> + cust_NANOBSD_packages >>> + env SSL_NO_VERIFY_HOSTNAME=true env SSL_NO_VERIFY_PPER=true pkg -c >>> install -fy nano >>> pkg: illegal option -- f >>> pkg: illegal option -- y >>> pkg: chroot failed! >>> >>> When I install with -y flag on the host node, it works fine, but >>> causing problem only in the chrooted environment. Where did I get >>> wrong? Thanks in advance. >>> >> >> Notice that ${NANO_WORLDDIR} didn't substitute anything; it used >> "install" >> as the chroot (which is why it failed) and -fy as global options instead >> of >> options to the "install" command it didn't see because -c ate it. >> >> -- >> brandon s allbery kf8nh sine nomine >> associates >> allbery.b@gmail.com >> ballbery@sinenomine.net >> unix, openafs, kerberos, infrastructure, xmonad >> http://sinenomine.net >> >