Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175569 - media-libs/freetype-2.3.4 fails to emerge because of recursive PATH references in ft2demos
Summary: media-libs/freetype-2.3.4 fails to emerge because of recursive PATH reference...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 14:04 UTC by email_deleted_GqKU
Modified: 2007-05-10 16:32 UTC (History)
1 user (show)

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


Attachments
ft2demos-2.3.4-Temporarily_corrects_recursive_PATH.patch (ft2demos-2.3.4-Temporarily_corrects_recursive_PATH.patch,444 bytes, patch)
2007-04-22 14:09 UTC, email_deleted_GqKU
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description email_deleted_GqKU 2007-04-22 14:04:52 UTC
With media-libs/freetype-2.3.4 (and 2.3.3), the emerge fails because ft2demos (not installed by previous ebuilds) seems to contain a problem in "ft2demos-2.3.4/graph/x11/rules.mk, line 35" (well, it seems to work for most people, so I guess the problem comes from another part of my system...).


From my emerge log:
###########################################################

[...]

i686-pc-linux-gnu-ranlib /var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/objs/.libs/libfreetype.a
creating /var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/objs/libfreetype.la
(cd /var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/objs/.libs && rm -f libfreetype.la && ln -s ../libfreetype.la libfreetype.la)
/var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/graph/x11/rules.mk:35: *** Recursive variable `PATH' references itself (eventually).  Stop.

!!! ERROR: media-libs/freetype-2.3.4 failed.

###########################################################


In the problematic file, at line 35, if I replace "$(PATH)", by "/sbin:/bin:/usr/sbin:/usr/bin", then freetype seems to be emerged correctly (I'll post the short patch, although this surely is only a temporary patch).


From the same part of the log:
###########################################################

[...]

i686-pc-linux-gnu-ranlib /var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/objs/.libs/libfreetype.a
creating /var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/objs/libfreetype.la
(cd /var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/objs/.libs && rm -f libfreetype.la && ln -s ../libfreetype.la libfreetype.la)
i686-pc-linux-gnu-gcc -c  -march=pentium4 -O2 -pipe -fno-strict-aliasing -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -I../freetype-2.3.4/builds/unix -I../freetype-2.3.4/builds/unix -I/var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/include -I/var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/src -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o /var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/obj/ftlint.o /var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/src/ftlint.c
i686-pc-linux-gnu-gcc -c  -march=pentium4 -O2 -pipe -fno-strict-aliasing -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -I../freetype-2.3.4/builds/unix -I../freetype-2.3.4/builds/unix -I/var/tmp/portage/media-libs/freetype-2.3.4/work/freetype-2.3.4/include -I/var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/src -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o /var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/obj/common.o /var/tmp/portage/media-libs/freetype-2.3.4/work/ft2demos-2.3.4/src/common.c

[...]

###########################################################


I had a similar problem with dev-lang/perl-5.8.8-r2 (see bug #171171 for a few more informations about the problem, notably in the entry for the patch)...

My root $PATH has not changed: the generic "/sbin:/bin:/usr/sbin:/usr/bin"...


My `emerge --info`:
###########################################################

# emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r4 i686)
=================================================================
System uname: 2.6.20-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 22 Apr 2007 07:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps y"
FEATURES="ccache distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS=" ftp://ftp.proxad.net/mirrors/ftp.gentoo.org http://gentoo.mirror.sdv.fr http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.easynet.nl/mirror/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa ao apache2 asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cdr cjk cli cracklib crypt ctype cups curl dba dbx dga directfb divx dri dts dvd dvdr exif fam fbcon ffmpeg firefox flac flash foomaticdb freewnn ftp gd gdbm gif gmedia gmp gnutls gpm gtk gtk2 icecast iconv imagemagick imlib innodb ipv6 isdnlog java jikes jpeg kde kdeenablefinal kerberos krb4 lame ldap libg++ libnotify libwww m17n-lib mad maildir matroska memlimit mhash midi mikmod mime ming mmx mng mp3 mpeg mplayer musepack mysql ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl php pic png posix ppds pppd pulseaudio python qt qt3 qt4 quicktime readline realmedia reflection sasl scanner sdl session shout simplexml sndfile soap sockets socks5 speex spell spl sqlite sse sse2 ssl svg svga tcltk tcpd theora tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb utempter vcd vhosts vorbis win32codecs wmf wmp wxwindows x264 x86 xml xml2 xorg xosd xpm xprint xsl xv xvid zlib {USE}" ALSA_CARDS="emu10k1 intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx radeon vesa vga"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

###########################################################
Comment 1 email_deleted_GqKU 2007-04-22 14:09:17 UTC
Created attachment 116990 [details, diff]
ft2demos-2.3.4-Temporarily_corrects_recursive_PATH.patch

Temporary patch... (as said in the original report, I simply expand $PATH...)

Note that since ft2demos is an independant tarball extracted in $WORKDIR, and not $S, you'll have to cd into "${S}/../ft2demos-${PV}" (well, "${S}/.." is enough for the 2.3.4 version, but it will cause problems when bumping the version), before patching, and cd back into ${S}, just after.
Comment 2 email_deleted_GqKU 2007-05-10 16:32:57 UTC
See https://bugs.gentoo.org/show_bug.cgi?id=126231#c12

Sorry about this.