On Jan 4, 5:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

Hi Kiran,

> If I describe my setup, it might seem less uncommon than you might
> have previously thought.
>
> Mine is a 64-bit box on a network consisting mostly of 32-bit
> machines. On my machine, /usr/bin is locally mounted, and there is a
> local 64-bit gcc there.
>
> But /usr/local is NFS mounted, and there is a 32-bit gcc in /usr/local/
> bin for the benefit of the benighted masses. Persuading my sysadmin to
> instead install a local 32-bit gcc on every single 32-bit machine in
> the department is not going to happen.

I understand, but providing 32 bit compilers to 64 bit machines seems
a little silly. At least in the setups I have run we had different NFS
exports for 32 and 64 bit Linux boxen.

> So I have to switch rather than fight. My $PATH has /usr/bin ahead of /
> usr/local/bin, so ordinarily (and even in SCons if I force it to
> import my PATH environment variable) this causes no problems.
>
> But SCons defaults not to importing any environment variables, which
> means it has to come up with its own guess for the path. And what it
> comes up with on my box is:
>    /usr/local/bin:/opt/bin:/bin:/usr/bin
> I have no idea why. There isn't even a directory /opt/bin on my
> system! This might be some sort of hard-coded default (either in SCons
> or in the RHEL configs somewhere).

SCons is at fault: From local/lib/scons-0.97/SCons/Platform/posix.py

    if not env.has_key('ENV'):
        env['ENV']        = {}
    env['ENV']['PATH']    = '/usr/local/bin:/opt/bin:/bin:/usr/bin'


> Anyway, I'm able to manually patch the relevant SConstruct files to
> get around this, so it's not a high priority for me to get this fixed.
> But I suspect that sooner or later, someone else will run into this if
> nothing is done about it.

So as a solution I would suggest to import ENV into the PolyBoRi SCons
build system. Feel free to submit a patch for it.

> Kiran

I am also attaching the same into to #1553.

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to