Red Hat Bugzilla – Bug 849778
link GraphicsMagick against lcms2 instead of lcms1
Last modified: 2012-09-17 19:48:39 EDT
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
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.
I second that.
The patch is straightforward and the impact is minimal. Please apply.
GraphicsMagick-1.3.16-5.fc18 has been submitted as an update for Fedora 18.
GraphicsMagick-1.3.16-5.fc17 has been submitted as an update for Fedora 17.
GraphicsMagick-1.3.16-5.fc16 has been submitted as an update for Fedora 16.
if you want any koji buildroot overrides in the meantime, let me know.
* 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:
then log in and leave karma (feedback).
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?
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.
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.
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.
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.