Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134941

Summary: xprint environment not initialized by Xsession
Product: Gentoo Linux Reporter: Timothy Stotts <devel>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: trivial CC: ed
Priority: Lowest Keywords: Inclusion
Version: 2006.0   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: proposed patch for Gentoo systems
fix scripts, patch against unpacked ebuild

Description Timothy Stotts 2006-05-30 11:30:40 UTC
Considering 'xorg-x11-6.9.0-r1', the following session script does not work correctly on Gentoo systems:

/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh

It assumes that /etc/init.d/ services are processed by /bin/sh, and thus fails to setup the environment for xprint.
Comment 1 Timothy Stotts 2006-05-30 11:31:23 UTC
Created attachment 87896 [details, diff]
proposed patch for Gentoo systems
Comment 2 Timothy Stotts 2006-05-30 11:32:55 UTC
Also, I think that this script is only installed when xorg-x11 is merged with USE="xprint".
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-05-30 12:53:48 UTC
Could you provide a patch against the unpacked source, please?
Comment 4 Timothy Stotts 2006-05-30 13:24:29 UTC
Created attachment 87906 [details, diff]
fix scripts, patch against unpacked ebuild

Fixes three (3) session scripts to properly use /etc/init.d/xprint to set XPSERVERLIST.  Tested both the /bin/sh and /bin/csh scripts.

Source were extracted with:
# sudo -u portage ebuild /usr/portage/x11-base/xorg-x11/xorg-x11-6.9.0-r1.ebuild unpack
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-20 23:15:20 UTC
Xprint guru, your opinion?
Comment 6 Ed Catmur 2006-06-24 03:54:14 UTC
"Guru". Heh.

That'll work, yeah; it might be simpler to use `/usr/lib/misc/xprint get_xpserverlist` (which is what xorg-server has).
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-24 01:07:08 UTC
Is there a final patch here?
Comment 8 Ed Catmur 2007-01-28 03:15:59 UTC
This is done with a sed stanza:

	# Patch profile scripts
	sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
		get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \
		${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh
Comment 9 Joshua Baergen (RETIRED) gentoo-dev 2007-02-19 21:27:36 UTC
6.9 is no longer in the tree and, as Ed says, this is already taken care of in xorg-server.