[Mageia-discuss] Trying to learn a little about packaging
Samuel Verschelde
stormi at laposte.net
Thu Jan 13 09:51:02 CET 2011
Le jeudi 13 janvier 2011 06:07:51, Hoyt Duff a écrit :
> 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/script
> s error: File not found by glob:
> /home/hoyt/rpmbuild/BUILDROOT/rkhunter-1.3.8-1.i386/usr/lib/rkhunter/script
> s/*.pl error: File not found by glob:
> /home/hoyt/rpmbuild/BUILDROOT/rkhunter-1.3.8-1.i386/usr/lib/rkhunter/script
> s/*.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.
>
Hi,
I think this message would have been better send to the mageia-dev mailing
list, which is dedicated to packagers (even if many are subscribed to both
MLs).
Regards
Samuel Verschelde
More information about the Mageia-discuss
mailing list