[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem: CVS RPM package relocation incomplete

From: Martin Roehrig
Subject: RE: Problem: CVS RPM package relocation incomplete
Date: Fri, 20 Dec 2002 11:36:05 +0100

Sorry for the follow-up to my own posting, but I just forgot to mention that of
course I used the spec file that is created by configure / make from
included in the cvs 1.11.2 source code distribution.

Maybe there is one of the original writers of this out there who
could give me a hint?

Best regards

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf Of
> Martin Roehrig
> Sent: Tuesday, December 17, 2002 11:41 AM
> To: CVS-Mailingliste (Info)
> Subject: Problem: CVS RPM package relocation incomplete
> I tried to make a RPM package from the CVS 1.11.2 sources and was mostly
> successfull without problems.
> However playing around a bit I found that it is not fully relocatable, as the
> paths used in the %post and %preun install time scripts are fixed to the
> location where they where at *build* time (of the package), even if I use a
> different --prefix option at *install* time.
> Here is the part of the spec file I'm refering to:
>   %post
>   /sbin/install-info /%{_infodir}/ /%{_infodir}/dir
>   /sbin/install-info /%{_infodir}/ /%{_infodir}/dir
>   %preun
>   if [ $1 = 0 ]; then
>   # uninstall the info reference in the dir file
>   /sbin/install-info --delete /%{_infodir}/ /%{_infodir}/dir
>   /sbin/install-info --delete /%{_infodir}/ /%{_infodir}/dir
>   fi
> Apparently the problem is that %{_infodir} is only a build time macro and
> therefore these paths are fixed after the package is built and RPMs path
> substitution works only on the %files section, not on the install scripts.
> I read the whole Maximum RPM document (by RedHat) and some other material but
> obviously I am not yet experienced enough in RPM package building to imagine a
> solution to that problem.
> Is there somebody who could give me a hint how to fix that?
> Best regards
> Martin
> _______________________________________________
> Info-cvs mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]