Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450610 - media-libs/ming-0.4.5 does not support giflib-5
Summary: media-libs/ming-0.4.5 does not support giflib-5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords: PATCH
: 538872 551410 (view as bug list)
Depends on:
Blocks: giflib-5 544556
  Show dependency tree
 
Reported: 2013-01-06 18:32 UTC by SpanKY
Modified: 2016-07-03 10:40 UTC (History)
10 users (show)

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


Attachments
Patch to fix use of giflib5 at both configure and build time (ming-0.4.4-giflib5.patch,2.40 KB, patch)
2013-02-15 03:32 UTC, Andrew John Hughes
Details | Diff
ming-0.4.5-Fix-compilation-with-giflib-5.patch (ming-0.4.5-Fix-compilation-with-giflib-5.patch,4.35 KB, patch)
2014-11-14 16:33 UTC, Julian Ospald
Details | Diff
emerge --info (emerge-info.txt,6.15 KB, text/plain)
2016-01-11 17:37 UTC, Jeff Kowalczyk
Details
build.log (build.log,47.82 KB, text/plain)
2016-01-11 17:38 UTC, Jeff Kowalczyk
Details
ming-9999.ebuild (ming-9999.ebuild,2.07 KB, text/plain)
2016-01-12 15:49 UTC, Helmut Jarausch
Details
ming-0.4.5-giflib-5.0-and-5.1-compat.patch (ming-0.4.5-giflib-5.0-and-5.1-compat.patch,4.85 KB, patch)
2016-01-26 10:47 UTC, Jonathan Scruggs (RETIRED)
Details | Diff
ming-0.4.5-giflib-5-compat.patch (ming-0.4.5-giflib-5.1-compat.patch,4.85 KB, patch)
2016-01-26 11:16 UTC, Jonathan Scruggs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2013-01-06 18:32:00 UTC
after installing giflib-5.0.x, ming can no longer locate the lib

checking for PrintGifError in -lgif... no
checking for DGifOpen in -lungif... no
checking for PrintGifError in -lungif... no
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
Comment 1 Andrew John Hughes 2013-02-15 03:32:08 UTC
Created attachment 338944 [details, diff]
Patch to fix use of giflib5 at both configure and build time
Comment 2 Andrew John Hughes 2013-02-15 03:32:53 UTC
The attached patch fixes the problem.  configure was looking for PrintGifError which no longer exists.  Switching to DGifOpen (as the ungif test uses) fixes this and presents a number of build errors which were easily fixed by using the new open API calls.
Comment 3 Andrew John Hughes 2013-02-15 03:33:46 UTC
# ldd /usr/lib/libming.so
	linux-vdso.so.1 (0x00007fff82fff000)
	libpng15.so.15 => /usr/lib64/libpng15.so.15 (0x00007f8521c21000)
	libgif.so.6 => /usr/lib64/libgif.so.6 (0x00007f8521a17000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f8521719000)
	libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f852145f000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f8521249000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f8520e94000)
	libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f8520c84000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8522103000)
Comment 4 Julian Ospald 2014-11-14 16:32:26 UTC
https://github.com/libming/libming/pull/43
Comment 5 Julian Ospald 2014-11-14 16:33:57 UTC
Created attachment 389310 [details, diff]
ming-0.4.5-Fix-compilation-with-giflib-5.patch
Comment 6 Pacho Ramos gentoo-dev 2014-11-14 20:17:03 UTC
As this is maintainer-needed, you can of course go ahead and finally fix it in the tree. Thanks a lot for the patch :)
Comment 7 Julian Ospald 2014-11-15 20:24:22 UTC
https://github.com/libming/libming/pull/43
Comment 8 Andrew John Hughes 2015-02-05 16:40:14 UTC
This fix is a pre-requisite for the one in 538872. Why has the dependency been removed?
Comment 9 Andrew John Hughes 2015-02-05 16:40:51 UTC
This fix is a pre-requisite for the one in 538872. Why has the dependency been removed?
Comment 10 Andrew John Hughes 2015-02-05 17:42:55 UTC
Anyway, full patch for both GifLib 5.0 and 5.1 submitted upstream:

https://github.com/libming/libming/pull/47
Comment 11 SpanKY gentoo-dev 2015-02-16 08:00:36 UTC
*** Bug 538872 has been marked as a duplicate of this bug. ***
Comment 12 hal 2015-08-26 13:16:54 UTC
(In reply to Andrew John Hughes from comment #10)
> Anyway, full patch for both GifLib 5.0 and 5.1 submitted upstream:
> 
> https://github.com/libming/libming/pull/47

Merged: https://github.com/libming/libming/commit/e25e329009f870c024099db5ff4bd9678c212ff2
Comment 13 Jeff Kowalczyk 2016-01-11 17:36:21 UTC
media-libs/giflib-0.5.1 version bump 2016-01-08 c3f8638 in portage triggers media-libs/ming-0.4.5 preserved-rebuild, which fails, build.log attached.

Upstream ming-0.4.6 and ming-0.4.7 releases should support newer giflib, can we get those imported?

http://libming.org/Releases
Comment 14 Jeff Kowalczyk 2016-01-11 17:37:44 UTC
Created attachment 422574 [details]
emerge --info
Comment 15 Jeff Kowalczyk 2016-01-11 17:38:16 UTC
Created attachment 422576 [details]
build.log
Comment 16 Helmut Jarausch 2016-01-12 15:48:20 UTC
The GIT version builds fine here - see the attached ebuild
Comment 17 Helmut Jarausch 2016-01-12 15:49:54 UTC
Created attachment 422692 [details]
ming-9999.ebuild
Comment 18 Martin von Gagern 2016-01-25 07:14:42 UTC
(In reply to Jeff Kowalczyk from comment #13)
> media-libs/giflib-0.5.1 version bump 2016-01-08 c3f8638 in portage triggers
> media-libs/ming-0.4.5 preserved-rebuild, which fails, build.log attached.

I see the same. Took me a while to find this bug report here, since its subject doesn't mention GifErrorString which is where the build actually failed for me:

checking for GifErrorString in -lgif... yes
checking for PrintGifError in -lgif... no
checking for DGifOpen in -lungif... no
[…]
/var/tmp/portage/media-libs/ming-0.4.5/work/ming-0.4.5/src/libming.h:85:44: error: too few arguments to function ‘GifErrorString’
  fprintf(stderr, "\nGIF-LIB error: %s.\n", GifErrorString());
                                            ^
Comment 19 Jonathan Scruggs (RETIRED) gentoo-dev 2016-01-26 10:47:53 UTC
Created attachment 423908 [details, diff]
ming-0.4.5-giflib-5.0-and-5.1-compat.patch

Official patch from upstream. Please test in overlays if you want a stable version and not the live master branch.
Comment 20 Jonathan Scruggs (RETIRED) gentoo-dev 2016-01-26 10:51:55 UTC
Oh, the patch includes the fixes already in this patch that's in the official tree:
ming-0.4.5-gif-error.patch

This is why the patch is labeled 5.0 and 5.1 compat.
Comment 21 Jonathan Scruggs (RETIRED) gentoo-dev 2016-01-26 11:16:14 UTC
Created attachment 423910 [details, diff]
ming-0.4.5-giflib-5-compat.patch

Whoops. Wrong version of the patch. Sorry. Here's the one actually for ming 0.4.5.
Comment 22 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-27 16:42:04 UTC
*** Bug 551410 has been marked as a duplicate of this bug. ***
Comment 23 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-27 16:48:16 UTC
Fixed in 0.4.7.