Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134941 - xprint environment not initialized by Xsession
Summary: xprint environment not initialized by Xsession
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: Lowest trivial (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2006-05-30 11:30 UTC by Timothy Stotts
Modified: 2007-02-19 21:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch for Gentoo systems (92xprint-xpserverlist.sh.diff,405 bytes, patch)
2006-05-30 11:31 UTC, Timothy Stotts
Details | Diff
fix scripts, patch against unpacked ebuild (xprint_session.patch,1.69 KB, patch)
2006-05-30 13:24 UTC, Timothy Stotts
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.