Step 1: # rm -fr /var/cache/edb/dep Step 2: # equery m app-portage/java-ebuilder /usr/lib/portage/python3.6/ebuild.sh: line 245: __export_funcs_var: invalid indirect expansion * app-portage/java-ebuilder [gentoo] Maintainer: heroxbd@gentoo.org (Benda Xu) Upstream: Remote-ID: gentoo/java-ebuilder ID: github Homepage: https://github.com/gentoo/java-ebuilder Location: /usr/portage/app-portage/java-ebuilder Keywords: 0.1:0: Keywords: 0.2:0: ~amd64 Keywords: 9999:0: License: GPL-2 # emerge --info Portage 2.3.38 (python 3.6.5-final-0, default/linux/amd64/17.1, gcc-8.1.0, glibc-2.27-r3, 4.16.11-gentoo.x86_64 x86_64) ================================================================= System uname: Linux-4.16.11-gentoo.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.4.1 KiB Mem: 6112292 total, 918684 free KiB Swap: 6291452 total, 6240764 free Head commit of repository gentoo: 61a451b940e2eb57db4227c6dffc8ca0e13e24b1 sh dash 0.5.10.2 ld GNU gold (Gentoo 2.30 p2 2.30.0) 1.15 ccache version 3.4.2 [disabled] app-shells/bash: 5.0_alpha::local-repo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.14-r2::gentoo, 3.6.5-r1::gentoo dev-util/ccache: 3.4.2::local-repo dev-util/cmake: 3.11.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r2::gentoo sys-devel/gcc: 8.1.0-r3::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r3::gentoo sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git sync-user: portage priority: -1000 eclass-overrides: local-repo local-repo location: /usr/local/portage masters: gentoo Installed sets: @local ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--color=n --keep-going --oneshot" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS="https://mirrors.163.com/gentoo http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" LINGUAS="zh_CN" MAKEOPTS="V=1 -j5" PKGDIR="/var/portage/packages" PORTAGE_BZIP2_COMMAND="lbzip2" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9T0" 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 acl amd64 audit berkdb bzip2 cli crypt cxx dbus dri egl fortran gdbm gles2 iconv icu ipv6 jpeg modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre pic png policykit pulseaudio readline seccomp ssl systemd tcpd unicode vdpau vim-syntax wayland xattr zlib" ABI_X86="64 32 x32" ALSA_CARDS="hda-intel" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 532790 [details, diff] don't use internal variable ECLASS
(In reply to iGentoo from comment #1) > Created attachment 532790 [details, diff] [details, diff] > don't use internal variable ECLASS Looks good. The ECLASS variable is specified by PMS, so it's a good idea to use a different name. However, I am not able to reproduce the "invalid indirect expansion" message with bash-5.0. Maybe it's only triggered by your installed instance of 5.0_alpha::local-repo.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=6a738002397ab9cfe1ff02571ffb4cddb596544a commit 6a738002397ab9cfe1ff02571ffb4cddb596544a Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-01-22 03:38:14 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-01-23 02:41:56 +0000 inherit: use local -x ECLASS (bug 676014) Use local -x ECLASS, and also make __export_funcs_var a local variable, since this is simpler than managing these variables as globals (eliminates PECLASS and prev_export_funcs_var variables). As an additional benefit, this prevents interference from ebuild variables as reported in bug 656354 for the ECLASS variable. Bug: https://bugs.gentoo.org/656354 Bug: https://bugs.gentoo.org/676014 Signed-off-by: Zac Medico <zmedico@gentoo.org> bin/ebuild.sh | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-)