same as with bug 335896 Reproducible: Always Steps to Reproduce: 1. emerge =sys-libs/gpm-1.20.6 2. 3. Actual Results: >>> Emerging (1 of 1) sys-libs/gpm-1.20.6 openpty failed: 'out of pty devices' * gpm-1.20.6.tar.lzma RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: sys-libs/gpm-1.20.6 * REPO: gentoo * USE: elibc_glibc kernel_linux userland_GNU x86 >>> Unpacking source... >>> Unpacking gpm-1.20.6.tar.lzma to /var/tmp/portage/sys-libs/gpm-1.20.6/work * Applying gpm-1.20.5-abi.patch ... [ ok ] * Applying 0001-daemon-use-sys-ioctl.h-for-ioctl.patch ... [ ok ] >>> Source unpacked in /var/tmp/portage/sys-libs/gpm-1.20.6/work >>> Compiling source in /var/tmp/portage/sys-libs/gpm-1.20.6/work/gpm-1.20.6 ... * econf: updating gpm-1.20.6/config/config.sub with /usr/share/gnuconfig/config.sub * econf: updating gpm-1.20.6/config/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=/lib --sysconfdir=/etc/gpm checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for bison... bison -y checking whether ln -s works... yes checking for dvips... /usr/bin/dvips checking for texi2html... /usr/bin/texi2html checking for tex... /usr/bin/tex checking for texindex... /usr/bin/texindex checking for makeinfo... /usr/bin/makeinfo checking for diff... /usr/bin/diff checking for sed... /bin/sed checking for emacs... /usr/bin/emacs checking where to install Emacs Lisp files... Portage 2.2_rc74 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-hardened-r1 i686) ================================================================= System uname: Linux-2.6.34-hardened-r1-i686-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 03 Sep 2010 06:30:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/portage /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 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="bn brx cy dgo eo eu fa gl gu_IN id kk kn_IN kok ks ku mai mn mni my sa_IN sat sd ta_IN tn uz en ca" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl atm berkdb bindist branding bzip2 cairo cli cracklib crypt cups cxx dbus dri fbcondecor fortran gdbm gif gnome gpm hal iconv ipv6 jpeg livecd loop-aes mmx mng modules mudflap ncurses nls nouveau nptl nptlonly opengl openmp pam pcre perl png portaudio pppd python qt3support qt4 readline reflection session socks5 spl sse sse2 ssl sysfs tcpd tiff truetype unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="bn brx cy dgo eo eu fa gl gu_IN id kk kn_IN kok ks ku mai mn mni my sa_IN sat sd ta_IN tn uz en ca" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage tdfx trident vesa via vmware cirrus ast chips i128 i740 imstt radeonhd s3virge tseng v4l vermilion" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 335900 has been marked as a duplicate of this bug. ***
need config.log (and no need to file multiple bugs on the same issue, like bug 335896)
*** Bug 335902 has been marked as a duplicate of this bug. ***
*** Bug 335896 has been marked as a duplicate of this bug. ***
Created attachment 245903 [details] config.log for app-shells/bash-4.0_p37
Created attachment 245904 [details] config.log for sys-libs/gpm-1.20.6
if you need additional config.log for the rest of the packages that become frozen let me know.
config.log attached
guess: is /bin/sh pointing to something else than bash?
Created attachment 245906 [details] detailed config.log for gpm 'bash -x' output
Created attachment 245908 [details] detailed configure output for gpm
just to follow up. /bin/sh points to /bin/bash. I have tried without emacs package without success. any other suggestions?
this needs to be removed, pkg_postinst() { if use livecd; then [ -e "${EROOT}"/usr/bin/emacs ] || ln -s zile "${EROOT}"/usr/bin/emacs fi } it breaks building an actual livecd (which the original reporter is trying here)
See bug 100286.
To add an explanation why I won't remove pkg_postinst from the zile ebuild: /usr/bin/emacs is an eselectable symlink. Nothing prevents a user from linking it to a microemacs variant like /usr/bin/zile, /usr/bin/qemacs, or /usr/bin/me. Therefore packages' configure scripts shouldn't assume that /usr/bin/emacs is GNU Emacs, and especially shouldn't break if it isn't. Besides, they shouldn't even try to automatically detect lispdir, but explicitly set it with configure option --with-lispdir="${SITELISP}/${PN}" (where SITELISP is defined in elisp-common.eclass). In cases like bash that don't even install any Lisp files, configure --without-lispdir should be used.
Reusing this bug as a tracker.
There are 95 packages with the 'emacs' USE flag that could be affected by this, I will gather a list and attach fixes where needed, but just using --with-lispdir=${SITELISP}/${PN}" does not always work. I found sys-app/qingy as an example, that package will hang with default flags which are "econf --disable-emacs" unless you imply --without-lispdir.
Please leave this bug open.
(In reply to comment #17) > There are 95 packages with the 'emacs' USE flag that could be affected by this, > I will gather a list and attach fixes where needed, but just using > --with-lispdir=${SITELISP}/${PN}" does not always work. The USE="emacs" case shouldn't normally be a problem, because it will pull GNU Emacs as dependency, and then /usr/bin/emacs should point to it. What must be checked is packages' behaviour with USE="-emacs" and /usr/bin/emacs pointing to zile (or to another microemacs variant).
Created attachment 246658 [details] Packages calling emacs at build time in spite of USE="-emacs" I've scanned all packages in system,all packages with an emacs USE flag, and a few others that are dependencies of them. In addition to the ones already mentioned, the following packages are problematic: dev-lang/gforth-0.7.0 dev-scheme/bigloo-3.0c_p4 dev-util/desktop-file-utils-0.16 dev-util/global-5.9 dev-util/idutils-4.2 sci-mathematics/agda-1.0.2-r2 sci-mathematics/maxima-5.18.1 sci-mathematics/pari-2.3.4-r1 A log file with the arguments passed to emacs in each case is attached.
All done, therefore closing. Thank you for reporting this bug.