[Xorp-hackers] Problems with Mkdir

Ben Greear greearb at candelatech.com
Fri Dec 4 09:18:18 PST 2009


On 12/04/2009 09:09 AM, Bruce Simpson wrote:
> Ben Greear wrote:
>> On 12/04/2009 06:28 AM, Bruce Simpson wrote:
>>> ...and promptly backed out again, the cure is worse than the disease.
>>> :-(
>> Well, try compiling it on Linux. The problem happened every time for me
>> (first build attempt works, the rest fail until 'obj' is blown away.
>>
>> Did you try my code as I posted, ie w/out the 'fixups' ?
>
> I did not -- mkdirs() looked like a mis-spelling of makedirs(), so this
> code wouldn't have run anyway.

It seemed to work for me, but I didn't check too close.  I'll make sure it can
build from clean objs dir as well.

> I can try to check something in which works for you, but it would be
> good to know if the problem is in SCons.
>
> It would be great if you could look into it, and let me know if Mkdir()
> is known to have changed between r3842 and the current 1.2.0 snapshot.
>
> Using the ActionFactory, looks like SCons expects methods to be able to
> deal with lists.
>
> Are you able to update Python and/or SCons, or is this a major hassle
> for you?

I don't want to use non-standard stuff if at all possible.  Even if I can
get it working, it will be a major disadvantage for other users.

> Python 2.6 seems to be a reasonable baseline these days (it's
> production, and is over a year old).
> SCons, as always, is a moving target.

We just need to code to older releases and add work-arounds as needed.
If things like running from build-dir doesn't work on older releases,
that's not a problem.

Xorp is hard enough to develop already, without throwing a bunch of
external dependencies that can't easily be met with 'yum install ...'
or 'apt-get install ...'

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list