Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469218 - sys-power/cpufrequtils-008-r3: "unexpected operator" error in /usr/libexec/cpufrequtils-change.sh
Summary: sys-power/cpufrequtils-008-r3: "unexpected operator" error in /usr/libexec/cp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 20:01 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2013-05-09 20:21 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 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-05-09 20:01:36 UTC
Thanks to the systemd crap which got added to this package it now emits nice error messages each time its openrc init script gets invoked:

# /etc/init.d/cpufrequtils start
 * Running cpufreq-set --governor ondemand -- ...
/usr/libexec/cpufrequtils-change.sh: 8: [: --governor: unexpected operator
/usr/libexec/cpufrequtils-change.sh: 8: [: ondemand: unexpected operator
/usr/libexec/cpufrequtils-change.sh: 8: [: --: unexpected operator    [ ok ]
# /etc/init.d/cpufrequtils stop
 * Running cpufreq-set --governor performance ...
/usr/libexec/cpufrequtils-change.sh: 8: [: --governor performance: unexpected operator                                                              [ ok ]

# egrep -v "^[[:space:]]*#|^$" /etc/conf.d/cpufrequtils
START_OPTS="--governor ondemand"
STOP_OPTS="--governor performance"


# emerge --info cpufrequtils
Portage 2.2.0_alpha174 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3-asneeded, glibc-2.15-r3, 3.4.44 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.4.44-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2380-with-gentoo-2.2
KiB Mem:     8245360 total,   7961868 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 09 May 2013 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.3.6-r1, 4.5.4, 4.6.4, 4.7.3_pre::poly-c
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo poly-c
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe -finline-functions"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bash_completion.d /etc/bonobo-activation /etc/ca-certificates.conf /etc/cups /etc/dbus-1 /etc/env.d /etc/eselect/compiler /etc/fish /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gtk /etc/gtk-2.0 /etc/hotplug /etc/hotplug.d /etc/htdig /etc/imlib /etc/init.d /etc/iproute2 /etc/libgda-3.0 /etc/ntop /etc/pam.d /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/usb_modeswitch.d /etc/xinetd.d /etc/xml /etc/zsh"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe -finline-functions"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --jobs=1 --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/opt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/poly-c"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdparanoia cdr cli cracklib crypt cxx dbus declarative dts dvd dvdr dvdread emboss encode exif fam ffmpeg flac gdbm gif gmp gnutls gpg gtk iconv idn imagemagick imlib inotify jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png ppds qt3support qt4 quicktime readline rtmp sdl session silc slang smp spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev unicode upower usb vcd vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xulrunner xv xvid xvmc zlib zsh-completion" ABI_X86="64" ALSA_CARDS="emu10k1 hda-intel usb-audio" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Unset:  CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-power/cpufrequtils-008-r3 was built with the following:
USE="-debug (multilib) nls" ABI_X86="64"
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2013-05-09 20:06:54 UTC
Bugs happen, no need to be rude against systemd, systemd has nothing to do with this.
What is your default shell? I suspect it's not bash.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-05-09 20:10:45 UTC
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Mar 11 10:18 /bin/sh -> dash
Comment 3 Fabio Erculiani (RETIRED) gentoo-dev 2013-05-09 20:21:21 UTC
+*cpufrequtils-008-r4 (09 May 2013)
+
+  09 May 2013; Fabio Erculiani <lxnay@gentoo.org> -cpufrequtils-008-r3.ebuild,
+  +cpufrequtils-008-r4.ebuild, files/cpufrequtils-change.sh:
+  fix cpufrequtils-change.sh usage when the default interpreter is not bash,
+  fixes bug #469218
+