Subject: pkg/16781: [rkb] GDM installs config files with wrong paths to sessreg/xsetroot
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@netbsd.org>
List: netbsd-bugs
Date: 05/12/2002 20:44:17
>Number: 16781
>Category: pkg
>Synopsis: gdm config files refer to X11 tools via X11PREFIX instead of X11BASE
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 12 17:45:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5ZC
>Organization:
Highly unlikely...
>Environment:
System: NetBSD cyclops 1.5ZC NetBSD 1.5ZC (CYCLOPS.mp) #9: Tue Apr 30 10:26:48 EDT 2002 rafal@cyclops:/extra/src-current/sys/arch/i386/compile/CYCLOPS.mp i386
Architecture: i386
Machine: i386
>Description:
The GDM package rewrites a bunch of the configuration files to not
refer to X tools via /usr/bin/X11, however it rewrites those paths
to use X11PREFIX (which per Packages.txt is where X-using packages
are installed, not where X binaries are) rather than X11BASE.
>How-To-Repeat:
Build gdm, note that the login-screen background is the stock gray-
stippled X background. Wonder why this is so. Realize it's so
due to gdm looking for xsetroot in /usr/pkg/bin/ not /usr/X11R6/bin.
Note that various references to sessreg are also incorrect.
>Fix:
Apply the following patch to pkgsrc/x11/gdm/Makefile:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gdm/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile 2002/03/13 17:37:55 1.26
+++ Makefile 2002/05/13 00:36:56
@@ -73,7 +73,7 @@ post-build:
done
cd ${WRKSRC}/config; \
for f in Default PostSession PreSession; do \
- ${SED} -e 's#/usr/bin/X11#${X11PREFIX}/bin#g' $$f >$$f.new; \
+ ${SED} -e 's#/usr/bin/X11#${X11BASE}/bin#g' $$f >$$f.new;\
${MV} $$f.new $$f; \
${CHMOD} +x $$f; \
done
>Release-Note:
>Audit-Trail:
>Unformatted:
pkgsrc cvs updated on May 12, 2002, 8:30pm EST