Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2009 19:48:56 GMT
From:      Randy Belk <randy.belk@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/133979: pkg_create -n gives an error
Message-ID:  <200904241948.n3OJmuPk051615@www.freebsd.org>
Resent-Message-ID: <200904241950.n3OJo3oI059233@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904241948.n3OJmuPk051615>