From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 18 07:44:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C45416A401; Wed, 18 Jul 2007 07:44:26 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 59C7513C4AC; Wed, 18 Jul 2007 07:44:26 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l6I7iP6R018823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Jul 2007 00:44:25 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l6I7iOkA025193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Jul 2007 00:44:25 -0700 Message-ID: <469DC4D7.5050102@u.washington.edu> Date: Wed, 18 Jul 2007 00:44:23 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Antony Mawer References: <469D62D3.70908@math.missouri.edu> <469DAC63.3020708@mawer.org> In-Reply-To: <469DAC63.3020708@mawer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.2.304607, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.18.1939 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: ports@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Slight problem with make actual-package-depends with ports X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 07:44:26 -0000 Antony Mawer wrote: > On 18/07/2007 10:46 AM, Stephen Montgomery-Smith wrote: >> I appreciate that most people won't have this problem, but it has >> bitten me. >> >> After you have made and installed a port, but don't clean it, and >> then made a bunch of other ports, if you go back to the original port >> and then do "make package", then +CONTENTS can be a bit messed up for >> the package. This is because the creation of other ports might >> disturb _LIB_RUN_DEPENDS and might put in some extra entries in >> +CONTENTS. >> >> This happens to me because I make all my ports on one machine and >> then copy them as packages to other machines. Then on the other >> machines, the structure of /var/db/pkg gets a bit messed up and >> pkg_delete -r malfunctions. >> >> It seems to me that the cure is to slightly change "make >> actual-package-depends" so that if the port is already installed, it >> just uses +CONTENTS. > > I can't comment on the particular approach taken in your patch, but > can certainly attest to experiencing the same problem and it being > frustrating to identify what was going on. It was only after much > hair-pulling that I discovered that doing a 'make clean' at the > appropriate time before package building fixed the problem. > > Otherwise I was winding up with plenty of seemingly OK packages that > were missing critical files (in this instance, various PHP5 extension > ports that were "installing" but missing the actual .so files!) > > --Antony Installing ports registers them on the machine as packages, by simulating a package install via stdin. Was that forgotten? -Garrett