From owner-freebsd-ports@FreeBSD.ORG Fri Jul 17 14:07:29 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 98810106564A; Fri, 17 Jul 2009 14:07:29 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id EC4008FC08; Fri, 17 Jul 2009 14:07:28 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: by fg-out-1718.google.com with SMTP id 13so252848fge.12 for ; Fri, 17 Jul 2009 07:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=XBNV4XBKYPvKNvMagTYpXKk7S2a0nGXcU27HGqMKz7w=; b=ccvUjf8rAYh9iSaAeFkXi8WdH9i7vtvFCd4qNC4EatHGEu/BHbbMVV056zfGsxGmMN u2K96+/IT0c99fCDEf30OU8/G2Dmm7CiBnkhTCNcpoPa6JoRzHTh4WRDlvGu2ABNrDk9 s4oc6jX79ESYSlEMTc49xjuzpwcrhWBWIrWhE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=G9e3RObw9zr2slIt8pPb+rclayy4HdiN4D81z9+Fs/d9aCINEwx2TolK/Gj5QQhslG tFqCAfwMwXItOfxNygc+VMwCMA2/j9G0st+NEfcxZQ8ah5bZfuF4Z0sZPnnzKAbJJNei wUNBQEAALcjBM/rhslmIW3BFQ2v9whTUkmNp0= MIME-Version: 1.0 Sender: florent.thoumie@gmail.com Received: by 10.86.9.12 with SMTP id 12mr883528fgi.46.1247837955063; Fri, 17 Jul 2009 06:39:15 -0700 (PDT) In-Reply-To: <4970B81B.906@icyb.net.ua> References: <497082F3.2080606@icyb.net.ua> <4970B81B.906@icyb.net.ua> From: Florent Thoumie Date: Fri, 17 Jul 2009 14:38:55 +0100 X-Google-Sender-Auth: da85cd29f02bb36b Message-ID: To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , FreeBSD Ports , Maxim Sobolev Subject: Re: pkg_info: package files checked before installed packages 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: Fri, 17 Jul 2009 14:07:30 -0000 On Fri, Jan 16, 2009 at 5:38 PM, Andriy Gapon wrote: > on 16/01/2009 14:52 Andriy Gapon said the following: >> [people who "touched" pkg_info recently are CC-ed] >> >> Please see a prior discussion here: >> http://docs.freebsd.org/cgi/mid.cgi?496F360E.1000508 >> and especially this post: >> http://docs.freebsd.org/cgi/mid.cgi?7d6fde3d0901152330p32c51b64i212c660c0aaeb04c >> >> So it is obvious from code in usr.sbin/pkg_install/info/perform.c, >> function pkg_do() that if for a given name there is both a package file >> in a defined packages directory and also an installed package, then >> pkg_info would work on the package file. > > Additional info - this issue manifests itself if PKG_PATH env var points > to a directory with (full of) packages. Apparently portupgrade sets it > so (maybe -p option is needed for that). > >> I do not think that this is either obvious/intuitive or even correct. >> At the very list there should be an option to control this behavior. >> >> I have a system where I keep package files for all installed/built >> packages and pkg_info acts very nasty there, especially when working on >> all packages. Is there a patch addressing this issue? -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer