libreoffice-l10n 'compiles' but fails at install phase with: * ERROR: app-office/libreoffice-l10n-5.1.0.3::gentoo failed (install phase): * eshopts_pop: unbalanced push * * Call stack: * ebuild.sh, line 133: Called src_install * environment, line 1932: Called get_version_component_range '1-2' * environment, line 1082: Called get_all_version_components '5.1.0.3' * environment, line 966: Called eshopts_pop * environment, line 645: Called die * The specific snippet of code: * estack_pop eshopts s || die "${FUNCNAME}: unbalanced push"; This causes other conflicts involving libreoffice which cannot be resolved until this package is installed. Solution for now: --exclude='app-office/libreoffice' Reproducible: Always Steps to Reproduce: 1. Sync 2. Unkeyword app-office/libreoffice-l10n and app-office/libreoffice if necessary (also set python_single_target_python3_4 USE flag) 3. emerge libreoffice Actual Results: Does not install. Expected Results: Should install. Portage 2.2.27 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.9.3, glibc-2.21-r2, 4.1.12-gentoo-limelight x86_64) ================================================================= System uname: Linux-4.1.12-gentoo-limelight-x86_64-Intel-R-_Core-TM-_i7-5930K_CPU_@_3.50GHz-with-gentoo-2.2 KiB Mem: 32831428 total, 5174216 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 26 Feb 2016 04:15:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.20.5::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://tatsh/gentoo-portage priority: -1000 jamiel-gentoo-overlay location: /var/lib/layman/jamiel-gentoo-overlay masters: gentoo priority: 0 tatsh-overlay location: /var/lib/layman/tatsh-overlay masters: gentoo priority: 1 java location: /var/lib/layman/java masters: gentoo priority: 2 vortex location: /var/lib/layman/vortex masters: gentoo priority: 3 srcshelton location: /var/lib/layman/srcshelton masters: gentoo priority: 4 Installed sets: @ansible, @bashcomp, @beanstalk, @cdr, @chrome, @clang, @compass, @cups, @dracut, @driverside, @firefox, @gimp, @git, @grub, @ibus, @icedtea, @icewm, @kde4, @kde4-devel, @kdevelop, @libimobiledevice, @logrotate, @media, @misc, @mlocate, @mupen64plus, @mysql, @php, @php-xdebug, @pidgin, @portage-dev, @portage-utilities, @postgresql, @python, @rar, @rk-vpn, @rutorrent, @shellcheck, @skype, @ssh, @stepmania, @tatshnet, @tmux, @vagrant, @virtualbox, @vlc, @wine, @x11, @x11-misc, @xirvik-vpn ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /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="-O2 -pipe -march=native -fomit-frame-pointer -ggdb" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ rsync://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,--as-needed" MAKEOPTS="-j13" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi aes alsa amd64 avx avx2 bash-completion bluetooth branding bzip2 cairo cdio cjk cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss exif fam ffmpeg flac fma3 fortran gdbm gif glamor gpm iconv idn ipv6 jemalloc jpeg kde kipi lcms libnotify mad mmx mmxext modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds qt3support qt4 readline seccomp session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 svg syslog systemd tcpd tiff truetype udev udisks unicode upower vim-syntax vorbis wxwidgets x264 xattr xcb xcomposite xinerama xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="crypt crypt-gpg crypt-loop gensplash lvm ssh-client systemd" 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" 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 3.4" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Related
Created attachment 426598 [details] build log
Created attachment 426600 [details] environment
Hi, Same here with python_single_target_python3_5 USE flag, with these errors: >>> Install libreoffice-l10n-5.1.0.3 into /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/image/ category app-office /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment: line 657: estack_push: command not found /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment: line 657: estack_push: command not found /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment: line 646: estack_pop: command not found * ERROR: app-office/libreoffice-l10n-5.1.0.3::gentoo failed (install phase): * eshopts_pop: unbalanced push * * Call stack: * ebuild.sh, line 133: Called src_install * environment, line 1927: Called get_version_component_range '1-2' * environment, line 1083: Called get_all_version_components '5.1.0.3' * environment, line 967: Called eshopts_pop * environment, line 646: Called die * The specific snippet of code: * estack_pop eshopts s || die "${FUNCNAME}: unbalanced push"; * * If you need support, post the output of `emerge --info '=app-office/libreoffice-l10n-5.1.0.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-l10n-5.1.0.3::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment'. * Working directory: '/var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/work' * S: '/var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/work' * QA Notice: command not found: * * /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment: line 657: estack_push: command not found * /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment: line 657: estack_push: command not found * /var/tmp/portage/app-office/libreoffice-l10n-5.1.0.3/temp/environment: line 646: estack_pop: command not found
looks to me like some kind of environment over ride is going on .. as the required commands are in your environment file.. where are you setting your use flags? are you using pre-command line arguments such as USE="example" emerge ...? which is not recommended and dangerous...
Hi, I have only this line in my /etc/portage/package.use/myolduse.conf app-office/libreoffice bluetooth branding cups dbus gtk java kde opengl vba vlc webdav For app-office/libreoffice-l10n I have "en es fr" as LINGUAS and nothing more. Deactivating Linguas is the same result.
(In reply to Andrew Udvare from comment #3) > Created attachment 426600 [details] > environment it appears your environment is corrupted .. should look like example ..working environment above
Created attachment 426668 [details] working-environment here is my environment which includes all of eutils.eclass.. yours has only partial eutils.eclass .. lots of functions missing .. is your tree up to date? missing is estack_pop estack_push for starters .. these are essential to the functions which are not working.. or shown as not found
I have /etc/portage/bashrc: post_src_unpack() { if ! type epatch_user > /dev/null 2>&1; then local names="epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop" source <(awk "/^# @FUNCTION: / { p = 0 } /^# @FUNCTION: (${names// /|})\$/ { p = 1; } p { print }" /usr/portage/eclass/eutils.eclass) fi if [[ -d "${S}" ]]; then pushd "${S}" 2>/dev/null 2>&1 epatch_user popd 2>/dev/null 2>&1 else epatch_user fi for name in $names; do unset $name done } Is there a better way to do this (force every ebuild to run epatch_user)?
Indeed the cause is was having /etc/portage/bashrc. But I still want to know if there's an adjutment I need in that file (or elsewhere) to force every ebuild to run epatch_user? I found this script in the Gentoo Wiki a while ago.
EAPI=6 includes automatic support.. for epatch or its new equivalent you should set this up only for those ebuilds that need it not for all emerges .. as it appears to interfere with any build using eutils.eclass (same issue your related bug?)
it maybe the unset loop is blowing away the portion of the eutils.eclass items listed .. remove it from the script .. the local variables should lose their scope when the block exits ..
some one with wiki access needs to fix this bashrc to remove the unset loop in the wiki https://wiki.gentoo.org/wiki//etc/portage/patches i.e. for name in $names; do unset $name done
Hi, I moved my /etc/portage/bashrc and tried, it worked, thanks. Now, I would like to know if I can delete /etc/portage/bashrc or if not, what do I have to put on it... My /etc/portage/bashrc have this: pre_src_prepare() { if ! type epatch_user > /dev/null 2>&1; then local names="epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop" source <(awk "/^# @FUNCTION: / { p = 0 } /^# @FUNCTION: (${names// /|})\$/ { p = 1; } p { print }" /usr/portage/eclass/eutils.eclass) fi epatch_user for name in $names; do unset $name done } I never touched this file, so I don't understand why is causing problems... Thanks.
confirmed that the unset loop causes removal of a portion of the eclass from the environment
this applies to EAPI=6 builds calling eutils.eclass .. there is a newer version of this bashrc script on the wiki .. recently changed because of this issue elsewhere (bug #568640)
this applies to EAPI=6 builds and perhaps others calling eutils.eclass .. there is a newer version of this bashrc script on the wiki .. recently changed because of this issue elsewhere (bug #568640)
New version of pre_src_prepare() in the Wiki works for me.
*** Bug 582570 has been marked as a duplicate of this bug. ***
*** Bug 583094 has been marked as a duplicate of this bug. ***