Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378751 - media-libs/freetype misses bzip2 dependency
Summary: media-libs/freetype misses bzip2 dependency
Status: RESOLVED DUPLICATE of bug 384131
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 10:18 UTC by Bernd Waibel
Modified: 2011-10-02 19:11 UTC (History)
2 users (show)

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


Attachments
complete build.log (build.log,7.61 KB, text/plain)
2011-08-14 10:30 UTC, Iain Oliver
Details
complete build.log (build.log,7.61 KB, text/plain)
2011-08-15 10:06 UTC, Bernd Waibel
Details
buid log (media-gfx:splashutils-1.5.4.3-r3:20110820-194243.log,7.61 KB, text/plain)
2011-08-20 19:49 UTC, jms
Details
ebuild environment (environment,110.55 KB, text/plain)
2011-08-20 19:50 UTC, jms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Waibel 2011-08-11 10:18:38 UTC
When USE=truetype is in effect, splashutils fails to link fbtruetype.static due to missing libbz2.a in LDFLAGS. If USE="-truetype" the ebuild works fine. If you call ${CC} manually inside the build directory and add /usr/lib64/libbz2.a to the flags, it builds fine. Unfortunately the binary gets deleted by the Makefile before linking, so linking manually and then continuing using ebuild compile didn't work out for me.

tail -n 50 /var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/temp/build.log

 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
 * Running elibtoolize in: splashutils-1.5.4.3/
 *   Applying portage-1.2.0.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/splashutils-1.5.4.3 ...
make CC=x86_64-pc-linux-gnu-gcc LIB=lib64 STRIP=true 
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -Wl,--hash-style=gnu fbres.c -o fbres
true fbres
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -Wl,--hash-style=gnu usleep.c -o usleep
true usleep
make[1]: Entering directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2   -c -o fbtruetype.o fbtruetype.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2   -c -o messages.o messages.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2   -c -o console.o console.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2   -c -o ttf.o ttf.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2   -c -o luxisri.o luxisri.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2 -Wl,--hash-style=gnu -L/usr/lib64 -o fbtruetype -Wl,--hash-style=gnu -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=generic -I/usr/include/freetype2 -Wl,--hash-style=gnu -L/usr/lib64 -static -o fbtruetype.static -Wl,--hash-style=gnu -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib64/libfreetype.a /usr/lib64/libz.a -lm
/usr/lib64/libfreetype.a(ftbzip2.o): In function `FT_Stream_OpenBzip2':
(.text+0x1c3): undefined reference to `BZ2_bzDecompressInit'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close':
(.text+0x249): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output':
(.text+0x363): undefined reference to `BZ2_bzDecompress'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x50c): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x565): undefined reference to `BZ2_bzDecompressInit'
collect2: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
make: *** [all] Error 2
emake failed



Reproducible: Always

Steps to Reproduce:
1. USE=truetype emerge =media-gfx/splashutils-1.5.4.3-r3
2.
3.
Actual Results:  
build fails with the above error

Expected Results:  
build should succeed

emerge --info =media-gfx/splashutils-1.5.4.3-r3

Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-AMD_Athlon-tm-_7850_Dual-Core_Processor-with-gentoo-2.0.3
Timestamp of tree: Thu, 11 Aug 2011 08:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=generic"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=generic"
DISTDIR="/var/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,--hash-style=gnu"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran fuse gdbm gnutls gpm iconv idn ipv6 livecd minimal mmx modules mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python readline session sse sse2 ssl sysfs tcpd threads udev unicode xorg 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 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/splashutils-1.5.4.3-r3 was built with the following:
USE="fbcondecor gpm mng (multilib) png -hardened -truetype"


The ebuild was run inside a chroot'ed environment in an attempt to create a livecd image. Don't know whether this info is of any relevance. 

The ebuild just built fine a couple of days ago, so maybe this happens because freetype:2 changed dependencies/linking and the new freetype-2.4.6 added bzip2 dependency?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-13 14:59:18 UTC
Please attach the entire build log.
Comment 2 Iain Oliver 2011-08-14 10:30:53 UTC
Created attachment 283285 [details]
complete build.log

Here is a complete build log for splashutils failing to compile because of the missing bz2 link option.
Comment 3 Bernd Waibel 2011-08-15 10:06:33 UTC
Created attachment 283399 [details]
complete build.log

The requested complete build.log for splashutils-1.5.4.3-r3.

When I looked more closely at the build.log, I just noticed that the ebuild is still in the configure phase. Is there a reason for doing the actual compilation inside the configure phase instead of the compile phase?
Comment 4 andreaz 2011-08-15 15:30:10 UTC
Im running in exactly the same error on a freshly installed i386 gentoo.
Removing the use flag truetype (-truetype) will compile splashutils fine, 
but im sure, splashutils will use or need truetype..?
Comment 5 jms 2011-08-20 19:45:02 UTC
have the same problem.
previously add a problem with truetype (Bug 379995 )
and now this one
even using
app-arch/bzip2-1.0.6-r3 with USE="static-lib"
doesn't work nor lafilefixer --justfixit or 
 revdep-rebuild

this ebuild shouldn't be marked as stable
Comment 6 jms 2011-08-20 19:49:44 UTC
Created attachment 284055 [details]
buid log
Comment 7 jms 2011-08-20 19:50:27 UTC
Created attachment 284059 [details]
ebuild environment
Comment 8 jms 2011-08-20 19:52:35 UTC
# emerge --info =media-gfx/splashutils-1.5.4.3-r3
Portage 2.1.10.3 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.12.2-r0, 3.0.3-gentoo-jms-30.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.3-gentoo-jms-30.0-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 20 Aug 2011 17:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise gamerlay-stable x-jms
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en es fr en"
PKGDIR="/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/gamerlay /usr/local/portage/jms"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 ao apm autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus dga dhcpcd directfb dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gdu gif gimp gnutls gphoto2 gpm gstreamer gtk gzip hdri iconv icq icu ieee1394 imagemagick imap imlib ipod ipv6 jabber jpeg jpeg2k kde kipi kontact lame laptop lastfm lcms ldap libcaca libnotify libwww lm_sensor lzma lzo mad maildir matroska mdnsresponder-compat memlimit mhash mikmod mime mmap mmx mng modules motif mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurse ncurses networkmanager nls nptl nptlonly nsplugin nvidia ofx ogg openal openexr opengl openmp oss pam pango pcmcia pcre pdf perl phonon php plasma png policykit ppds pppd projectm pulseaudio python qt3support qt4 quicktime raw readline resolvconf scanner sdl semantic-desktop session smp speex spell sse sse2 ssl ssse3 startup-notification svg sysfs syslog taglib tcpd theora thumbnail tidy tiff truetype udev unicode usb v4l v4l2 vcd vdpau video vim-syntax vorbis webkit wifi x x264 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreesaver xulrunner xv xvid xvmc yahoo zip 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 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump active" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en es fr en" PHP_TARGETS="php5-3 php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge -pqv =media-gfx/splashutils-1.5.4.3-r3
[ebuild  N    ] media-gfx/splashutils-1.5.4.3-r3  USE="fbcondecor gpm mng png truetype -hardened"
Comment 9 jms 2011-08-20 19:57:08 UTC
media-gfx/splashutils-1.5.4.4

works for me
Comment 10 SpanKY gentoo-dev 2011-08-21 16:03:29 UTC
freetype itself should be handling its bzip2 dependency ... there is no checking or dependency handling at all in the current ebuild
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2011-08-21 19:23:59 UTC
What exactly does freetype need to do?  Even with a dependency on bzip2[static-libs?] this still fails.
Comment 12 jms 2011-08-21 20:30:22 UTC
(In reply to comment #11)
> What exactly does freetype need to do?  Even with a dependency on
> bzip2[static-libs?] this still fails.

yes I had the same problem with splashutils-1.5.4.3-r3.
I did try with freetype USE="static-libs" app-arch/bzip2="static-libs" , app-arch/bzip2="static" (with stable bzip2) and app-arch/bzip2="static-libs static"
to no avail

however
it works for
[ebuild   R   ~] app-arch/bzip2-1.0.6-r3  USE="static-libs -static" 0 kB
[ebuild   R    ] media-libs/freetype-2.4.6  USE="X static-libs -auto-hinter -bindist -debug -doc -fontforge -utils" 0 kB
[ebuild   R   ~] media-gfx/splashutils-1.5.4.4  USE="fbcondecor gpm mng png truetype -hardened" 0 kB

why?
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2011-08-22 02:46:48 UTC
because 1.5.4.4 has been patched.  look at the changelog or the three bugs this is a duplicate of.
Comment 14 Peter Volkov (RETIRED) gentoo-dev 2011-10-02 19:11:51 UTC
Patch for splashutils is incomplete. See bug 384131.

*** This bug has been marked as a duplicate of bug 384131 ***