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

Re: Environment variables in RPM installation scripts


The build dir was an example. I guess what I really need is the source.

I want to apply a post-installation patch.

Are you suggesting that I put my patch file with the %files in a known location and use it from there?

I don't really want to install the patch file as part of the installation... All I want to do is something like:

patch -p0 < my_patch_file

How would you do this?

Thanks for the comments!

On Aug 7, 2006, at 16:35, Jos Vos wrote:

On Mon, Aug 07, 2006 at 04:24:47PM +0900, David Leangen wrote:

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. [...]

Why/how should the *build* dir be available at *install* time?
All files you need at install time should be in the package.

--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

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