Re: [ATrpms-users] Help rebuilding Exim 4.72 src rpm from EL5 for EL4
John Robinson <[email protected]>
| Newsgroups | gmane.linux.redhat.rpm.atrpms.devel,gmane.linux.redhat.rpm.atrpms.general |
|---|---|
| Organization | None; Disorganization: Total |
| Message-ID | <[email protected]> |
On 12/01/2011 18:46, Mike Ridgers wrote: > Hi John, > Just got it to build! > > I found this thread: http://www.directadmin.com/forum/showthread.php?t=38586&page=2 > People trying to do the same thing. > > Quote: > >> During the rpm rebuild of src.rpm on CentOS 4.8, I got the following error due to pcre.h not found: >> >> It is strange, since pcre* package are installed, and pcre.h exists. >> Any idea? Maybe exim.h need to use #include "pcre.h" instead of #include<pcre.h>? >> >> I found a bypass by setting a symbolic link: >> ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h " > > End Quote. > > I ran the " ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h" command as above& that fixed it ! The proper answer is probably to use ./configure --with-pcre=/usr/include/pcre or something like that when building for EL4, i.e. make the spec vary the configure invocation depending on the target distro. > I have just installed http://dl.atrpms.net/all/atrpms-rpm-config-187-1.noarch.rpm as you sugested& have rebuilt it again. > > However when I now go to update Exim: rpm -Uvh exim-4.72-41.RHL4.i386.rpm exim-greylist-4.72-41.RHL4.i386.rpm > > I get : > > error: Failed dependencies: > /etc/pki/tls/certs is needed by exim-4.72-41.RHL4.i386 > /etc/pki/tls/private is needed by exim-4.72-41.RHL4.i386 > > This has to be simple but both the listed directories are already there - I can cd to them !? Something in EL5 specifically provides them, but the equivalent package provides different directories in EL4. Again, looking at the Requires: stuff in the spec file should give guidance - it may also be worth checking the older spec file for 4.69 to see how it handles this. For both of these, ideally we want to fix the 4.72 spec file to build correctly on both EL4 and EL5, and presumably other distros too, which 4.69 did. But you now have a rpm you can install with --nodeps or whatever, which I expect will work perfectly, so I guess you deserve a glass of something celebratory! We probably ought to take any further discussion of this over to atrpms-devel, which I've cc'ed. Cheers, John.