Emerge fails when using dash as /bin/sh replacement Builds when using bash To solve this you have 2 options: #1 fix the bashisms in the installation scripts #2 explicitly call /bin/bash instead of /bin/sh in the installation scripts
Please attach the failing build log.
sudo emerge -1v byacc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-util/byacc-20140101::gentoo 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-util/byacc-20140101::gentoo >>> Failed to emerge dev-util/byacc-20140101, Log file: >>> '/var/tmp/portage/dev-util/byacc-20140101/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 1.12, 0.54, 0.25 * Package: dev-util/byacc-20140101 * Repository: gentoo * USE: abi_x86_32 elibc_glibc kernel_linux userland_GNU x86 * FEATURES: installsources preserve-libs sandbox splitdebug userpriv usersandbox >>> -sandbox(setup) >>> +sandbox(unpack) >>> Unpacking source... >>> Unpacking byacc-20140101.tgz to /var/tmp/portage/dev-util/byacc-20140101/work >>> Source unpacked in /var/tmp/portage/dev-util/byacc-20140101/work >>> Preparing source in /var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101 ... * econf: updating byacc-20140101/config.sub with /usr/share/gnuconfig/config.sub * econf: updating byacc-20140101/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --program-prefix=b checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring for linux-gnu checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking version of gcc... 4.9.3 checking for gcc option to accept ANSI C... none needed checking $CC variable... ok checking whether make sets ${MAKE}... yes checking for a BSD compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c checking if filesystem supports mixed-case filenames... yes checking for exctags... no checking for ctags... ctags checking for exetags... no checking for etags... no checking for ctags... yes checking for etags... no checking for tdlint... no checking for lint... no checking for alint... no checking for splint... no checking for lclint... no checking if we must define _GNU_SOURCE... yes checking if _XOPEN_SOURCE really is set... yes checking how to run the C preprocessor... gcc -E checking for fcntl.h... yes checking for working mkstemp... yes checking if you want to check for gcc warnings... no checking if you want to see long compiling messages... yes checking if you want to use dmalloc for testing... no checking if you want to use dbmalloc for testing... no checking if you want to use valgrind for testing... no checking if you want to perform memory-leak testing... no configure: creating ./config.status config.status: creating makefile sed: file /var/tmp/portage/dev-util/byacc-20140101/temp/csIM7TiG/subs-1.sed line 28: unterminated `s' command config.status: creating config.h >>> Source configured. >>> +sandbox(compile) >>> Compiling source in /var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101 ... make -j1 GROFF_NO_SGR=stupid /bin/sh -c "tbl yacc.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >yacc.html /bin/sh -c "tbl yacc.1 | groff -man" >yacc.ps ps2pdf yacc.ps GROFF_NO_SGR=stupid /bin/sh -c "tbl yacc.1 | nroff -Tascii -man | col -bx" >yacc.txt >>> Source compiled. >>> Test phase [not enabled]: dev-util/byacc-20140101 >>> Install byacc-20140101 into /var/tmp/portage/dev-util/byacc-20140101/image/ category dev-util make -j1 DESTDIR=/var/tmp/portage/dev-util/byacc-20140101/image/ install make: *** No rule to make target 'install'. Stop. * ERROR: dev-util/byacc-20140101::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-util/byacc-20140101::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/byacc-20140101::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-util/byacc-20140101/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/byacc-20140101/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101' * S: '/var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101' * Messages for package dev-util/byacc-20140101: * ERROR: dev-util/byacc-20140101::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-util/byacc-20140101::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/byacc-20140101::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-util/byacc-20140101/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/byacc-20140101/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101' * S: '/var/tmp/portage/dev-util/byacc-20140101/work/byacc-20140101'
I'm sorry that this package has no maintainer at the moment, assigning it to maintainer-needed for now. Out of curiosity, can you try emerging dev-util/byacc-20150711 temporarily to see whether they fixed the build system or not? Thank you for your report.
dev-util/byacc-20150711 (In reply to Panagiotis Christopoulos from comment #3) > I'm sorry that this package has no maintainer at the moment, assigning it to > maintainer-needed for now. Out of curiosity, can you try emerging > dev-util/byacc-20150711 temporarily to see whether they fixed the build > system or not? > > Thank you for your report. Ok emerges fine.
amd64 stable
x86 stable
ppc stable
ppc64 stable
arm stable
sparc stable
ia64 stable
Stable on alpha.
Stable for HPPA. Closing.