Skip to contentSkip to conversation

bin/mklib: Clear CDPATH to avoid damaging expand_archive output

PATCH Dan Nicholson 4 participants 6 messages Feb 22, 2010 1 message not in the archive

lore
Share & tools
lore

Dan Nicholson

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Keith Packard

The bash 'cd' command tends to emit random stuff to stdout when the CDPATH variable is set, so clear it to keep extra filenames from being emitted from the expand_archive function, which would otherwise cause mklib to fail.

Congratulations on wading in to mklib, it's not a friendly place. :)

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

#5 lore raw
In reply to a message not in the archive
Quoted 6 lines · Keith Packard

The bash 'cd' command tends to emit random stuff to stdout when the CDPATH variable is set, so clear it to keep extra filenames from being emitted from the expand_archive function, which would otherwise cause mklib to fail.

Please commit to both master and mesa_7_7_branch. Thanks.

-Brian

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

#2 lore raw
In reply to Dan Nicholson
Quoted 9 lines · Dan Nicholson
Quoted 6 lines · Keith Packard

The bash 'cd' command tends to emit random stuff to stdout when the CDPATH variable is set, so clear it to keep extra filenames from being emitted from the expand_archive function, which would otherwise cause mklib to fail.

Congratulations on wading in to mklib, it's not a friendly place. :)

Heh, I guess you've never had to debug libtool then. mklib is a walk in the park by comparison.

-Brian

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

#3 lore raw
Quoted 7 lines · Brian Paul
Quoted 6 lines · Dan Nicholson
Quoted 5 lines · Keith Packard

The bash 'cd' command tends to emit random stuff to stdout when the CDPATH variable is set, so clear it to keep extra filenames from being emitted from the expand_archive function, which would otherwise cause mklib to fail.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Congratulations on wading in to mklib, it's not a friendly place. :)

Heh, I guess you've never had to debug libtool then. mklib is a walk in the park by comparison.

In fairness though, I haven't had to debug libtool for several years now, because it always seems to work, whereas mklib seems to encounter new and exciting failures all the time. Oh well. :)

Cheers,
Daniel

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

#4 lore raw
In reply to Brian Paul
Quoted 7 lines · Brian Paul
Quoted 6 lines · Dan Nicholson
Quoted 5 lines · Keith Packard

The bash 'cd' command tends to emit random stuff to stdout when the CDPATH variable is set, so clear it to keep extra filenames from being emitted from the expand_archive function, which would otherwise cause mklib to fail.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Congratulations on wading in to mklib, it's not a friendly place. :)

Heh, I guess you've never had to debug libtool then.  mklib is a walk in the park by comparison.

Sorry, didn't mean to imply that it's simplicity is not a virtue. On the other hand, it doesn't get a ton of love, so it tends to be pretty incoherent. libtool debugging is an absolute nightmare, but thankfully it's been a long time since most people had to deal with that.

--
Dan

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

#6 lore raw
In reply to Brian Paul
Quoted 2 lines

Please commit to both master and mesa_7_7_branch. Thanks.

mesa_7_7_branch doesn't use 'cd' in mklib.

Signature · 1 line
[email protected]

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev