The compilation is aborted at the documentation building stage. It is pulled as a dependency of xfce4 with "cups" use flag set. Reproducible: Always Steps to Reproduce: 1. ~ # emerge -av xfce4 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] app-text/a2ps-4.14 USE="nls -cjk -emacs -latex -vanilla" 0 kB [ebuild N ] xfce-base/xfprint-4.4.2-r1 USE="cups -debug -doc" 0 kB [ebuild R ] xfce-base/xfce4-4.4.2 USE="alsa cups* oss xscreensaver -minimal" 0 kB Actual Results: Making all in man make[2]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/man' Updating man page a2ps.1 Updating man page card.1 help2man: can't get `--help' info from ../contrib/card make[2]: *** [card.1] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/man' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14' make: *** [all] Error 2 * * ERROR: app-text/a2ps-4.14 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2755: Called die * The specific snippet of code: * make || die "make failed" * The die message: * make failed Expected Results: Compilation success. Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64) ================================================================= System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Fri, 16 May 2008 04:47:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 arts berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo exif fam firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl php png pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg tcpd tiff truetype unicode vorbis xcomposite xinerama xml xorg xscreensaver xv zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I can confirm this for app-text/a2ps-4.14: [...] Making all in man make[2]: Entering directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/man' Updating man page a2ps.1 Updating man page card.1 help2man: can't get `--help' info from ../contrib/card make[2]: *** [card.1] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/man' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14' make: *** [all] Error 2
Julien, I was able to fix it in my case. The error message is somewhat misleading. (or not really verbose..) After the error, I tried to run $ /var/tmp/portage/app-text/a2ps-4.14/work/a2ps-4.14/contrib/card on its own, with the following result: [...]/contrib/card: line 41: mktemp: command not found card: Cannot create temporary dir! $ equery b mktemp [ Searching for file(s) mktemp in *... ] sys-apps/coreutils-6.11 (/bin/mktemp) sys-apps/coreutils-6.11 (/usr/bin/mktemp -> /bin/mktemp) $ file /usr/bin/mktemp /usr/bin/mktemp: broken symbolic link to `/bin/mktemp' Thus, $ ls -l /bin/mktemp ls: cannot access /bin/mktemp: No such file or directory Looks like a bug of sys-apps/coreutils which I'm unable to trace back. Therefore, re-emerging sys-apps/coreutils-6.11 installed /bin/mktemp just fine and fixed the above-mentioned build error for me. This is not an a2ps bug, since $ equery d coreutils app-text/a2ps-4.14 (userland_GNU? >=sys-apps/coreutils-6.10-r1) ... should provide a2ps with an intact /bin/mktemp.
(In reply to comment #2) > Julien, I was able to fix it in my case. > The error message is somewhat misleading. (or not really verbose..) (...) > > Looks like a bug of sys-apps/coreutils which I'm unable to trace back. > > Therefore, re-emerging sys-apps/coreutils-6.11 installed /bin/mktemp just fine > and fixed the above-mentioned build error for me. > > > This is not an a2ps bug, since > > $ equery d coreutils > app-text/a2ps-4.14 (userland_GNU? >=sys-apps/coreutils-6.10-r1) > ... > > should provide a2ps with an intact /bin/mktemp. > Thank you for the feedback John, I encountered the coreutils/mktemp bug when emerging another package (but can't remember which one). Therefore, I confirm the bug is bound to coreutils not providing /bin/mktemp.