bin/133979: pkg_create -n gives an error

Randy Belk randy.belk at gmail.com
Fri Apr 24 19:50:04 UTC 2009


>Number:         133979
>Category:       bin
>Synopsis:       pkg_create -n gives an error
>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:   Fri Apr 24 19:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Randy Belk
>Release:        7.1-RELEASE-p4
>Organization:
N/A
>Environment:
FreeBSD umc132050.umsmed.edu 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 12:35:36 UTC 2009     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Using the -n (noclobber option) pkg_create gives an error on 7.1-RELEASE-p4. After looking at the source of pkg_create, I found that the option 'n' is not coded as an option in the source. The noclobber mode '-n' is mentioned in the manual page source and it is also displayed as an option in the pkg_create usage help.
>How-To-Repeat:
chroot# mkdir /usr/ports/packages/All
chroot# cd /usr/ports/packages/All
chroot# pkg_info | awk '{print $1}' | xargs -n1 pkg_create -Rvnb
>Fix:
Do not use the -n option

chroot# mkdir /usr/ports/packages/All
chroot# cd /usr/ports/packages/All
chroot# pkg_info | awk '{print $1}' | xargs -n1 pkg_create -Rvb

It will rewrite some dependencies multiple times.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list