From owner-freebsd-bugs@freebsd.org Sun Aug 12 13:24:48 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACFA610701E8 for ; Sun, 12 Aug 2018 13:24:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 39235880D8 for ; Sun, 12 Aug 2018 13:24:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id EE69D10701E7; Sun, 12 Aug 2018 13:24:47 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA8F210701E6 for ; Sun, 12 Aug 2018 13:24:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4735E880D7 for ; Sun, 12 Aug 2018 13:24:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A2E701ECEC for ; Sun, 12 Aug 2018 13:24:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7CDOku6057561 for ; Sun, 12 Aug 2018 13:24:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7CDOkSP057560 for bugs@FreeBSD.org; Sun, 12 Aug 2018 13:24:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230560] NanoBSD's default value for NANO_PACKAGE_LIST doesn't work as intended and prevents packages installation Date: Sun, 12 Aug 2018 13:24:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: f.toscan@hotmail.it X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 13:24:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230560 Bug ID: 230560 Summary: NanoBSD's default value for NANO_PACKAGE_LIST doesn't work as intended and prevents packages installation Product: Base System Version: 11.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: f.toscan@hotmail.it Created attachment 196125 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D196125&action= =3Dedit Patch NanoBSD in 11.2-RELEASE (and 11.1 as well) flavors a nice facility, cust_pk= gng function, contained in defaults.sh . defaults.sh also lists nanobsd.sh defaults. NANO_PACKAGE_LIST is used by cust_pkgng to get the list of packages to install and is set by default to = "*". This setting prevents packages installation beside pkg-*, as the variable doesn't expand as intended and the function aborts: + cust_pkgng + mkdir -p /usr/obj/nanobsd.NET4501/_.w/usr/local/etc + local 'PKG_CONF=3D/usr/obj/nanobsd.NET4501/_.w/usr/local/etc/pkg.conf' + local 'PKGCMD=3Denv ASSUME_ALWAYS_YES=3DYES PKG_DBDIR=3D/var/db/pkg SIGNATURE_TYPE=3Dnone /usr/sbin/pkg' + touch /usr/obj/nanobsd.NET4501/_.w/usr/local/etc/pkg.conf + grep -Eiq '^PKG_DBDIR:.*' /usr/obj/nanobsd.NET4501/_.w/usr/local/etc/pkg.= conf + echo 'PKG_DBDIR: "/var/db/pkg"' + [ ! -d /usr/src/tools/tools/nanobsd/Pkg ] + find -s /usr/src/tools/tools/nanobsd/Pkg -iname 'pkg-*' + basename /usr/src/tools/tools/nanobsd/Pkg/pkg-1.10.5_1.txz + _NANO_PKG_PACKAGE=3Dpkg-1.10.5_1.txz + [ -z pkg-1.10.5_1.txz -o ! -f /usr/src/tools/tools/nanobsd/Pkg/pkg-1.10.5_1.txz ] + NANO_PACKAGE_LIST=3D'pkg-1.10.5_1.txz *' + mkdir -p /usr/obj/nanobsd.NET4501/_.w/_.p + mount -t nullfs -o noatime -o ro /usr/src/tools/tools/nanobsd/Pkg /usr/obj/nanobsd.NET4501/_.w/_.p + trap 'umount /usr/obj/nanobsd.NET4501/_.w/_.p ; rm -rf /usr/obj/nanobsd.NET4501/_.w/_.p' 1 2 15 EXIT + echo 'pkg-1.10.5_1.txz *' + awk '{ print NF }' + todo=3D2 + echo '=3D=3D=3D TODO: 2' =3D=3D=3D TODO: 2 + echo 'pkg-1.10.5_1.txz *' pkg-1.10.5_1.txz * + echo '=3D=3D=3D' =3D=3D=3D + CR 'env ASSUME_ALWAYS_YES=3DYES PKG_DBDIR=3D/var/db/pkg SIGNATURE_TYPE=3D= none /usr/sbin/pkg add /_.p/pkg-1.10.5_1.txz' + chroot /usr/obj/nanobsd.NET4501/_.w /bin/sh -exc 'env ASSUME_ALWAYS_YES= =3DYES PKG_DBDIR=3D/var/db/pkg SIGNATURE_TYPE=3Dnone /usr/sbin/pkg add /_.p/pkg-1.10.5_1.txz' + env 'ASSUME_ALWAYS_YES=3DYES' 'PKG_DBDIR=3D/var/db/pkg' 'SIGNATURE_TYPE= =3Dnone' /usr/sbin/pkg add /_.p/pkg-1.10.5_1.txz Installing pkg-1.10.5_1... Extracting pkg-1.10.5_1: .......... done + CR 'env ASSUME_ALWAYS_YES=3DYES PKG_DBDIR=3D/var/db/pkg SIGNATURE_TYPE=3D= none /usr/sbin/pkg add /_.p/Files' + chroot /usr/obj/nanobsd.NET4501/_.w /bin/sh -exc 'env ASSUME_ALWAYS_YES= =3DYES PKG_DBDIR=3D/var/db/pkg SIGNATURE_TYPE=3Dnone /usr/sbin/pkg add /_.p/Files' + env 'ASSUME_ALWAYS_YES=3DYES' 'PKG_DBDIR=3D/var/db/pkg' 'SIGNATURE_TYPE= =3Dnone' /usr/sbin/pkg add /_.p/Files pkg: /_.p/Files: No such file or directory pkg: Was 'pkg install /_.p/Files' meant? Failed to install the following 1 package(s): /_.p/Files + umount /usr/obj/nanobsd.NET4501/_.w/_.p + rm -rf /usr/obj/nanobsd.NET4501/_.w/_.p + echo 'NANO RM -rf /usr/obj/nanobsd.NET4501/_.w/_.p' NANO RM -rf /usr/obj/nanobsd.NET4501/_.w/_.p + uname -r + command rm -x -rf /usr/obj/nanobsd.NET4501/_.w/_.p Setting NANO_PACKAGE_LIST to "*.txz" fixes the problem: one can override the setting in nanobsd's configuration file, but I, for one, think that fixing defaults.sh might be useful. Patch attached. --=20 You are receiving this mail because: You are the assignee for the bug.=