Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125942 - media-fonts/font-misc-misc-1.0.0 and font-cursor-misc-1.0.0 postinst failures
Summary: media-fonts/font-misc-misc-1.0.0 and font-cursor-misc-1.0.0 postinst failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-03-12 08:13 UTC by Jose daLuz
Modified: 2006-03-12 19:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose daLuz 2006-03-12 08:13:12 UTC
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
Comment 1 Jose daLuz 2006-03-12 08:40:36 UTC
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
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2006-03-12 09:12:52 UTC
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.
Comment 3 Matteo Azzali (RETIRED) gentoo-dev 2006-03-12 15:39:42 UTC
Same here on ~x86 gcc-4.1 glibc-2.4 portage-2.1_pre6-r1 , 
for font-misc-misc ,font-cursor-misc.
Comment 4 Zac Medico gentoo-dev 2006-03-12 16:26:08 UTC
You can probably use FEATURES="noclean" to work around this until a patch is ready.
Comment 5 Zac Medico gentoo-dev 2006-03-12 19:10:30 UTC
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.