misc/186723: nanobsd.sh still uses pkg_add
Marc Peters
marc at mpeters.org
Thu Feb 13 13:30:03 UTC 2014
>Number: 186723
>Category: misc
>Synopsis: nanobsd.sh still uses pkg_add
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 13 13:30:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Marc Peters
>Release: FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
FreeBSD host.name 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The nanobsd script still relies on the old pkg tools, which are nonexistent in 10.0.
/usr/src/tools/tools/nanobsd/nsdnobsd.sh:
709 # Record how many we have now
710 have=`ls ${NANO_WORLDDIR}/var/db/pkg | wc -l`
711
712 # Attempt to install more packages
713 # ...but no more than 200 at a time due to pkg_add's internal
714 # limitations.
715 chroot ${NANO_WORLDDIR} sh -c \
716 'ls Pkg/*tbz | xargs -n 200 pkg_add -F' || true
717
718 # See what that got us
719 now=`ls ${NANO_WORLDDIR}/var/db/pkg | wc -l`
720 echo "=== NOW $now"
721 ls ${NANO_WORLDDIR}/var/db/pkg
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list