From owner-freebsd-ports@FreeBSD.ORG Sun Apr 11 20:35:04 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6F7F1065670 for ; Sun, 11 Apr 2010 20:35:04 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 7E0AE8FC16 for ; Sun, 11 Apr 2010 20:35:04 +0000 (UTC) Received: (qmail 28430 invoked by uid 399); 11 Apr 2010 20:35:03 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 11 Apr 2010 20:35:03 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BC23276.3020701@FreeBSD.org> Date: Sun, 11 Apr 2010 13:35:02 -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: Alberto Villa References: <201004111533.46072.avilla@freebsd.org> In-Reply-To: <201004111533.46072.avilla@freebsd.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: multipart/mixed; boundary="------------040307090504010503000900" Cc: ports@freebsd.org Subject: Re: portmaster failing with build dependencies recognition 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: Sun, 11 Apr 2010 20:35:04 -0000 This is a multi-part message in MIME format. --------------040307090504010503000900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 04/11/10 06:33, Alberto Villa wrote: > hi doug and ports@ > > i'm installing a system from scratch in a jail with portmaster 2.21, with the > build/packages options enabled: > > `--> cat /usr/local/etc/portmaster.rc > ALWAYS_SCRUB_DISTFILES=dopt > LOCAL_PACKAGEDIR=/usr/ports/packages > MAKE_PACKAGE=gopt > PM_DEL_BUILD_ONLY=pm_dbo > PM_INDEX=pm_index > PM_PACKAGES_BUILD=pmp_build > > while having only six ports installed (ccache, zsh, portmaster, pkg_cutleaves, > subversion-freebsd and sudo), the command `sudo portmaster > www/nspluginwrapper www/linux-f10-flashplugin` No need to do 'sudo portmaster.' Check out the man page for how to configure automatic sudo support. > installed ALL the dependencies (with the exception of pkg-config) from a package, Hmmm, so even the run dependencies were installed from a package? That's bad. > and removed them at the end Ok, I'm pretty sure I see the problem. Please test the attached patch and let me know how it goes. In case anyone cares the bug is that I tested the heck out of the --index-only option and made a slight change to how the list of build dependencies is compared to the list of run dependencies as a result. It worked with --index-only, but I obviously neglected to test it again without --index-only. Mea culpa. 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/ --------------040307090504010503000900 Content-Type: text/plain; name="portmaster-fix-rundeps.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="portmaster-fix-rundeps.diff" Index: portmaster =================================================================== --- portmaster (revision 206442) +++ portmaster (working copy) @@ -1998,6 +1998,8 @@ for l in $temp_list ; do list="$list `grep -m1 ^${l}\| $PM_INDEX | cut -f 2 -d \|`" done + + list=" $list " fi echo "$list" @@ -2031,11 +2033,11 @@ if [ "$PM_BUILD_ONLY_LIST" = pmp_doing_build_deps ]; then local rundeps dep varname run_dl build_only_dl - rundeps=" `gen_dep_list run-depends-list` " + rundeps=`gen_dep_list run-depends-list` for dep in $d_port_list; do case "$rundeps" in - *" ${dep} "*) + *" ${dep} "*|*${dep}*) varname=`echo ${dep#$pd/} | sed 's#[-+/\.]#_#g'` rundep_list="$rundep_list $varname" eval $varname=\"$portdir \$$varname\" --------------040307090504010503000900--