Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 09:31:52 GMT
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173858: sysutils/bsdadminscripts installs pkg_libchk that doesn't play nicely with PKGNG
Message-ID:  <201211230931.qAN9Vq44018356@red.freebsd.org>
Resent-Message-ID: <201211230940.qAN9e1Y9056130@freefall.freebsd.org>

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

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



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