Re: Mock and environment variables

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

 



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

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux