[Mageia-discuss] Trying to learn a little about packaging

Hoyt Duff hoytduff at gmail.com
Thu Jan 13 06:07:51 CET 2011


I'm trying to learn a little about packaging and was attempting to
build source and binary packages from a tarball with an embedded .spec
file for rkhunter-1.3.8-1 and maybe submit it to Mageia with
appropriate rkhunter.conf tweaks to remove false positives.

Building on Mandriva 2010.2, "rpmbuild -ta" fails with:

<SNIP>
Processing files: rkhunter-1.3.8-1
error: File not found:
/home/hoyt/rpmbuild/BUILDROOT/rkhunter-1.3.8-1.i386/usr/lib/rkhunter
error: File not found:
/home/hoyt/rpmbuild/BUILDROOT/rkhunter-1.3.8-1.i386/usr/lib/rkhunter/scripts
error: File not found by glob:
/home/hoyt/rpmbuild/BUILDROOT/rkhunter-1.3.8-1.i386/usr/lib/rkhunter/scripts/*.pl
error: File not found by glob:
/home/hoyt/rpmbuild/BUILDROOT/rkhunter-1.3.8-1.i386/usr/lib/rkhunter/scripts/*.sh

I contacted the author, who says the rpm will build on Fedora. He
says: "Path error. The .spec file "%define _prefix /usr/local"
(compare with a "./configure --prefix=/usr/local") and in the %files
section "%{_libdir}/%{name}" should pick up "%_prefix". For some
reason it doesn't but then again I never built RPM's on Mandriva...

... and gave me a hack to try that fails also with an error he has
never seen before,
error: Package already exists: %package __restore__

Can someone point me to where in the Mandriva docs I can find info on
what might be going wrong? Thanks.

-- 
Hoyt


More information about the Mageia-discuss mailing list