From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020809 Description of problem: The shipping ImageMagic Source RPM for psyche fails at package time with orphened files. Mostly stuff for the -devel rpm Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. get ImageMagick SRPM 2. rpm -ivh same 3. rpmbuild -ba path/to/ImageMagick.spec Actual Results: RPM build errors: Installed (but unpackaged) file(s) found: /usr/X11R6/include/X11/magick/magick/PreRvIcccm.h /usr/X11R6/include/X11/magick/magick/api.h /usr/X11R6/include/X11/magick/magick/attribute.h /usr/X11R6/include/X11/magick/magick/blob.h /usr/X11R6/include/X11/magick/magick/cache.h /usr/X11R6/include/X11/magick/magick/cache_view.h /usr/X11R6/include/X11/magick/magick/classify.h /usr/X11R6/include/X11/magick/magick/compress.h /usr/X11R6/include/X11/magick/magick/delegate.h /usr/X11R6/include/X11/magick/magick/draw.h /usr/X11R6/include/X11/magick/magick/error.h /usr/X11R6/include/X11/magick/magick/gem.h /usr/X11R6/include/X11/magick/magick/image.h /usr/X11R6/include/X11/magick/magick/list.h /usr/X11R6/include/X11/magick/magick/magic.h /usr/X11R6/include/X11/magick/magick/magick.h /usr/X11R6/include/X11/magick/magick/magick_config.h /usr/X11R6/include/X11/magick/magick/module.h /usr/X11R6/include/X11/magick/magick/monitor.h /usr/X11R6/include/X11/magick/magick/quantize.h /usr/X11R6/include/X11/magick/magick/registry.h /usr/X11R6/include/X11/magick/magick/render.h /usr/X11R6/include/X11/magick/magick/semaphore.h /usr/X11R6/include/X11/magick/magick/timer.h /usr/X11R6/include/X11/magick/magick/utility.h /usr/X11R6/include/X11/magick/magick/version.h /usr/X11R6/include/X11/magick/magick/widget.h /usr/X11R6/include/X11/magick/magick/xwindow.h /usr/X11R6/lib/ImageMagick/delegates.mgk /usr/X11R6/lib/ImageMagick/type-ghostscript.mgk /usr/X11R6/lib/ImageMagick/type-solaris.mgk /usr/X11R6/lib/ImageMagick/type-windows.mgk /usr/X11R6/lib/ImageMagick/type.mgk /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/perllocal.pod Expected Results: RPMS I can install. Additional info: The new maintainer for the package should look into this. It's an easy enough fix to the spec file, I'm sure. Heck, I'll probably have a patch later today.
Created attachment 77524 [details] Nearly fixed spec
OK, attached a specfile that does everything except a post install/uninstall fix to the system's perllocal.pod files. Good luck, and my the new owner (not me!) give it a final fix.
*** Bug 74755 has been marked as a duplicate of this bug. ***
*** Bug 73624 has been marked as a duplicate of this bug. ***
*** Bug 75277 has been marked as a duplicate of this bug. ***
*** Bug 75336 has been marked as a duplicate of this bug. ***
As I mentioned in 75336, I created a patch for the spec file which seemed to work. Since then, I made some more changes since the magick/image.h file assumed the inclusion of <stdlib.h> and <stdio.h> (and hence didn't work with gcc-3.2), and decided to upgrade to the 5.4.9-1 source at the same time which required updating some of the previous RH patches for IM. The paths for ImageMagick includes have always bothered me somewhat in the RedHat packaging - the idea of having a /usr/X11R6/include/X11/magick/magick <- yes two magicks seems wrong. My patches and new spec file put all the C IM headers in /usr/X1R6/include/X11/magick, and puts the main C++ header there and the other C++ headers in /usr/X11R6/include/X11/magick/Magick++. I patched the Magick-config files to return the appropriate paths: Magick-config --cppflags returns /usr/X11R6/include/X11 so that #include <magick/api.h> works as in the examples, and Magick++-config --cppflags returns /usr/X11R6/include/X11/magick so that #include <Magick++.h> and #include <Magick++/Image.h> work as in the examples. I will upload the patches and new spec file here, but if you want to have a look at the new srpm, you can get it from here: ftp://ftp.cim.mcgill.ca/pub/people/ericb/rpm/SRPMS/ImageMagick-5.4.9.1-1.src.rpm
Created attachment 80044 [details] tarball of new IM patches and spec file
*** Bug 76844 has been marked as a duplicate of this bug. ***
Also the binary RPM ImageMagick-devel is missing some header files (magick_config.h, api.h and possibily others).