pkgsrc-Bugs archive

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

pkg/42575: x11/libxdg-basedir doesn't honor PKG_SYSCONFDIR

>Number:         42575
>Category:       pkg
>Synopsis:       x11/libxdg-basedir doesn't honor PKG_SYSCONFDIR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 04 00:10:01 +0000 2010
>Originator:     Pierre Allegraud
>Release:        NetBSD/amd64-CURRENT
NetBSD klarth.reseau 5.99.23 NetBSD 5.99.23 (GENERIC) #0: Wed Dec 30 14:26:43 
CET 2009  
Packages compiled with x11/libxdg-basedir are searching their config files 
somewhere in /etc/xdg instead of ${PKG_SYSCONFDIR}/xdg.

Could you check my quick and dirty fix, and, if it's correct, commit it, please 

It works for me...

Index: Makefile
RCS file: /cvsroot/pkgsrc/x11/libxdg-basedir/Makefile,v
retrieving revision
diff -u -r1.1.1.1 Makefile
--- Makefile    8 Nov 2009 18:26:15 -0000
+++ Makefile    3 Jan 2010 23:55:26 -0000
@@ -16,6 +16,12 @@
 USE_TOOLS+=    pkg-config
+SUBST_CLASSES+=                xdgetc
+SUBST_MESSAGE.xdgetc=  Fixing sysconfdir paths
+SUBST_STAGE.xdgetc=    pre-build
+SUBST_FILES.xdgetc=    src/basedir.c
+SUBST_SED.xdgetc=      -e "s,DIR_SEPARATOR_STR \"etc\",\"${PKG_SYSCONFDIR}\","
 PKGCONFIG_OVERRIDE+=   pkgconfig/
 .include "../../mk/"

Home | Main Index | Thread Index | Old Index