pkgsrc-Bugs archive

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

pkg/42290: packages not using PKGMANDIR



>Number:         42290
>Category:       pkg
>Synopsis:       packages not using PKGMANDIR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 09 01:10:00 +0000 2009
>Originator:     Steven Drake
>Release:        pkgsrc-2009Q3
>Organization:
>Environment:
System: Linux idran 2.6.30 #2 PREEMPT Sun Aug 9 18:32:44 NZST 2009 i686 
pentium4 i386 GNU/Linux
Architecture: pentium4
Machine: i686
C library: GNU C Library stable release version 2.10.1, by Roland McGrath et al.
>Description:
devel/cpuflags and textproc/antiword use the path ${PREFIX}/man.

>How-To-Repeat:
With PKGMANDIR=share/man

=> Generating post-install file lists
pkg_create: can't stat `/usr/pkg/share/man/man1/cpuflags.1.gz'
=> Registering installation for cpuflags-1.41
pkg_admin: cpuflags-1.41: File `/usr/pkg/share/man/man1/cpuflags.1.gz' is in 
+CONTENTS but not on filesystem!
=> Checking file-check results for cpuflags-1.41
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/share/man/man1/cpuflags.1.gz
ERROR: ************************************************************
ERROR: The following files are in /usr/pkg but not in the PLIST:
ERROR:         /usr/pkg/man/man1/cpuflags.1

>Fix:
Index: pkgsrc/devel/cpuflags/files/Makefile
===================================================================
--- pkgsrc.orig/devel/cpuflags/files/Makefile
+++ pkgsrc/devel/cpuflags/files/Makefile
@@ -5,7 +5,7 @@
 PREFIX?=/usr/local
 OPSYS?=`uname`
 
-MANDIR?=${PREFIX}/man/man1
+MANDIR?=${PREFIX}/${PKGMANDIR}/man1
 SUBRDIR?=${PREFIX}/share/cpuflags
 SHAREMKDIR?=${PREFIX}/share/mk
 BINDIR?=${PREFIX}/bin
Index: pkgsrc/textproc/antiword/patches/patch-ac
===================================================================
--- /dev/null
+++ pkgsrc/textproc/antiword/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Makefile.orig      2009-09-30 18:28:08.000000000 +1300
++++ Makefile
+@@ -49,7 +49,7 @@ install:     all
+ .for file in COPYING ChangeLog FAQ History Netscape QandA ReadMe
+               ${BSD_INSTALL_DATA} Docs/${file} 
${DESTDIR}${PREFIX}/share/doc/antiword
+ .endfor
+-              ${BSD_INSTALL_MAN} Docs/antiword.1 
${DESTDIR}${PREFIX}/man/man1/antiword.1
++              ${BSD_INSTALL_MAN} Docs/antiword.1 
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/antiword.1
+               ${BSD_INSTALL_DATA_DIR} ${GLOBAL_RESOURCES_DIR}
+               for i in Resources/* ; do                               \
+                       ${BSD_INSTALL_DATA} $$i ${GLOBAL_RESOURCES_DIR};\

-- 
Steven



Home | Main Index | Thread Index | Old Index