From owner-freebsd-ports@FreeBSD.ORG Thu Jan 15 13:27:05 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0476C1065670; Thu, 15 Jan 2009 13:27:05 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D06338FC13; Thu, 15 Jan 2009 13:27:03 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA01885; Thu, 15 Jan 2009 15:11:42 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <496F360E.1000508@icyb.net.ua> Date: Thu, 15 Jan 2009 15:11:42 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: FreeBSD Ports , kde@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: pkg_info confusion (and configure.kde3) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 13:27:05 -0000 I am reading pkg_info(1), I see that pkg_info can be executed without any options/arguments, but the man page doesn't tell what happens in this case. In practice I see that configure.kde3 executes pkg_info in the above fashion (after printing "Looking for installed modules.") and what I observe is that pkg_info is examining all package files found in /var/packages. This takes quite long, obviously: 0 61827 28318 0 8 0 5992 2892 wait S+J p5 0:00.12 /usr/sbin/pkg_info 0 62162 61827 0 8 0 3492 1108 wait S+J p5 0:00.00 sh -c /usr/bin/tar -xp -j -f '/var/packages/All/curl-7.18.0.tbz' '+*' I am not sure if this is default behavior of pkg_info or it is somehow affected by environment. I run portupgrade -p and also have PACKAGES set to /var/packages. -- Andriy Gapon