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"
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 ?
fixed, see attachement to bug 21108
Why does this depend on bug 21197? That's a linux-ecc ebuild, it shouldn't affect the init scripts.
fixed in hpoj-0.90-r1