pkgsrc-Bugs archive

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

pkg/38546: DESTDIR support for pkgtools/pkg_chk



>Number:         38546
>Category:       pkg
>Synopsis:       DESTDIR support for pkgtools/pkg_chk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 21:30:00 +0000 2008
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #3: 
Wed Apr 23 00:58:08 EEST 2008 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
http://www.mova.org/~cheusov/pub/pkgsrc-pbulk/NetBSD/current-destdir/log/20080426.0859/pkgtools/pkg_chk/stage_package.html

   => Creating installation directories
   ...
   /usr/bin/install -c -o root -g wheel -m 755 
/tmp/obj-pkgsrc-destdir/pkgtools/pkg_chk/work/pkg_chk.sh /usr/pkg/sbin/pkg_chk
   /usr/bin/install -c -o root -g wheel -m 644 
/srv/pkgsrc/pkgtools/pkg_chk/files/pkg_chk.8 /usr/pkg/share/man/man8/pkg_chk.8
   install: /usr/pkg/share/man/man8/pkg_chk.8: open: No such file or directory
   *** Error code 1

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_chk/Makefile,v
retrieving revision 1.60
diff -u -r1.60 Makefile
--- Makefile    23 Apr 2008 21:55:29 -0000      1.60
+++ Makefile    29 Apr 2008 21:26:01 -0000
@@ -10,6 +10,7 @@
 COMMENT=       Check installed package versions against pkgsrc
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 WRKSRC=                ${WRKDIR}
 EXTRACT_ONLY=  # empty
@@ -49,7 +50,7 @@
          ${FILESDIR}/pkg_chk.sh >${WRKSRC}/pkg_chk.sh
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/pkg_chk.sh ${PREFIX}/sbin/pkg_chk
-       ${INSTALL_MAN} ${FILESDIR}/pkg_chk.8 
${PREFIX}/${PKGMANDIR}/man8/pkg_chk.8
+       ${INSTALL_SCRIPT} ${WRKSRC}/pkg_chk.sh ${DESTDIR}${PREFIX}/sbin/pkg_chk
+       ${INSTALL_MAN} ${FILESDIR}/pkg_chk.8 
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/pkg_chk.8
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index