From owner-freebsd-ports@FreeBSD.ORG Fri Feb 28 06:14:36 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3B0DD83 for ; Fri, 28 Feb 2014 06:14:36 +0000 (UTC) Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61B4F149C for ; Fri, 28 Feb 2014 06:14:36 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id d10so2419543eaj.28 for ; Thu, 27 Feb 2014 22:14:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=nG7SqCvlWWL7mS88ZPt7tifTUaJkSBSSYRYFdLgWKZM=; b=tDdtlmKq3hgDEl+kJAi/TRq2ulFKkR4gR2DnaxMHQmyKEHfu42JJFlNJBIdx+pA35z cJ4PdEXwayN4l/vTHfZHuRw3vtzhqRMld8Jf39uzuwM96NQrxJ0Pkqwr3vGYB+3X9NXS 0aHoAwTkOnAf+3mXRBHAmjcAggAVJm+bxugWraVwNMmGAEQnKpOf2L/iIpnSbmZU+Bm0 TtWSVUcA2yX6BNvKg4gQCRZG6djMe7ABtqZ8ddk+E/k2LjAWMldAndum1lDFGEdtUgda OurTGfXVw1RV2l4ucNsedoYAKooZCxS3SpDijH1r+MydPQUEURE84KHr8V4L7ZZI7hSR S7rg== X-Received: by 10.15.83.67 with SMTP id b43mr5415449eez.40.1393568074668; Thu, 27 Feb 2014 22:14:34 -0800 (PST) Received: from laptop.minsk.domain (m-s.agava.net. [195.222.84.203]) by mx.google.com with ESMTPSA id m1sm6367587een.7.2014.02.27.22.14.33 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 27 Feb 2014 22:14:34 -0800 (PST) Date: Fri, 28 Feb 2014 09:14:28 +0300 From: "Sergey V. Dyatko" To: freebsd-ports@freebsd.org Subject: Re: pkg_libchk is broken ? Message-ID: <20140228091428.5b61e6fb@laptop.minsk.domain> In-Reply-To: <20140227093218.0d6dd301@laptop.minsk.domain> References: <20140227092634.46295890@laptop.minsk.domain> <20140227093218.0d6dd301@laptop.minsk.domain> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: kamikaze@bsdforen.de, Kevin Oberman X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 06:14:37 -0000 В Thu, 27 Feb 2014 09:32:18 +0300 "Sergey V. Dyatko" пишет: > On Thu, 27 Feb 2014 09:26:34 +0300 > "Sergey V. Dyatko" wrote: > > > Hi, > > > > I use sysutils/bsdadminscripts for years, thanks Dominic. After > > switching to pkg[ng] I patch pkg_libchk for it ( pkg info with > > corresponding keys instead pkg_info, etc). After r308906 (IIRC) I > > revert local my patches. Today I spotted that pkg_libchk > > is broken, for example: > > > > tiger# pkg_libchk -q > > compat9x-amd64-9.2.902000.201310 > > diablo-jdk-1.6.0.07.02_20 > > festival-2.1 > > opera-12.16 > > > > tiger# pkg_libchk -n festival\* > > tiger# pkg_libchk -n festival-2.1 > > tiger# > > > seems '\' missing on line 411 > sorry, it was very old pkg_libchk copy from ~/bin/ so patch is completely wrong. I didn't test pkg_libchk with pkg_* tools but replacing packages="$(pkg info -q $packages)" with packages="$(pkg info -x $packages)" on line 411 solve my issue with pkgng: [tiger@tiger]~%/usr/local/sbin/pkg_libchk -n festival oper festival-2.1: /usr/local/libexec/audsp misses libaudiofile.so.0 festival-2.1: /usr/local/libexec/festival.naked misses libaudiofile.so.0 opera-12.16: /usr/local/lib/opera/liboperakde4.so misses libkdeui.so.7 festival-2.1: /usr/local/libexec/festival_client.naked misses libaudiofile.so.0 opera-12.16: /usr/local/lib/opera/liboperakde4.so misses libkio.so.7 opera-12.16: /usr/local/lib/opera/liboperakde4.so misses libkdecore.so.7 > --- pkg_libchk.orig 2014-02-27 09:31:31.204449447 +0300 > +++ pkg_libchk 2014-02-27 09:31:45.539441534 +0300 > @@ -407,7 +407,7 @@ > # Get the packages to work on. > test -z "$packages" && packages="-a" > packages="$(pkg info -E $packages)" > -test -z "$recursive" -a -z "$Recursive" || packages="$packages > +test -z "$recursive" -a -z "$Recursive" || packages="$packages \ > $(pkg info -q $recursive $Recursive "$packages" 2> /dev/null | \ > sed -E 's|^@pkgdep[[:space:]]*||1')" > > -- > wbr, tiger > -- wbr, tiger