I was running xorg-x11 6.7.0-r2 and xprint 009 and had xprint added to default runlevel and things appeared to be working OK. Prior to upgrading to xorg-x11 6.8.0-r1 I unmerged xprint 009 package as 6.8.0 contains xprint support. after this, the /etc/init.d/xprint script does not run at boot time. i did an rc-update delete and then rc-update add xprint default but it still does not get invoked. i can execute it manually after X is up and it starts OK and I can print from firefox. the /etc/init.d/xprint script does not look like a gentoo specific script and so i believe that is the problem with it (it has no depend section, etc.) Reproducible: Always Steps to Reproduce: 1. have xorg-x11 6.7.0 and xprint 009 installed with xprint init script 2. unmerge xprint 009 and upgrade to xorg-x11 6.8.0 3. ensure that xprint is added to default runlevel Actual Results: new /etc/init.d/xprint is not started by boot scripts Expected Results: default runlevel should invoke start method of xprint script
/etc/init.d/xprint is provided by xprint but not by xorg-x11, so we need to add an init script in xorg-x11
Please attach one and I'll add it to 6.8.0-r2.
Can't you just modify the xorg-x11 ebuild to do basically what the xprint 009 ebuild did? Have a gentoo rc script wrapper to execute the xprint script supplied by xorg-x11? You see the following in the xprint 009 ebuild in install: dodir /usr/sbin mv ${D}/etc/init.d/xprint ${D}/usr/sbin/ cp ${FILESDIR}/xprint.rc6 ${D}/etc/init.d/xprint The above could be done possibly only if USE=xprint was provided. The /usr/portage/net-print/xprint/files/xprint.rc6 wrapper looks simply like this: #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-print/xprint/files/xprint.rc6,v 1.4 2004/07/15 00:22:50 agriffis Exp $ opts="${opts} get_xpserverlist lsprinters" depend() { use cupsd } start() { ebegin "Starting xprint" /usr/sbin/xprint start > /dev/null eend $? } get_xpserverlist() { /usr/sbin/xprint get_xpserverlist } lsprinters() { /usr/sbin/xprint lsprinters } stop() { ebegin "Stopping xprint" /usr/sbin/xprint stop > /dev/null eend $? }
The supplied init script should be in /usr/lib/misc, since it's not being directly run by the user. But yeah, I can do that. Gimme a few days, this is a particularly busy time in real life.
Fixed in 6.8.0-r2 in CVS. Please test.
I tried xorg-x11-6.8.0-r3 yet it didn't even install an /etc/init.d/xprint script this time.
-r3 is based on -r1, not on -r2. -r4 is based on -r2. So you'll need to be using -r4. Sorry for any confusion.
I tried -r4 with xprint USE variable enabled and I ended up with a /etc/init.d/xprint (looks to be the xorg-x11 xprint script) /etc/init.d/xprint.init (looks to be the gentoo init script) I add the xprint.init to default level using rc-update but when I booted, I got /sbin/rc: line 14: /usr/lib/misc/xprint: No such file or directory Sure enough, the xprint.init script uses this path instead of the /etc/init.d/xprint. Is this resolved in something past -r4 maybe?
Let's track that on bug #76074.