ports/173858: sysutils/bsdadminscripts installs pkg_libchk that doesn't play nicely with PKGNG
Volodymyr Kostyrko
c.kworr at gmail.com
Fri Nov 23 09:40:01 UTC 2012
>Number: 173858
>Category: ports
>Synopsis: sysutils/bsdadminscripts installs pkg_libchk that doesn't play nicely with PKGNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 23 09:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Volodymyr Kostyrko
>Release: RELENG_9
>Organization:
none
>Environment:
FreeBSD ar1l0u 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #10 r243405M: Thu Nov 22 18:59:06 EET 2012 arcade at ar1l0u:/usr/obj/usr/src/sys/MINIMAL amd64
>Description:
>How-To-Repeat:
>Fix:
Proposed patch make pkg_libchk switch to pkg if one is found. I haven't tested this on non-pkgng setup though.
Patch attached with submission follows:
--- pkg_libchk 2012-11-23 10:56:12.399813162 +0200
+++ /usr/local/sbin/pkg_libchk 2012-11-23 11:23:03.711812062 +0200
@@ -406,6 +406,12 @@
# Get the packages to work on.
test -z "$packages" && packages="-a"
+if [ -x /usr/sbin/pkg ]; then
+ alias pkg_info='pkg info'
+ _QUITE_LIST_FILES='-ql'
+else
+ _QUITE_LIST_FILES='-qL'
+fi
packages="$(pkg_info -E $packages)"
test -z "$recursive" -a -z "$Recursive" || packages="$packages
$(pkg_info -q $recursive $Recursive "$packages" 2> /dev/null | \
@@ -433,7 +439,7 @@
# Remember freeing the semaphore.
trap 'semaphoreFree jobs' EXIT
- files="$(pkg_info -qL "$package")"
+ files="$(pkg_info $_QUITE_LIST_FILES "$package")"
# Get the programs libraries in case it doesn't use the
# operating system to find its libraries.
libraries="$(echo "$files" | grep -E '\.so[\.0-9]*$')"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list