Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68316 - /etc/init.d/xprint script for xorg-x11 6.8.0 does not start Xprt daemon a boot time
Summary: /etc/init.d/xprint script for xorg-x11 6.8.0 does not start Xprt daemon a boo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-10-20 14:15 UTC by Luciano Chavez
Modified: 2005-01-05 21:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Chavez 2004-10-20 14:15:57 UTC
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
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-24 17:08:09 UTC
/etc/init.d/xprint is provided by xprint but not by xorg-x11, so we need to add an init script in xorg-x11
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-24 21:53:42 UTC
Please attach one and I'll add it to 6.8.0-r2.
Comment 3 Luciano Chavez 2004-10-25 11:55:15 UTC
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 $?
}
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-25 13:26:21 UTC
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.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-03 00:37:11 UTC
Fixed in 6.8.0-r2 in CVS. Please test.
Comment 6 Luciano Chavez 2004-11-19 11:01:02 UTC
I tried xorg-x11-6.8.0-r3 yet it didn't even install an /etc/init.d/xprint script this time.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-19 11:11:11 UTC
-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.
Comment 8 Luciano Chavez 2005-01-05 11:49:00 UTC
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?
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-05 21:17:08 UTC
Let's track that on bug #76074.