pkgsrc-Bugs archive

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

pkg/45450: pkgtools/p5-pkgsrc-Dewey fails to build with non-standard $WRKOBJDIR



>Number:         45450
>Category:       pkg
>Synopsis:       pkgtools/p5-pkgsrc-Dewey fails to build with non-standard 
>$WRKOBJDIR
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 10 15:40:00 +0000 2011
>Originator:     John Marino
>Release:        
>Organization:
>Environment:
>Description:
pkgtools/p5-pkgsrc-Dewey needs some files from the pkgtools/pkg_install package.

The makefile assumes that the pkg files are always available via a relative 
path (in the case ../../pkgtools/pkg_install) but this is only true if 
$WRKOBJDIR is not overridden.

Relative paths should not be used here.
>How-To-Repeat:
set $WRKOBJDIR to a temporary directory in the mk.conf file, then try to build 
pkgtools/p5-pkgsrc-Dewey

>Fix:
Apply this patch:


--- Makefile.orig       2011-09-26 19:51:08.364306000 +0200
+++ Makefile    2011-10-10 17:15:58.187907000 +0200
@@ -21,7 +21,7 @@
 
 PERL5_PACKLIST=                auto/pkgsrc/Dewey/.packlist
 
-PKG_INSTALL_FILESDIR=  ../../pkgtools/pkg_install/files
+PKG_INSTALL_FILESDIR=  ${PKGSRCDIR}/pkgtools/pkg_install/files
 PKG_INSTALL_FILES=     lib/dewey.c lib/dewey.h lib/defs.h
 
 do-extract:



Home | Main Index | Thread Index | Old Index