From owner-freebsd-ports@FreeBSD.ORG Sat Apr 24 20:38:07 2010 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 867041065670 for ; Sat, 24 Apr 2010 20:38:07 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 31FD08FC14 for ; Sat, 24 Apr 2010 20:38:06 +0000 (UTC) Received: (qmail 7176 invoked by uid 399); 24 Apr 2010 20:38:06 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 24 Apr 2010 20:38:06 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BD356AC.9080707@FreeBSD.org> Date: Sat, 24 Apr 2010 13:38:04 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: Aristedes Maniatis References: <4BD28512.2010506@ish.com.au> In-Reply-To: <4BD28512.2010506@ish.com.au> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: portmaster and IGNOREME 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: Sat, 24 Apr 2010 20:38:07 -0000 On 04/23/10 22:43, Aristedes Maniatis wrote: > I have a package which is not built from a port (it is commercial > software). I've put an +IGNOREME file in the package folder. But > portmaster will not ignore it: > > #portmaster -a > > [snip...] > > ===>>> Proceed? y/n [y] > > ===>>> Starting build for for ports that need updating <<<=== > > ===>>> Launching child to update CGatePro-5.3.5 > > ===>>> No ORIGIN in /var/db/pkg/CGatePro-5.3.5/+CONTENTS > ===>>> Aborting update > > ===>>> Update for CGatePro-5.3.5 failed > ===>>> Aborting update > > > > Unless there is some clear documented reason, portmaster should ignore > ports which are marked to be ignored. You're right, and I see the bug. There are actually a few places where the lack of ORIGIN leads to Bad Things happening where the +IGNOREME file isn't checked, so I'm going to work on a more general solution for this. Meanwhile you should be able to do 'portmaster -a -x CGatePro' and have it work as expected. > I don't know > enough about package files to know why ORIGIN is required, even for > packages which aren't generated from the ports system. In the general case lack of ORIGIN indicates that the pkg directory for that file is corrupt, which is a serious problem that requires user attention. Also, most 3rd party packages contain an ORIGIN of some sort, and portmaster does include code to handle "/usr/ports/foo/bar does not exist, but the pkg directory has an +IGNOREME file" gracefully for this exact reason. The case of "no ORIGIN at all but the pkg directory has an +IGNOREME file" is sufficiently rare that the bug has so far been unexposed. Congratulations! :) Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/