Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249176 - media-libs/libprojectm-1.2.0 + media-libs/ftgl-2.1.3_rc5 - /var/tmp/portage/media-libs/libprojectm-1.2.0/work/libprojectM-1.2.0/Renderer.hpp:27:23: error: FTGL/FTGL.h: No such file or directory
Summary: media-libs/libprojectm-1.2.0 + media-libs/ftgl-2.1.3_rc5 - /var/tmp/portage/m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 249587 250228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-28 16:34 UTC by Kenton Groombridge
Modified: 2008-12-08 09:48 UTC (History)
3 users (show)

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


Attachments
Patch to change include filename (libprojectm-new-ftgl-header.patch,425 bytes, patch)
2008-11-30 14:47 UTC, rinus
Details | Diff
New ebuild (libprojectm-1.2.0.ebuild,807 bytes, text/plain)
2008-11-30 14:48 UTC, rinus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenton Groombridge 2008-11-28 16:34:46 UTC
media-libs/ftgl-2.1.3_rc5 changes one of the include file names and media-libs/libprojectm-1.2.0 doesn't find the file and fails to build.

Reproducible: Always

Steps to Reproduce:
1. Build media-libs/ftgl-2.1.3_rc5
2. Build media-libs/libprojectm-1.2.0
3. media-libs/libprojectm-1.2.0 fails to build.

Actual Results:  
Scanning dependencies of target projectM                                       
[  2%] Building CXX object CMakeFiles/projectM.dir/projectM.o                  
In file included from /var/tmp/portage/media-libs/libprojectm-1.2.0/work/libprojectM-1.2.0/projectM.cpp:59:                                                   
/var/tmp/portage/media-libs/libprojectm-1.2.0/work/libprojectM-1.2.0/Renderer.hpp:27:23: error: FTGL/FTGL.h: No such file or directory                        
In file included from /var/tmp/portage/media-libs/libprojectm-1.2.0/work/libprojectM-1.2.0/Renderer.hpp:28,                                                   
                 from /var/tmp/portage/media-libs/libprojectm-1.2.0/work/libprojectM-1.2.0/projectM.cpp:59:                                                   
/usr/include/FTGL/FTGLPixmapFont.h:29:5: warning: #warning This header is deprecated. Please use <FTGL/ftgl.h> from now.                                      
make[2]: *** [CMakeFiles/projectM.dir/projectM.o] Error 1                      
make[1]: *** [CMakeFiles/projectM.dir/all] Error 2                             
make: *** [all] Error 2                                                        
 *                                                                             
 * ERROR: media-libs/libprojectm-1.2.0 failed.                                 
 * Call stack:                                                                 
 *               ebuild.sh, line   49:  Called src_compile                     
 *             environment, line 2580:  Called cmake-utils_src_compile         
 *             environment, line  617:  Called cmake-utils_src_make            
 *             environment, line  668:  Called die                             
 * The specific snippet of code:                                               
 *           emake "$@" || die "Make failed!";                                 
 *  The die message:
 *   Make failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/libprojectm-1.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libprojectm-1.2.0/temp/environment'.


Expected Results:  
media-libs/libprojectm-1.2.0 builds without an error.

Went to /usr/include/FTGL and created a softlink FTGL.h -> ftgl.h and media-libs/libprojectm-1.2.0 built fine.

emerge --info                                             
Portage 2.1.6_rc2 (default-linux/amd64/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r4 x86_64)                                                    
=================================================================              
System uname: Linux-2.6.27-gentoo-r4-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-glibc2.2.5                                                           
Timestamp of tree: Fri, 28 Nov 2008 15:35:01 +0000                             
app-shells/bash:     3.2_p48                                                   
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                       
dev-lang/python:     2.5.2-r8                                                  
dev-util/cmake:      2.6.2                                                     
sys-apps/baselayout: 2.0.0                                                     
sys-apps/openrc:     0.3.0-r1                                                  
sys-apps/sandbox:    1.2.18.1-r3                                               
sys-devel/autoconf:  2.13, 2.63                                                
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                 
sys-devel/binutils:  2.19                                                      
sys-devel/gcc-config: 1.4.0-r4                                                 
sys-devel/libtool:   2.2.6a                                                    
virtual/os-headers:  2.6.27-r2                                                 
ACCEPT_KEYWORDS="amd64 ~amd64"                                                 
CBUILD="x86_64-pc-linux-gnu"                                                   
CFLAGS="-march=amdfam10 -mtune=amdfam10 -msse3 -O2 -pipe"                      
CHOST="x86_64-pc-linux-gnu"                                                    
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"                                                    
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"                                                         
CXXFLAGS="-march=amdfam10 -mtune=amdfam10 -msse3 -O2 -pipe"                    
DISTDIR="/usr/portage/distfiles"                                               
FEATURES="distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                            
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.uni-c.dk/pub/gentoo/"      
LANG="en_US.UTF-8"                                                             
LC_ALL="en_US.UTF-8"                                                           
LDFLAGS=""                                                                     
LINGUAS="en en_US"                                                             
MAKEOPTS="-j5"                                                                 
PKGDIR="/usr/portage/packages"                                                 
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
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/layman/Spring /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac acpi aften alsa amarok amd64 amrnb arts audiofile bash-completion berkdb binary-drivers bluetooth bzip2 cairo cddb cdparanoia cdr cdrom cracklib crypt css cups curl dbus divx dri dv dvd dvdr dvdread emoticon encode expat fame ffmpeg fftw firefox flac foomaticdb gdbm gif gimpglibc-omitfp glitz glut gzip hal iconv ieee1394 imagemagick imlib iproute2 java javascript joystick jpeg jpeg2k kde kdehiddenvisibility kdeprefix lame libvisual live lm_sensors logitech-mouse lzo mad midi mikmod mjpeg mmx mmxext mng mp2mp3 mp4 mpeg mpeg2 mplayer musicbrainz ncurses network nls normalize nptl nptlonly nsplugin nspr nvidia offensive ogg openal opengl openmp pam pango pcre perl physfs png ppds python qt3 qt3support qt4 quicktime rar readline rtc samba scanner sdl smartcard sound sse sse2 sse3 ssl subtitles svg svgz sysfs syslog tcpd theora threadsafe tiff transcode truetype type1 unicode unzip urandom usb userlocales utempter v4l2 vcd visualization vorbis wav wifi wma wmf wmp xcompositexine xml xorg xpm xscreensaver xulrunner xvid xvmc zip zlib" ALSA_CARDS="emu10k1" 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 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-28 18:05:53 UTC
/usr/include/FTGL/FTGLPixmapFont.h:29:5: warning: #warning This header is
deprecated. Please use <FTGL/ftgl.h> from now.
Comment 2 rinus 2008-11-30 14:47:07 UTC
Created attachment 173874 [details, diff]
Patch to change include filename
Comment 3 rinus 2008-11-30 14:48:10 UTC
Created attachment 173875 [details]
New ebuild
Comment 4 rinus 2008-11-30 14:52:27 UTC
I know this patch gives problems with earlier versions of media-libs/ftgl-2.1.3_rc5
But, it works for me now.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-02 19:48:48 UTC
*** Bug 249587 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2008-12-07 19:01:47 UTC
+  07 Dec 2008; <ssuominen@gentoo.org> libprojectm-1.2.0.ebuild:
+  Fix compilation with >=ftgl-2.1.3_rc5 wrt #249176.

src_unpack() {
	unpack ${A}
	if has_version ">=media-libs/ftgl-2.1.3_rc5"; then
		sed -i -e 's:FTGL.h:ftgl.h:g' "${S}"/Renderer.hpp || die "sed failed."
	fi
}

I know it's a fugly hack but it works now, please report this to upstream.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2008-12-08 04:39:13 UTC
*** Bug 250228 has been marked as a duplicate of this bug. ***