Clamav .90 build problems on Mandrake 10.0

As I’ve mentioned, there are a few older Mandrake (now Mandriva) systems that I maintain and one of the packages that I’m frequently rebuilding for those systems is clamantivirus. Well, 0.90 came out recently and on an attempted rebuild from the src. rpm that I acquired from, I got this error message libtool: unrecognized option `–tag=CC’ in the rpm –rebuild process. The process bailed out fairly quickly.

According to this Mandriva wiki page, that may indicate a version problem with libtool (here’s the quote…)

unrecognized option –tag=CXX’ Try libtool –help’ for more information

The libtoolize macro is part of the %configure macro (check with rpm –eval %configure ), and because there is a version mismatch, things will break. Mandriva Linux uses libtool-1.4, while KDE uses libtool-1.5 (or 1.4a?). Version 1.4 doesn’t understand –tag=CXX’, so it breaks.

On top of your specfile, you can define this:

%define __libtoolize /bin/true

When you add this define, libtoolize won’t be run, and all should go well.

So, I modified the specfile, did an rpmbuild -bs pathtospecfile.spec and then did an rpm –rebuild from the generated source rpm and all was happy.

   Send article as PDF   

Similar Posts