New wine package fails to install. There is no /etc/portage/bashrc but any other package builds and installs just fine, so I guess I don't need one. [ebuild N #] app-emulation/wine-d3d9-2.5:2.5::gentoo USE="X alsa cups (d3d9) dos fontconfig gecko jpeg lcms ldap mono mp3 ncurses netapi nls openal opencl opengl osmesa perl png prelink pulseaudio realtime run-exes samba scanner ssl threads truetype udev udisks xcomposite xml -capi -custom-cflags -gphoto2 -gsm -gstreamer -odbc -oss -pcap (-selinux) {-test} -v4l -xinerama" ABI_X86="(64) -32 (-x32)" LINGUAS="de en en_US es ja -ar -bg -ca -cs -da -el -eo -fa -fi -fr -he -hi -hr -hu -it -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 KiB [...]app-emulation/wine-d3d9-2.5/work/wine-2.5/tools/install-sh -m 644 [...]app-emulation/wine-d3d9-2.5/work/wine-2.5/loader/wine.desktop [...]app-emulation/wine-d3d9-2.5/image//usr/share/wine-d3d9-2.5/applications/wine.desktop * PT_PAX marking -psmr [...]app-emulation/wine-d3d9-2.5/image/usr/lib/wine-d3d9-2.5/bin/wine64 with paxctl * PT_PAX marking -psmr [...]app-emulation/wine-d3d9-2.5/image/usr/lib/wine-d3d9-2.5/bin/wine64 with scanelf * PT_PAX marking -psmr [...]app-emulation/wine-d3d9-2.5/image/usr/lib/wine-d3d9-2.5/bin/wine64-preloader with paxctl * PT_PAX marking -psmr [...]app-emulation/wine-d3d9-2.5/image/usr/lib/wine-d3d9-2.5/bin/wine64-preloader with scanelf * XATTR_PAX marking -psmre [...]app-emulation/wine-d3d9-2.5/image/usr/lib/wine-d3d9-2.5/bin/wine64 with setfattr * XATTR_PAX marking -psmre [...]app-emulation/wine-d3d9-2.5/image/usr/lib/wine-d3d9-2.5/bin/wine64-preloader with setfattr [...]app-emulation/wine-d3d9-2.5/temp/environment: line 4051: no match: [...]app-emulation/wine-d3d9-2.5/image/usr/share/wine-d3d9-2.5/man/pl* * The ebuild phase 'install' has exited unexpectedly. This type of * behavior is known to be triggered by things such as failed variable * assignments (bug #190128) or bad substitution errors (bug #200313). * Normally, before exiting, bash should have displayed an error message * above. If bash did not produce an error message above, it's possible * that the ebuild has called `exit` when it should have called `die` * instead. This behavior may also be triggered by a corrupt bash binary or * a hardware problem such as memory or cpu malfunction. If the problem is * not reproducible or it appears to occur randomly, then it is likely to * be triggered by a hardware problem. If you suspect a hardware problem * then you should try some basic hardware diagnostics such as memtest. * Please do not report this as a bug unless it is consistently * reproducible and you are sure that your bash binary and hardware are * functioning properly. -------------- # emerge --info Portage 2.3.5 (python 2.7.13-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.24-r1, 4.10.10-gentoo-x86_64.1 x86_64) ================================================================= System uname: Linux-4.10.10-gentoo-x86_64.1-x86_64-AMD_FX-tm-4100_Quad-Core_Processor-with-gentoo-2.3 KiB Mem: 8162044 total, 2659632 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Thu, 13 Apr 2017 18:00:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r1::gentoo dev-lang/python: 2.7.13::gentoo, 3.5.3::gentoo dev-util/cmake: 3.8.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.24.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 gentoo-zh location: /var/lib/layman/gentoo-zh sync-type: laymansync sync-uri: git://github.com/microcai/gentoo-zh.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" --quiet-build=y -j5 --load-average=25.85" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5 -l4" 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="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gstreamer gtk iconv infinality ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit posix ppds pulseaudio python qt3support readline sdl seccomp session spell sse sse2 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wxwidgets x264 xattr xcb xml 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en es en-US es-MX es-ES de de-DE ja ja-JP" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es en_US es_MX es_ES de de_DE ja ja_JP" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23 ruby24" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="radeon" XFCE_PLUGINS="trash logout clock" 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.5" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hello again, I was looking closely to the problem and figured out a workaround: The problem was in app-emulation/wine-d3d9-2.5/temp/environment:4046, so... 1. I just commented the for loop (which is related to man pages in some languages: german, polish and another I cannot remember). 2. Manually installed and merged the ebuild. # ebuild /usr/portage/app-emulation/wine-d3d9/wine-d3d9-2.5.ebuild install # ebuild /usr/portage/app-emulation/wine-d3d9/wine-d3d9-2.5.ebuild merge And voilà, it was installed and running.
The difference in the line number of the error: [...]app-emulation/wine-d3d9-2.5/temp/environment: line 4051 [...]app-emulation/wine-d3d9-2.5/temp/environment: line 4046 was due to the LINGUAS variable (My first attempt had my usual setting, i.e., spanish, english, german and japanese support; but for the second one I had manually specified LINGUAS="en_US") However, the for loop is the same, and the workaround is also the same.