On Thu, Jul 22, 2004, Rangarajan, Mukund (Cognizant) wrote:

Mukund,

> Is it possible to change the PATH value when executing "openpkg
> rpmbuild" [...]
> 
your assumption of PATH being controlled by OpenPKG during the build
process is correct. We introduced a "sane build environment" in OpenPKG
1.1 because we did not want the build to depend on an arbitrary user
environment. Without this added sanity the whole build process was much
less predictable and reliable. We tried hard to isolate OpenPKG from the
OS and to not let the build process pick up things from the system.

> If I print the PATH value ("echo $PATH") within the spec file of a component
> (within the %build or %install steps), the value is different from the
> environemnt PATH value.
> 
> I assume that this is because the value within the spec file is set during
> Openpkg installation. Is this a correct assumption? Is it possible to override
> this value? If so, how?
> 
You cannot pass environment settings from the user's shell into the
build process. This works as designed. However, you can set any shell
variable inside the spec file and you can try to override certain
variables in rpmmacros. Start looking at %l_sane_env and find it
depends on %l_build_path which is the place to hack.

--
[EMAIL PROTECTED], Cable & Wireless
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to