Re: Environment variables in RPM installation scripts

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

 



Hi,

Ok, I guess I got my vocabulary wrong.

In my spec file, I want to do some scripting in the %post macro.
However, nothing is being returned to me for the value of $RPM_BUILD_DIR
(or anything else, for that matter), so I'm not able to locate the build
files. When I try to install the RPM I built, I get a "no such file or
directory" error due to (for example) something like this:

%post
do_something $RPM_BUILD_DIR/some_file

Cheers,
David



On Mon, 2006-08-07 at 09:17 +0200, Jos Vos wrote:
> On Mon, Aug 07, 2006 at 04:05:57PM +0900, David Leangen wrote:
> 
> > According to the documentation I read, environment variables such as
> > $RPM_BUILD_DIR should be available to me during the %pre and %post parts
> > of my build.
> 
> What are "%pre" and "%post" parts of the build?  These sections are
> used at install time.
> 

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux