Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445144 - app-portage/gentoolkit-dev: ebump isn't POSIX compliant
Summary: app-portage/gentoolkit-dev: ebump isn't POSIX compliant
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-29 05:30 UTC by Richard Yao (RETIRED)
Modified: 2013-01-31 05:20 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 Richard Yao (RETIRED) gentoo-dev 2012-11-29 05:30:04 UTC
I decided to try ebump after modifying the zfs-shutdown initscript, but it did not work as I expected:

richard@desktop ~/devel/gentoo-x86/sys-fs/zfs $ ls -l
total 81
-rw-r--r-- 1 richard richard 9036 Nov 14 16:57 ChangeLog
drwxr-xr-x 2 richard richard    5 Nov 14 16:54 CVS
drwxr-xr-x 3 richard richard    6 Sep 18 18:30 files
-rw-r--r-- 1 richard richard 4507 Nov 14 16:54 Manifest
-rw-r--r-- 1 richard richard  548 Aug 22 02:51 metadata.xml
-rw-r--r-- 1 richard richard 2552 Aug 31 14:07 zfs-0.6.0_rc10-r1.ebuild
-rw-r--r-- 1 richard richard 2549 Sep 18 18:33 zfs-0.6.0_rc11.ebuild
-rw-r--r-- 1 richard richard 2549 Nov 14 16:57 zfs-0.6.0_rc12.ebuild
-rw-r--r-- 1 richard richard 2544 Aug 31 14:07 zfs-9999.ebuild
richard@desktop ~/devel/gentoo-x86/sys-fs/zfs $ ebump zfs-0.6.0_rc10-r1.ebuild
/usr/bin/ebump: 92: [: zfs: unexpected operator
/usr/bin/ebump: 107: [: 1: unexpected operator
/usr/bin/ebump: 114: [: 0.6.0_rc10: unexpected operator
/usr/bin/ebump: 166: [: cvs: unexpected operator
zfs-0.6.0_rc10-r$[rev+1].ebuild
/usr/bin/ebump: 182: [: y: unexpected operator
/usr/bin/ebump: 239: [: y: unexpected operator
/usr/bin/ebump: 256: [: n: unexpected operator
/usr/bin/ebump: 279: [: y: unexpected operator
richard@desktop ~/devel/gentoo-x86/sys-fs/zfs $ ls -l
total 81
-rw-r--r-- 1 richard richard 9036 Nov 14 16:57 ChangeLog
drwxr-xr-x 2 richard richard    5 Nov 14 16:54 CVS
drwxr-xr-x 3 richard richard    6 Sep 18 18:30 files
-rw-r--r-- 1 richard richard 4507 Nov 14 16:54 Manifest
-rw-r--r-- 1 richard richard  548 Aug 22 02:51 metadata.xml
-rw-r--r-- 1 richard richard 2552 Aug 31 14:07 zfs-0.6.0_rc10-r1.ebuild
-rw-r--r-- 1 richard richard 2552 Nov 29 00:11 zfs-0.6.0_rc10-r$[rev+1].ebuild
-rw-r--r-- 1 richard richard 2549 Sep 18 18:33 zfs-0.6.0_rc11.ebuild
-rw-r--r-- 1 richard richard 2549 Nov 14 16:57 zfs-0.6.0_rc12.ebuild
-rw-r--r-- 1 richard richard 2544 Aug 31 14:07 zfs-9999.ebuild
Comment 1 Richard Yao (RETIRED) gentoo-dev 2012-11-29 05:41:40 UTC
richard@desktop ~ $ emerge --info
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.6.7 x86_64)
=================================================================
System uname: Linux-3.6.7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.1
Timestamp of tree: Wed, 28 Nov 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage zfs sabayon udev-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/google/chrome/google-chrome /usr/share/config /usr/share/gnupg/qualified.txt"
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/terminfo"
CXXFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news noinfo parallel-fetch parallel-install protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=core2 -mtune=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/zfs /var/lib/layman/sabayon /var/lib/layman/udev-overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran gdbm gif gles gnutls gpm iconv ipv6 java jpeg kde kipi lcms libnotify lzma mad mmap mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 sse3 ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ALSA_CARDS="hda-intel hpet hrtimer" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump" CAMERAS="*" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="mips mips64 mips64el mipsel x86_64" QEMU_USER_TARGETS="arm armeb mips mipsel sparc sparc64 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-11-29 05:42:56 UTC
I should also mention that I use dash.
Comment 3 SpanKY gentoo-dev 2013-01-31 05:18:00 UTC
since the code attempts to be POSIX, might as well fix that rather than just give up and change the shebang