Mock and environment variables

Mike McGrath imlinux at gmail.com
Tue Jan 31 15:10:14 UTC 2006


Paul Howarth wrote:

>On Mon, 2006-01-30 at 23:25 -0600, Michael McGrath wrote:
>  
>
>>Does anyone know what environmetn variables Mock uses when building a
>>package?  Specifically I'm interested in PATH
>>    
>>
>
>I'd have thought it'd be the standard "non-root user" PATH, modified by
>any /etc/profile.d/*.sh entries pulled in using BuildRequires. You could
>test it by adding a line "echo PATH is $PATH" in %prep, %build etc. of a
>spec file for something and look in the build.log.
>
>Paul.
>
>  
>
Interesting mock :

export
PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin"

normal user:

PATH="/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mmcgrath/bin"

Not what I'd expected either, it was causing one of my packages to
compile with Mock but not with my normal user :-D

    -Mike




More information about the fedora-extras-list mailing list