> >Number: 29200 > >Category: pkg > >Synopsis: .pkgdb not created if workdir already exists > >Confidential: no > >Severity: non-critical > >Priority: medium > >Responsible: pkg-manager > >State: open > >Class: sw-bug > >Submitter-Id: net > >Arrival-Date: Wed Feb 02 16:45:00 +0000 2005 > >Originator: lasse-sendpr-2005%plastictree.net@localhost > >Release: pkgsrc-current > >Environment: > Trustix Secure Linux 2.2 on i386, but likely is not platform related > >Description: > > As mentioned in pkg/29148, .pkgdb is not created if work directory already > exists. Solution is to delete the workdir and restart the build. > Unfortunately, > this does not work if workdir is accessed via a symbolic link. > > >How-To-Repeat: > > cd pkgsrc/pkgtools/digest > bmake clean > rm -fr "$HOME"/work > mkdir "$HOME"/work # this step cannot be left out > ln -s "$HOME"/work work > bmake install > > >Fix: > > As a workaround, do not use symbolic links to access work directory. I discovered a workaround that even allows using symbolic links. You can use WRKDIR_BASENAME as in the following example: cd pkgsrc/pkgtools/digest bmake clean rm -fr "$HOME"/work mkdir "$HOME"/work ln -s "$HOME"/work work WRKDIR_BASENAME=work/here export WRKDIR_BASENAME bmake install I implemented this in my sepbuild package [1], which otherwise wouldn't work with pkgsrc-current anymore. Lasse [1] http://plastictree.net/software/sepbuild
Attachment:
pgpKLDIEsCyRn.pgp
Description: PGP signature