Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23304 - baselayout 1.8.6.8-r1 breaks hpoj ptal-init script
Summary: baselayout 1.8.6.8-r1 breaks hpoj ptal-init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on: 21197
Blocks:
  Show dependency tree
 
Reported: 2003-06-22 18:15 UTC by Ryan Koski
Modified: 2003-07-15 08:18 UTC (History)
2 users (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 Ryan Koski 2003-06-22 18:15:52 UTC
After upgrading to baselayout 1.8.6.8-r1, the ptal-init init script from hpoj is no longer executed.  
Instead, an error is displayed: 
 
* ERROR:  "/etc/init.d/ptal-init" has syntax errors in it; not executing... 
 
This is most likely due to wrap_rcscript() trying to turn ptal-init, a perl script, into an executable [ba]sh 
function. 

Reproducible: Always
Steps to Reproduce:
1.  Upgrade to baselayout 1.8.6.8-r1 
2.  Install hpoj if not already installed 
3.  Reboot 
Actual Results:  
The error message noted above is displayed. 

Expected Results:  
Not assume that all init scripts are written as sh scripts. =) 

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-gentoo-r2 i686 Intel(R) Xeon(TM) CPU 1700MHz 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 apm avi crypt cups encode gif jpeg libg++ libwww mikmod mmx mpeg ncurses nls png 
quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts aalib bonobo svga 
java guile X sdl gpm tcpd pam ssl python esd imlib oggvorbis gtk qt kde motif opengl ldap snmp 
-3dnow -gnome -oss acpi alsa apache2 cdr dga directfb dvd fbcon gtk2 imap matrox mozilla mysql 
pdflib perl prebuilt samba scanner smooth tiff" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -O3 -pipe" 
CXXFLAGS="-march=pentium3 -O3 -pipe" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache buildpkg fixpackages"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-23 02:19:09 UTC
It should not have worked in the first place, as the init system use
bash scripts in a special format.  The maintainer needs to add a 'wrapper'
rc-script for this perl script.

Thomas, will you need help with this ?
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-06-29 04:42:13 UTC
fixed, see attachement to bug 21108
Comment 3 bdonlan 2003-06-30 15:40:27 UTC
Why does this depend on bug 21197? That's a linux-ecc ebuild, it shouldn't affect the init scripts.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-15 08:18:52 UTC
fixed in hpoj-0.90-r1