pkgsrc-Bugs archive

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

pkg/36419: pkgxmkmf and XAPPLOADDIR=/etc/X11/app-defaults on Debian Linux



>Number:         36419
>Category:       pkg
>Synopsis:       pkgxmkmf and XAPPLOADDIR=/etc/X11/app-defaults on Debian Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 31 17:15:01 +0000 2007
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #16: Mon 
May 21 00:01:33 EEST 2007 
cheusov%chen.chizhovka.net@localhost:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Given:
  NetBSD 4.0 beta2 and Linux/Debian sarge systems,
  X11_TYPE is set to 'native'
  xpkgwedge-1.16 is installed
  Imakefile based project (wip/xxkb)

The problem is that under Debian Linux pkgxmkmf produces

    XAPPLOADDIR=/etc/X11/app-defaults

line in Makefile. This obviously results in packaging error
because the default resource file is installed outside LOCALBASE.

Under NetBSD everything works fine because

    XAPPLOADDIR=$(LIBDIR)/app-defaults

is produced.

>Fix:
The following patch for pkgtools/xpkgwedge
works perfectly for me both under Debian Linux and NetBSD.

Index: files/xpkgwedge.def
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/xpkgwedge/files/xpkgwedge.def,v
retrieving revision 1.12
diff -u -r1.12 xpkgwedge.def
--- files/xpkgwedge.def 31 Jul 2004 01:42:06 -0000      1.12
+++ files/xpkgwedge.def 31 May 2007 15:45:32 -0000
@@ -1,5 +1,7 @@
 /*     $NetBSD: xpkgwedge.def,v 1.12 2004/07/31 01:42:06 xtraeme Exp $ */
 
+#define EtcX11Directory LibDir
+
 #ifdef BeforeVendorCF
 
 /*




Home | Main Index | Thread Index | Old Index