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

P. Christeas p_christ at hol.gr
Thu Jan 13 08:41:46 CET 2011


On Thursday 13 January 2011, Hoyt Duff wrote:
> ... 
> 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.

(by just looking at your mail, no deeper look at rkhunter or else)

The prefix should be "/usr", and not explicitly defined in the project's spec. 
Reason: all software that is installed through distro packages goes to /usr. 
All other that installs through "./install.sh" or custom hacks goes to 
"/usr/local"
So, make sure that "/usr/local" is _not_ the path passed to ./configure and 
used to install files onto.




-- 
Say NO to spam and viruses. Stop using Microsoft Windows!


More information about the Mageia-discuss mailing list