Bug 849778 - link GraphicsMagick against lcms2 instead of lcms1
Summary: link GraphicsMagick against lcms2 instead of lcms1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: GraphicsMagick
Version: rawhide
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-20 20:10 UTC by Gerd v. Egidy
Modified: 2012-09-17 23:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-07 11:34:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to change GM to lcms2 (628 bytes, patch)
2012-08-20 20:10 UTC, Gerd v. Egidy
no flags Details | Diff

Description Gerd v. Egidy 2012-08-20 20:10:50 UTC
Created attachment 605774 [details]
patch to change GM to lcms2

Description of problem:

GraphicsMagick can be linked either against version 1 or version 2 of the little color management system (lcms), but not against both at the same time. If some other program links GraphicsMagick and lcms, it can not link against another version of lcms than GM.

Currently GM is linked agains lcms1. So a program needing GM and lcms2 can not be correctly packaged for Fedora without hacks like statically linking another version of GM, but that goes against the packaging guidelines for good reason. I want to package photivo (http://photivo.org/) which has exactly this problem (see e.g. http://code.google.com/p/photivo/issues/detail?id=58).

This is why I propose to change GM to use lcms2 in a future Fedora release. At best F18, but if that is too late F19.

I have checked all programs needing GM in F18:

[root@f18 ~]# repoquery --whatrequires GraphicsMagick
GraphicsMagick-c++-0:1.3.16-3.fc18.i686
GraphicsMagick-c++-0:1.3.16-3.fc18.x86_64
GraphicsMagick-devel-0:1.3.16-3.fc18.i686
GraphicsMagick-devel-0:1.3.16-3.fc18.x86_64
GraphicsMagick-perl-0:1.3.16-3.fc18.x86_64
dvdauthor-0:0.7.0-7.fc18.x86_64
octave-6:3.6.2-3.fc18.i686
octave-6:3.6.2-3.fc18.x86_64
php-pecl-gmagick-0:1.1.0-0.5.RC2.fc18.x86_64
vdr-skinenigmang-0:0.1.2-8.fc18.x86_64
vdr-text2skin-0:1.3.2-10.fc18.x86_64                                                                                                                     
I have modified GM with the attached patch. Then I downloaded and rebuilt all the mentioned RPMs. I did a short test with each of them. Everything fine.

After that I also checked all of them for the use of lcms:
grep -r lcms ~/rpmbuild/BUILD
Only GM itself showed up. So I'm pretty confident that no program currently in the Fedora repository uses lcms1 or 2.

I also read that GraphicsMagick upstream plans to drop support for lcms1.

So please apply the attached patch, outline what need to be checked before this can be done or propose another solution to package a program needing GM and lcms2.

Comment 1 Thibault North 2012-08-20 20:30:05 UTC
I second that.

The patch is straightforward and the impact is minimal. Please apply.
Thanks,

Comment 2 Fedora Update System 2012-08-21 03:49:00 UTC
GraphicsMagick-1.3.16-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/GraphicsMagick-1.3.16-5.fc18

Comment 3 Fedora Update System 2012-08-21 03:50:03 UTC
GraphicsMagick-1.3.16-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/GraphicsMagick-1.3.16-5.fc17

Comment 4 Fedora Update System 2012-08-21 03:51:14 UTC
GraphicsMagick-1.3.16-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/GraphicsMagick-1.3.16-5.fc16

Comment 5 Rex Dieter 2012-08-21 03:56:05 UTC
if you want any koji buildroot overrides in the meantime, let me know.

Comment 6 Fedora Update System 2012-08-21 04:52:48 UTC
Package GraphicsMagick-1.3.16-5.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing GraphicsMagick-1.3.16-5.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-12333/GraphicsMagick-1.3.16-5.fc18
then log in and leave karma (feedback).

Comment 7 Gerd v. Egidy 2012-08-21 07:35:24 UTC
wow, that was fast. Thank you.

I see that you switched F16 and F17 too. Don't you fear breaking some app a user got built from elsewhere? Or do you think that not likely because there are very few programs out there using GM and lcms?

Comment 8 Rex Dieter 2012-08-21 11:28:43 UTC
oh, you're right, hmmm... it is true nothing in f16/f17 links GM/lcms at the same time, so let's give it a try.

Comment 9 Fedora Update System 2012-09-07 11:31:12 UTC
GraphicsMagick-1.3.16-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-09-07 11:34:41 UTC
GraphicsMagick-1.3.16-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-09-17 23:48:39 UTC
GraphicsMagick-1.3.16-5.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.