pkgsrc-Bugs archive

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

pkg/38524: DESTDIR support for mail/bogofilter



>Number:         38524
>Category:       pkg
>Synopsis:       DESTDIR support for mail/bogofilter
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 27 09:50: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/mail/bogofilter/stage_package.html

   ...
   => Automatic manual page handling
   => Generating post-install file lists
   pkg_create: can't stat 
`/tmp/obj-pkgsrc-destdir/mail/bogofilter/work/.destdir/usr/pkg/share/examples/bogofilter/bogofilter.cf'
   ERROR: CONF_FILE 
/tmp/obj-pkgsrc-destdir/mail/bogofilter/work/.destdir/usr/pkg/share/examples/bogofilter/bogofilter.cf
 does not exist.
   *** Error code 1

   Stop.
   make: stopped in /srv/pkgsrc/mail/bogofilter
   *** Error code 1

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/bogofilter/Makefile,v
retrieving revision 1.37
diff -u -r1.37 Makefile
--- Makefile    8 Jun 2007 12:25:03 -0000       1.37
+++ Makefile    27 Apr 2008 09:45:52 -0000
@@ -11,6 +11,7 @@
 COMMENT=       Bayesian spam filter written in C
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 GNU_CONFIGURE= YES
 
@@ -19,6 +20,8 @@
 EGDIR=                 ${PREFIX}/share/examples/bogofilter
 CONF_FILES=            ${EGDIR}/bogofilter.cf ${PKG_SYSCONFDIR}/bogofilter.cf
 
+INSTALLATION_DIRS+=    ${EGDIR}
+
 USE_TOOLS+=            perl:run
 REPLACE_PERL=          src/bogoupgrade
 
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/mail/bogofilter/distinfo,v
retrieving revision 1.17
diff -u -r1.17 distinfo
--- distinfo    16 Feb 2007 15:47:39 -0000      1.17
+++ distinfo    27 Apr 2008 09:45:52 -0000
@@ -3,5 +3,5 @@
 SHA1 (bogofilter-1.0.3.tar.bz2) = 88d72c810dc3ae613cb4178e19b45c6508062210
 RMD160 (bogofilter-1.0.3.tar.bz2) = d4b6d5329919cefbc4e17168350157b27bb08b9c
 Size (bogofilter-1.0.3.tar.bz2) = 778983 bytes
-SHA1 (patch-aa) = 8403c5e8a723fef0bef9a87feba639a8cabfe99e
+SHA1 (patch-aa) = 66f8a6c78fcc851e2d4ba4e035dc66af559db4d9
 SHA1 (patch-ab) = f55a9956d82f56cef686a9125983ec5fd6942809
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/mail/bogofilter/patches/patch-aa,v
retrieving revision 1.5
diff -u -r1.5 patch-aa
--- patches/patch-aa    16 Feb 2007 15:47:40 -0000      1.5
+++ patches/patch-aa    27 Apr 2008 09:45:52 -0000
@@ -23,7 +23,7 @@
 -        $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
 -      done
 +      $(mkdir_p) $(egdir)
-+      $(INSTALL_DATA) $(sysconf_DATA) $(egdir)/bogofilter.cf
- 
++      $(INSTALL_DATA) $(sysconf_DATA) ${DESTDIR}$(egdir)/bogofilter.cf
+
  uninstall-sysconfDATA:
        @$(NORMAL_UNINSTALL)



Home | Main Index | Thread Index | Old Index