pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44117: bootstrap workdir is used in subsequent builds



>Number:         44117
>Category:       pkg
>Synopsis:       bootstrap workdir is used in subsequent builds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 19 15:10:00 +0000 2010
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
When bootstrapping with "--workdir /absolut/path/to/foo", this path is recorded 
in /etc/mk.conf as

WRKOBJDIR= /absolut/path/to/foo

As this is an ephemeral path (indicated by the fact that bootstrap insists on 
creating the last directory itself), this directory is usually no longer 
present when building regular packages. They either fail when unpacking (if the 
bootstrap directory has been cleaned) or (as far as I can tell) when compiling 
(i.e. even if the directory is still present and the package has been extracted 
there).

Example:

$ bootstrap --workdir 
/software/pkgsrc/source/pkgsrc/bootstrap/work-spro.spare280
[...]

removal of workdir

$ cd pkgtools/shlock
$ bmake
...
===> Extracting for shlock-20080529
/bin/cp -R /software/pkgsrc/source/pkgsrc/pkgtools/shlock/files 
/software/pkgsrc/source/pkgsrc/bootstrap/work-spro.spare280/pkgsrc/pkgtools/shlock/work/shlock-20080529


>How-To-Repeat:

>Fix:
Don't add WRKOBJDIR to mk.conf?



Home | Main Index | Thread Index | Old Index