Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378677 - media-gfx/enblend-4.0 compilation fails w/o libpng-1.5
Summary: media-gfx/enblend-4.0 compilation fails w/o libpng-1.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 16:37 UTC by b4max
Modified: 2011-08-12 21:59 UTC (History)
5 users (show)

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


Attachments
corrected ebuild (enblend-4.0.ebuild,1.96 KB, text/plain)
2011-08-10 16:40 UTC, b4max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description b4max 2011-08-10 16:37:48 UTC
media-gfx/enblend-4.0 compilation fails if media-libs/libpng is not yet on version 1.5 . Note that this is not yet in the tree! It looks as if media-gfx/enblend-4.0 received a new patch to compile with libpng-1.5, but the patch breaks the compilation under the older libpng-1.4.

Reproducible: Always

Steps to Reproduce:
1. Try to emerge =media-gfx/enblend-4.0
Actual Results:  
Compilation fails

Expected Results:  
Compilation succeeds

emerge --info:
Portage 2.1.10.10 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.1-gentoo x86_64)
=================================================================
System uname: Linux-3.0.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 10 Aug 2011 09:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
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.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.3
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de pt pt_BR"
MAKEOPTS="-j4"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="64bit X acl acpi ads aes-ni alsa amd64 amr apache2 apng bash-completion berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups curl cxx dbus declarative desktopglobe device-mapper dhcpcd dia diff dri edd emacs exif expat ffmpeg fortran g711 g722 g7221 gcj gd gdbm gif glibc-omitfp gnutls gpm gps gpu gs gsm gstreamer gudev h323 hdaps hdri health hwdb iconv ilbc imagemagick imap inkjar ipv6 irc iscsi java javascript jpeg jpeg2k kde keymap kvm lapack ldap libnotify lvm lxc lzma mmx mmxext mng modules mp3 mudflap multilib natspec ncurses networkmanager nfs nls nokia nptl nptlonly nsplugin ntp objc objc++ objc-gc ogg openexr opengl openmp pam pcre pdf perl plasma pnat png policykit pppd python qemu qemu-ifup qt3support qt4 rdesktop readline samba scanner sdl secure-delete semantic-desktop session shadow sift slp smi smp socks5 speex spell sql srtp sse sse2 ssl ssse3 startup-notification subversion svg sysfs syslog system-sqlite tcpd theora threads tiff tpm truetype udev unicode unlock-notify usb v4l v4l2 video virt-network virtualbox vmware_guest_windows vnc vorbis webkit wifi wmf x264 xft xinerama xml xmpp xorg xv zlib" ALSA_CARDS="hda-intel" 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 directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="garmin" INPUT_DEVICES="keyboard synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de pt pt_BR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="net avision HP" USERLAND="GNU" VIDEO_CARDS="intel" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 b4max 2011-08-10 16:40:42 UTC
Created attachment 282837 [details]
corrected ebuild

This ebuild checks whether libpng really is >= version 1.5 already and only applies the patch if it is
Comment 2 b4max 2011-08-10 16:46:18 UTC
The actual compilation error:

make[4]: Entering directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src/vigra_impex'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-bmp.o -MD -MP -MF .deps/libvigra_impex_a-bmp.Tpo -c -o libvigra_impex_a-bmp.o `test -f 'bmp.cxx' || echo './'`bmp.cxx
mv -f .deps/libvigra_impex_a-bmp.Tpo .deps/libvigra_impex_a-bmp.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-byteorder.o -MD -MP -MF .deps/libvigra_impex_a-byteorder.Tpo -c -o libvigra_impex_a-byteorder.o `test -f 'byteorder.cxx' || echo './'`byteorder.cxx
mv -f .deps/libvigra_impex_a-byteorder.Tpo .deps/libvigra_impex_a-byteorder.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-codecmanager.o -MD -MP -MF .deps/libvigra_impex_a-codecmanager.Tpo -c -o libvigra_impex_a-codecmanager.o `test -f 'codecmanager.cxx' || echo './'`codecmanager.cxx
mv -f .deps/libvigra_impex_a-codecmanager.Tpo .deps/libvigra_impex_a-codecmanager.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-gif.o -MD -MP -MF .deps/libvigra_impex_a-gif.Tpo -c -o libvigra_impex_a-gif.o `test -f 'gif.cxx' || echo './'`gif.cxx
mv -f .deps/libvigra_impex_a-gif.Tpo .deps/libvigra_impex_a-gif.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-hdr.o -MD -MP -MF .deps/libvigra_impex_a-hdr.Tpo -c -o libvigra_impex_a-hdr.o `test -f 'hdr.cxx' || echo './'`hdr.cxx
mv -f .deps/libvigra_impex_a-hdr.Tpo .deps/libvigra_impex_a-hdr.Po
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..     -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe  -MT iccjpeg.o -MD -MP -MF .deps/iccjpeg.Tpo -c -o iccjpeg.o iccjpeg.c
mv -f .deps/iccjpeg.Tpo .deps/iccjpeg.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-imageinfo.o -MD -MP -MF .deps/libvigra_impex_a-imageinfo.Tpo -c -o libvigra_impex_a-imageinfo.o `test -f 'imageinfo.cxx' || echo './'`imageinfo.cxx
mv -f .deps/libvigra_impex_a-imageinfo.Tpo .deps/libvigra_impex_a-imageinfo.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-jpeg.o -MD -MP -MF .deps/libvigra_impex_a-jpeg.Tpo -c -o libvigra_impex_a-jpeg.o `test -f 'jpeg.cxx' || echo './'`jpeg.cxx
mv -f .deps/libvigra_impex_a-jpeg.Tpo .deps/libvigra_impex_a-jpeg.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..     -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -pthread -I/usr/include/OpenEXR   -O2 -march=native -mtune=native -fomit-frame-pointer -pipe --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -fopenmp -MT libvigra_impex_a-png.o -MD -MP -MF .deps/libvigra_impex_a-png.Tpo -c -o libvigra_impex_a-png.o `test -f 'png.cxx' || echo './'`png.cxx
png.cxx: In member function ‘void vigra::PngDecoderImpl::init()’:
png.cxx:331:87: error: invalid conversion from ‘png_byte**’ to ‘char**’
png.cxx:331:87: error:   initializing argument 5 of ‘png_uint_32 png_get_iCCP(const png_struct*, const png_info*, char**, int*, char**, png_uint_32*)’
png.cxx: In member function ‘void vigra::PngEncoderImpl::finalize()’:
png.cxx:600:63: warning: deprecated conversion from string constant to ‘char*’
png.cxx:600:63: error: invalid conversion from ‘vigra::ArrayVector<unsigned char, std::allocator<unsigned char> >::value_type*’ to ‘char*’
png.cxx:600:63: error:   initializing argument 5 of ‘void png_set_iCCP(png_struct*, png_info*, char*, int, char*, png_uint_32)’
In file included from png.cxx:55:0:
png.cxx: In constructor ‘vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)’:
png.cxx:206:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
make[4]: *** [libvigra_impex_a-png.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src/vigra_impex'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/enblend-4.0/work/enblend-enfuse-4.0-753b534c819d'
make: *** [all] Error 2
emake failed
Comment 3 b4max 2011-08-10 16:52:51 UTC
This is most likely related to bug#355893.
Comment 4 Anton Bolshakov 2011-08-11 23:05:09 UTC
The same problem here. The libpng-1.5 patch must not be applied with currently stable libpng-1.4.

Samuli, please fix it.
Comment 5 .:deadhead:. 2011-08-12 15:18:15 UTC
(In reply to comment #1)
> Created attachment 282837 [details]
> corrected ebuild
> 
> This ebuild checks whether libpng really is >= version 1.5 already and only
> applies the patch if it is

Same problem here, thanks b4max for your fix: it works ;)


cheers
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2011-08-12 15:46:52 UTC
workaround added to tree. will push the real fix to upstream asap...
Comment 7 Anton Bolshakov 2011-08-12 21:59:45 UTC
Thanks for the quick resolution.

No offence, but I suggest not to touch stable ebuilds in future. Nobody wants to see stable tree broken. Instead, all changes should be done in -r1 revision if possible, especially with regards to sensitive stuff such as libpng.