After updating to gcc-4.1.0 and glibc-2.4 I am running an emerge -e world. During this I got the following errors: * Checking /usr/share/fonts/misc for useless files ... [ ok ]>>> Original instance of package unmerged safely. * FONT_DIRS is empty. The ebuild should set it to at least one subdir of /usr/share/fonts. !!! ERROR: media-fonts/font-misc-misc-1.0.0 failed. Call stack: ebuild.sh, line 1538: Called pkg_postinst ebuild.sh, line 1272: Called x-modular_pkg_postinst x-modular.eclass, line 332: Called setup_fonts !!! FONT_DIRS is empty. The ebuild should set it to at least one subdir of /usr/share/fonts. !!! If you need support, post the topmost build error, and the call stack if relevant. !!! FAILED postinst: 1 and * FONT_DIRS is empty. The ebuild should set it to at least one subdir of /usr/share/fonts. !!! ERROR: media-fonts/font-cursor-misc-1.0.0 failed. Call stack: ebuild.sh, line 1538: Called pkg_postinst ebuild.sh, line 1272: Called x-modular_pkg_postinst x-modular.eclass, line 332: Called setup_fonts !!! FONT_DIRS is empty. The ebuild should set it to at least one subdir of /usr/share/fonts. !!! If you need support, post the topmost build error, and the call stack if relevant. !!! FAILED postinst: 1 emerge --info Portage 2.1_pre6 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-ck5 x86_64) ================================================================= System uname: 2.6.15-ck5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1, 2.16.91.0.3, 2.16.91.0.5, 2.16.91.0.6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -ffriend-injection" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="autoconfig ccache distlocks metadata-transfer nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Add media-fonts/font-adobe-utopia-75dpi-1.0.1 to the list: * Checking /usr/share/fonts/75dpi for useless files ... [ ok ]>>> Original instance of package unmerged safely. * FONT_DIRS is empty. The ebuild should set it to at least one subdir of /usr/share/fonts. !!! ERROR: media-fonts/font-adobe-utopia-75dpi-1.0.1 failed. Call stack: ebuild.sh, line 1538: Called pkg_postinst ebuild.sh, line 1272: Called x-modular_pkg_postinst x-modular.eclass, line 332: Called setup_fonts !!! FONT_DIRS is empty. The ebuild should set it to at least one subdir of /usr/share/fonts. !!! If you need support, post the topmost build error, and the call stack if relevant. !!! FAILED postinst: 1
I was hoping someone would file this by the time I checked my bugmail :) Portage 2.1_pre6 causes this. Portage guys: FONT_DIRS is being set in preinst, but seems to get unset somewhere along the way to postinst (in x-modular.eclass). I looked over the release notes/news and didn't see anything there that should cause this, so I'm assuming for now this is a Portage bug. If not, let us know what needs to change.
Same here on ~x86 gcc-4.1 glibc-2.4 portage-2.1_pre6-r1 , for font-misc-misc ,font-cursor-misc.
You can probably use FEATURES="noclean" to work around this until a patch is ready.
Released in 2.1_pre6-r2. (In reply to comment #2) > I was hoping someone would file this by the time I checked my bugmail :) > Portage 2.1_pre6 causes this. > > Portage guys: FONT_DIRS is being set in preinst, but seems to get unset > somewhere along the way to postinst (in x-modular.eclass). Thanks for tracking this down. The problem is due to sharing of ${T} between the package being merged and the old instance of the same version. As a temporary fix, I've disabled unmerge phase cleaning when ${T} is shared in this manner.