From nobody@FreeBSD.org  Fri Nov 23 09:31:53 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 0CF93202
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Nov 2012 09:31:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E32818FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Nov 2012 09:31:52 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAN9Vq5A018359
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Nov 2012 09:31:52 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qAN9Vq44018356;
	Fri, 23 Nov 2012 09:31:52 GMT
	(envelope-from nobody)
Message-Id: <201211230931.qAN9Vq44018356@red.freebsd.org>
Date: Fri, 23 Nov 2012 09:31:52 GMT
From: Volodymyr Kostyrko <c.kworr@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysutils/bsdadminscripts installs pkg_libchk that doesn't play nicely with PKGNG
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: kamikaze@bsdforen.de

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 23 09:40:00 UTC 2012
>Closed-Date:    Fri Oct 11 23:06:25 UTC 2013
>Last-Modified:  Fri Oct 11 23:06:25 UTC 2013
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Fri Nov 23 09:40:36 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173858 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: kamikaze@bsdforen.de
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/173858: sysutils/bsdadminscripts installs pkg_libchk that doesn't play nicely with PKGNG
Date: Fri, 23 Nov 2012 09:40:35 UT

 Maintainer of sysutils/bsdadminscripts,
 
 Please note that PR ports/173858 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173858
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To: bug-followup@FreeBSD.org, c.kworr@gmail.com
Cc:  
Subject: Re: ports/173858: sysutils/bsdadminscripts installs pkg_libchk that
 doesn&#39;t play nicely with PKGNG
Date: Mon, 25 Mar 2013 14:30:21 +0300

 Hi,
 
 fixed on r308906, look at pr=174387
 
 -- 
 wbr, tiger
State-Changed-From-To: feedback->closed 
State-Changed-By: ak 
State-Changed-When: Fri Oct 11 23:06:23 UTC 2013 
State-Changed-Why:  
Fixed in ports/174387. Thanks for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173858 
>Unformatted:
