Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388715 - sys-apps/openrc-0.9.4: runscript uses eerror before sourcing functions.sh
Summary: sys-apps/openrc-0.9.4: runscript uses eerror before sourcing functions.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 387433
  Show dependency tree
 
Reported: 2011-10-27 21:49 UTC by Jochen Schlick
Modified: 2011-11-02 13:44 UTC (History)
0 users

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 Jochen Schlick 2011-10-27 21:49:21 UTC
/lib/rc/sh/runscript.sh: line 37: eerror: command not found
/lib/rc/sh/runscript.sh: line 38: eerror: command not found
/lib/rc/sh/runscript.sh: line 39: eerror: command not found
/lib/rc/sh/runscript.sh: line 40: eerror: command not found
/lib/rc/sh/runscript.sh: line 41: eerror: command not found
/lib/rc/sh/runscript.sh: line 42: eerror: command not found
/lib/rc/sh/runscript.sh: line 43: eerror: command not found
/lib/rc/sh/runscript.sh: line 44: eerror: command not found


Reproducible: Always
Comment 1 SpanKY gentoo-dev 2011-10-27 22:42:25 UTC
you need to post real details.  start with `emerge --info` like every bug report should have, followed up by what you're actually doing.
Comment 2 Jochen Schlick 2011-10-29 14:09:39 UTC
ok my fault, I thought "eerror" is defined in /etc/init.d/functions.sh which is sourced in /lib/rc/sh/runscript.sh two lines after the last eerror call... and so I assumed providing more info wouldn't be necessary.

here the lines of /lib/rc/sh/runscript.sh:
...

if [ ! -e ${RC_SVCDIR}/softlevel ]; then
        eerror "You are attempting to run an openrc service on a"
        eerror "system which openrc did not boot."
        eerror "You may be inside a chroot or you may have used"
        eerror "another initialization system to boot this system."
        eerror "In this situation, you will get unpredictable results!"
        eerror
        eerror "If you really want to do this, issue the following command:"
        eerror "touch ${RC_SVCDIR}/softlevel"
        exit 1
fi

sourcex "/etc/init.d/functions.sh"
sourcex "/lib64/rc/sh/rc-functions.sh"
...


I did exactly what the error message says - starting an openrc service inside a chroot -  in my case inside a complete 32bit-chroot environment on a 64bit host, which seems to be no longer possible.

but I haven't expected as result that the error message itself produce an error.
Comment 3 Jochen Schlick 2011-10-29 14:19:56 UTC
Portage 2.1.10.31 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.13-r4, 3.0.7-gentoo x86_64)
=================================================================
System uname: Linux-3.0.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sat, 29 Oct 2011 12:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories:

ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE"
ACCEPT_PROPERTIES="*"
ARCH="amd64"
AUTOCLEAN="yes"
CCACHE_BASEDIR="/var/tmp/portage"
CCACHE_DIR="/var/tmp/portage/ccache"
CCACHE_SIZE="4G"
CFLAGS="-march=core2 -O2 -pipe -msse3 -mssse3"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORFGBG="15;0"
CONFIG_PROTECT="/etc /usr/lib/findcruft/ /usr/share/config /usr/share/config/ /usr/share/gnupg/qualified.txt /usr/share/hddtemp/ /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -msse3 -mssse3"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-HZvePqUwSX,guid=dc343d5e98ace0a83b28a3da00000516"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="KDE-4"
DISPLAY=":0"
DISTDIR="/DATA/portage/distfiles"
DM_CONTROL="/var/run/xdmctl"
EDITOR="/usr/bin/vi"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" --verbose --with-bdeps y "
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GCC_SPECS=""
HISTCONTROL="ignoredups"
HOME="/root"
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS="1"
KERNEL="linux"
KONSOLE_DBUS_SERVICE=":1.46"
KONSOLE_DBUS_SESSION="/Sessions/7"
LADSPA_PATH="/usr/lib64/ladspa"
LANG="C"
LANGUAGE=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en de"
LOGNAME="root"
LPDEST="lp"
MAKEOPTS="-j3 "
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin:/root/bin:/root/bin/s:/root/bin/cs"
PKGDIR="/usr/portage/packages"
PKG_INSTALL_MASK="*.la"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error info log"
PORTAGE_ELOG_MAILFROM="linux64portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="mail_summary"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="5"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/.unionfs "
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/sabayon /usr/local/layman/perl-experimental /usr/local/layman/mv /usr/local/layman/wirelay /usr/local/layman/science /usr/local/layman/kde-sunset /usr/local/layman/betagarden /usr/local/layman/arcon /usr/local/layman/xemacs /usr/local/layman/vmware /usr/local/layman/sunrise /usr/local/portage"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PROFILE_READ="true"
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin"
RUBYOPT="-rauto_gem"
RUBY_TARGETS="ruby18"
R_HOME="/usr/lib64/R"
SESSION_MANAGER="local/lasan:@/tmp/.ICE-unix/21626,unix/lasan:/tmp/.ICE-unix/21626"
SHELL="/bin/bash"
SHELL_SESSION_ID="08587a69a51b4000bb250331167ce285"
SHLVL="3"
STAGE1_USE="nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="3dnow 3dnowext 64bit 7zip X Xaw3d a52 aac aalib acct acl acpi aiglx aio alsa amarok amd amd64 amr amrnb amrwb ao aotuv apm apng asf ass atmo audacious audiofile autoreplace bash-completion berkdb binary-drivers blksha1 bluetooth boost branding bundledlibevent bwscheduler bzip2 cairo ccache cdb cdda cdparanoia cdr cdrom cg chm chroot cli cmdreccmdi18n cmdsubmenu colordiff connectionstatus consolekit corefonts cracklib crypt css cups curl cutterlimit cutterqueue cuttime cvs cxx d dbase dbus debugger deprecated device-mapper dga dia diet dirac directfb disk-partition djvu dlloader dmi dmraid dnd dnotify dri dts dv dvb dvd dvdr dvdread dvi emboss encode exceptions exif extensions extrafilters extraicons fame fat fbcondecor fbdev fbsplash ffmpeg fftw firefox firefox3 flac fortran gcrypt gdbm gif gimp gnome gnutls gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 hardened hdri hpn htmltidy iconv icq ieee1394 imagemagick imap inkjar inotify int64 ipod iproute2 ipv6 irc jabber jack john joystick jpeg jpeg2k kde kdehiddenvisibility kdm keyring kipi kvm lame largefile lcd lcms libcaca libgcrypt libsamplerate libssh2 libtiger live lm_sensors logrotate lzma lzo mad maildir matroska mhash mjpeg mmap mmx mmxext mng modules mozilla mp2 mp3 mp3rtp mp4 mpd mpeg mpeg2 mplayer msn mudflap musepack mythtv nat ncurses network-cron new-login nforce2 nls nptl nptlonly nsplugin ntfs ntlm nvidia nvram ogg openexr opengl openmp openssl pam pam_chroot pam_timestamp pascal pcap pcre pda pdf perl pic plasma png policykit portaudio posix postproc postscript povray ppds pppd prelude pvr python qmail qt3 qt3support qt4 quicktime rar raw readline realmedia reiserfs rle rrdtool rss rtc scanner schroedinger sdl session sftp sftplogging sharedmem skins smp sndfile sockets socks5 speech speex spell spoof-source sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 stream subversion svg swig sysfs sysvipc taglib tagwriting tcpd tcpwrapper tga theora threads tidy tiff timestats tls tomsfastmath tordns transcode truetype udev unicode unix98 urandom usb utempter v4l v4l2 vcd vdr visualization vnc voice volctrl vorbis vpopmail webkit wifi wireshark wma wmf wmp wxwindows x264 xanim xattr xemacs xforms xfs xine xinerama xinetd xml xmp xorg xosd xpm xrender xv xvid xvmc yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 pana sonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa cirrus nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
_="/usr/bin/emerge"
ignoreeof="0"
Comment 4 SpanKY gentoo-dev 2011-10-30 23:10:30 UTC
32bit chroots on a 64bit host work fine.  the warning you refer to is unrelated.
Comment 5 William Hubbs gentoo-dev 2011-11-02 13:44:30 UTC
Fixed in commit 27713e3.

Thanks for the report.