Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2009 20:07:46 -0400 (EDT)
From:      danm@prime.gushi.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/137250: OPTIONS that change PREFIX cause an error after 'make config'
Message-ID:  <200907300007.n6U07kAt034838@s1.ezzi.net>
Resent-Message-ID: <200907300040.n6U0e7ew040180@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137250
>Category:       ports
>Synopsis:       OPTIONS that change PREFIX cause an error after 'make config'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 30 00:40:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dan Mahoney <danm@prime.gushi.org>
>Release:        FreeBSD 6.4-PRERELEASE i386
>Organization:
Dan Mahoney
>Environment:
System: FreeBSD s1.ezzi.net 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #0: Sun Aug 31 00:40:44 EDT 2008 danm@s1.xxxx.net:/usr/obj/usr/src/sys/S1 i386

Fairly standard system.  Ports cvsupped within hours of this report.

>Description:

On some 6.4 boxes (I have observed this on 6.4-PRERELEASE and 6.4-STABLE), when building the bind96 port, as "virgin", i.e. no previous configuration 
details in /var/db/ports/bind96, no work directory, etc, if you select the "overwrite base" option, you get an error code 2 on first make, with the 
following error:

/usr/local/tmp/usr/local/ports/dns/bind96/work/.build_done.bind96._usr_local.                                                                                 

If you then re-run make, the install proceeds as normal.

>How-To-Repeat:

1. Make sure there is nothing in /var/db/ports/bind96                                                                                                         
2. cd /usr/ports/dns/bind96
3. make                                                                                                                                                       
4. Enable the "replace base" option
5. Save the config                                                                                                                                            
You will then see the following error:

make: don't know how to make /usr/ports/dns/bind96/work/.build_done.bind96._usr_local.
Stop
*** Error code 2

While subsequent "make" commands succeed, I can get the problem to manifest again by doing a 'make rmconfig; make'

Oddly, 'make config; make' doesn't cause the problem: it appears it only manifests when the config happens as part of the generic "make" process.

>Fix:

>From discussion on -questions, it appears this is because the prefix changes, but that is part of the point of the option.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907300007.n6U07kAt034838>