Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136661 - Building gimp-2.2.10 against libpng-1.2.10 fails
Summary: Building gimp-2.2.10 against libpng-1.2.10 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John N. Laliberte (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 136771 136926 136995 137027 137186 139142 139632 (view as bug list)
Depends on:
Blocks: 139146
  Show dependency tree
 
Reported: 2006-06-13 08:02 UTC by John Ross Hunt
Modified: 2006-07-07 20:10 UTC (History)
15 users (show)

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


Attachments
ebuild log (5531-gimp-2.2.10.log,2.61 KB, text/plain)
2006-06-13 08:06 UTC, John Ross Hunt
Details
Patch for *destroy* functions (gimp-png.patch,483 bytes, patch)
2006-06-15 10:48 UTC, Marcin Gryszkalis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Ross Hunt 2006-06-13 08:02:42 UTC
Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
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/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo http://mirror.mcs.anl.gov/pub/gentoo http://prometheus.cs.wmich.edu/gentoo http://ftp.oregonstate.edu/pub/gentoo"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 7zip S3TC X a52 aac aalib accessibility acl acpi aim alsa amr ao aotuv apache2 applet artworkextra asf asm async audiofile authdaemond authlib automount avahi avi bash-completion beagle berkdb big-tables bitmap-fonts blender-game branding bzip2 cairo calendar cdda cddb cdio cdparanoia cdr cgi chm cli cpudetection crypt css cups curl curlwrappers daap dbus dga directfb discard-path djvu dmi dri dts dv dvd dvdr dvdread dvi edl eds emboss encode enscript epiphany esd evo evolution exif extraengine extrafilters fame fat fbcon ffmpeg fftw firefox flac flatfile foomaticdb fortran fpx gaim ggi gif gimp gimpprint gkrellm glade glut glx gmail gmailtimestamps gnokii gnome gnome-print gnomecanvas gnomedb gnuplot gnutls gpgme gphoto2 gpm grammar gs gstreamer gstreamer010 gtalk gtk gtk2 gtkhtml gtkspell guile h323 hal hfs httpd iconv icq idea imagemagick imap imlib imlib2 inifile innodb input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_vmmouse input_devices_wacom iodbc ipv6 isdnlog jabber jack java javamail javascript jbig jce jfs jit joystick jp2 jpeg jpeg2k kde kqemu lame lcd lcms libcaca libg++ libwww live lm_sensors logitech-mouse lua lzo lzw mad matroska max-idx-128 md5sum mdnsresponder-compat mikmod mime mixer mjpeg mmx mmxext mng modplug mono motif mozcalendar mozdevelop mozilla mozsvg mp3 mp4 mp4live mpeg mpeg2 mplayer msn musepack musicbrainz mysql mysqlfriends mysqli mythtv nautilus ncurses network nfs nls nntp nptl nptlonly nsplugin ntfs ntlm ntlm_unsupported_patch oav objc objc++ ocaml odbc offensive ogg openal opengl openssl oscar osp oss pam pango pcre pda pdflib pdo perl png ppds pppd pri python qemu-fast qt quicktime readline real reflection reiser4 reiserfs resperl roe rogue rss rtc ruby samba sametime sasl scanner sdl session sharedmem sheep skins slang slp smime sndfile snmp softmmu sox speex spell spl sqlite sqlite3 srp sse sse-filters sse2 ssl startup-notification stream svg swat syslog t1lib tcltk tcpd teamarena tetex themes theora thesaurus tidy tiff transcode truetype truetype-fonts type1-fonts udev unicode unzip urandom usb v4l v4l2 vcd vdr video_cards_ati video_cards_fglrx video_cards_v4l video_cards_vesa video_cards_vmware videos vidix vim-pager vim-with-x vlm vmdbmysql vnc vorbis wddx webdav win32codecs wmf wv wxwindows x264 xanim xatrix xext xfs xine xml xmlreader xmlrpc xmlwriter xmms xorg xpm xv xvid xvmc yaepg yahoo zaptel zip zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 John Ross Hunt 2006-06-13 08:06:36 UTC
Created attachment 89045 [details]
ebuild log

Forgot to mention, builds find agains libpng-1.2.8-r1.  Maybe this is fixed in gimp-2.2.11?
Comment 2 Todd Merrill 2006-06-13 20:42:41 UTC
(In reply to comment #1)
> Maybe this is fixed in gimp-2.2.11?

Nope, at least not in my experience.  I get the same errors.
Comment 3 moesasji 2006-06-13 22:31:31 UTC
I had exactly the same error when compiling cups-1.1.23-r7. 
So http://bugs.gentoo.org/show_bug.cgi?id=136346 is a related bug to this one. 

Unfortunately the suggested solution in comment #2 of bug 136346 however does not work for compiling the Gimp. 
Comment 4 Krister Bäckman 2006-06-14 09:35:48 UTC
I get the same error, it's the same on 2.2.10, 2.2.9 and 2.2.8-r1 too.
Comment 5 Krister Bäckman 2006-06-14 10:02:21 UTC
2.2.6-r1 is the same.
Comment 6 Marcin Gryszkalis 2006-06-15 10:48:22 UTC
Created attachment 89259 [details, diff]
Patch for *destroy* functions

With the patch applied it seems to compile and work, could somebody else test it?
Btw, it's against gimp 2.2.10
Comment 7 michel 2006-06-15 12:00:04 UTC
(In reply to comment #6)
> Created an attachment (id=89259) [edit]
> Patch for *destroy* functions
> 
> With the patch applied it seems to compile and work, could somebody else test
> it?
> Btw, it's against gimp 2.2.10
> 

Compiling and working fine with your patch. Thank you!
Comment 8 Todd Merrill 2006-06-15 14:10:52 UTC
(In reply to comment #6)
> Btw, it's against gimp 2.2.10

The patch applies and compiles with Gimp 2.2.11.  I can open and save PNGs with no problems.  Thank you.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-06-15 15:47:45 UTC
*** Bug 136771 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-06-15 15:47:48 UTC
*** Bug 136926 has been marked as a duplicate of this bug. ***
Comment 11 merwan kashouty 2006-06-15 16:48:58 UTC
works here with libpng-1.2.10 and gimp-2.2.10... thanks
Comment 12 merwan kashouty 2006-06-15 16:52:11 UTC
sorry i meant gimp-2.2.11
Comment 13 Francois Chenier 2006-06-15 20:00:52 UTC
Thanks mates. The patch submitted works fine for me too with gimp-2.2.11 and libpng-1.2.10.
Comment 14 Aleksey Lazar 2006-06-16 00:34:47 UTC
What is the proper way to apply this patch? I manually edited the png.c file, and then ran make and make install in /var/tmp/portage/gimp-2.2.11/work/gimp-2.2.11. This worked -- the gimp runs and it's 2.2.11, but emerge -s or esearch tell me that I have 2.2.10 installed as latest version. I found info on diff/patch files, but could not figure out what to do with it. Maybe someone here would be kind and point me in the right direction?

Also, can this fix be added to the portage so the problem does not come up in the future? I had this error in CUPS also. Thank you!
Comment 15 Colin Macdonald 2006-06-16 00:50:29 UTC
Comment #14: the "proper" way is to add whats called an "overlay" and modify the ebuild to apply the patch before compiling.  What you did was bypass the ebuild's install process (thats also why portage does not know about your installed gimp-2.2.11).

If you don't wish to learn about overlays or how to modify ebuilds, then it would probably be best to wait for a friendly dev to modify the in-tree ebuild and close this bug (which I'm sure will happen soon for something high profile like gimp).
Comment 16 michel 2006-06-16 02:56:48 UTC
Another proper way to apply patch without overlay ist:

1. Press ctrl+z after unpacking sources (on emerge)
2. apply patch (copy it to /var/tmp/portage ... plug-in directory, then cd r/tmp/portage ... plug-in directory -> then patch -Np1 -i patch.diff 

After it all you can resume your emerge with fg

its simple and doesnt require any overlay ;)
Comment 17 Francois Chenier 2006-06-16 05:28:00 UTC
(In reply to comment #16)

> After it all you can resume your emerge with fg
> 
> its simple and doesnt require any overlay ;)
> 

Works fine also with ebuild. Emerge as usual. The compilation will eventually fails. Do this ...

1) Patch the source in /var/tmp/package/gimp-2.2.11/work/...
2) #cd /usr/portage/media-gfx/gimp
3) #ebuild gimp-2.2.11.ebuild compile
4) #ebuild gimp-2.2.11.ebuild install
5) #ebuild gimp-2.2.11.ebuild qmerge
and if you want to build the binaries (optional)
6) #ebuild gimp-2.2.11.ebuild package

Doesn't require overlay too.
Comment 18 Patrick McLean gentoo-dev 2006-06-16 06:51:48 UTC
media-gfx/gimp-2.2.11-r1 added with the attached patch, thanks.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-06-16 09:18:12 UTC
*** Bug 136995 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-06-16 14:44:42 UTC
*** Bug 137027 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-06-18 10:12:42 UTC
*** Bug 137186 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-07-04 03:07:25 UTC
*** Bug 139142 has been marked as a duplicate of this bug. ***
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2006-07-07 20:10:28 UTC
*** Bug 139632 has been marked as a duplicate of this bug. ***