[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: mock not processing /etc/profile.d/*, not a login shell?
- From: Michael E Brown <Michael_E_Brown dell com>
- To: Discussion of Fedora build system <fedora-buildsys-list redhat com>
- Subject: Re: mock not processing /etc/profile.d/*, not a login shell?
- Date: Mon, 3 Dec 2007 17:55:03 -0600
On Mon, Dec 03, 2007 at 04:38:10PM -0700, Orion Poplawski wrote:
> Michael E Brown wrote:
> >
> >When we exec() rpmbuild, we do so with a clean environment. If you wish
> >to include dependencies, the proper way to do that is from the specfile.
>
> One could argue though that it should exec rpmbuild within a login shell
> so that it picks up settings from /etc/profile.d/* within the chroot
> environment.
Indeed. One could argue that.
At this point, I would defer to Jesse, who has more experience in this
specific area.
I was merely trying to point out why the old mock behaviour was a bug
(leaking env vars from host=>chroot).
The patch to change the rpmbuild to be a login shell would not be a
large one, and I am sort of on the fence about it. (Minor input would be
that env. vars from /etc/profile.d/ seem like a poor way to do this,
there seem to be lots of better ways.)
--
Michael
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]