[Scons-dev] LaTeX changes to env['PATH'] can break builds

William Deegan bill at baddogconsulting.com
Sun Jan 6 15:44:08 EST 2013


Gary,


On Jan 6, 2013, at 9:30 AM, Gary Oberbrunner <garyo at oberbrunner.com> wrote:


> Someone at my work recently discovered that updating SCons to 2.2.0 breaks his build. The reason is it now puts /usr/local/bin in the PATH (env['PATH']) before /usr/bin (or sth similar). He has a bad version of a utility in /usr/local/bin, which now gets used instead of the right one. I was worried that this might happen. He bisected to find the change that did it, and I've included his analysis below.


I"m looking at that change set, and it's picking up paths from /etc/paths.d, which seems reasonable for a mac.
It's not hardcoded /usr/local/bin.
So likely the issue is that your colleague has a broken tool installed in a location which system config files say tools should be found in.


>

> There are several things we can do:

> 1. do nothing, that's just how it is now.

> 2. make the LaTeX stuff use absolute paths rather than relying on env['PATH']

> 3. Somehow set PATH only for that tool, without mucking with the standard PATH.

>

> I don't like #2, it's ugly. #1 is easiest, but since our goal is to make reproducible builds, modifying the path globally is not ideal. That leaves us with #3. I don't have any ideas off the top of my head for how to handle that; does anyone?


I'd say in your colleague's case, best to have him uninstall the broken tool?
Or is it not that the tool they have installed at that location is not a version which will work with scons?


>

> Which leads me to toolchain revamp. I'm going to write up a message about this shortly; I think it should be one of our highest priority projects for 2013 (along with several others), and I'm willing to take it on.


So are you then thinking, toolchain and python 3.x? Or at least 2.7 with effort to get it to run on 3.x?
(Probably best discussed in another thread)

-Bill


>

> -- Gary

>

> ======================

>

> Yep, it was the TeX stuff:

>

> The first bad revision is:

> changeset: 2554:ac3619647c8e

> user: Robert Managan <managan1 at llnl.gov>

> date: Tue Sep 06 22:18:10 2011 +0000

> summary: Update path information for OSX.

>

> Abbrieviated diff:

>

> warp:scons bash$ hg diff -c 2554

> diff -r 3612f1fa3760 -r ac3619647c8e src/CHANGES.txt

> --- a/src/CHANGES.txt Thu Sep 01 21:40:26 2011 +0000

> +++ b/src/CHANGES.txt Tue Sep 06 22:18:10 2011 +0000

> @@ -185,6 +185,9 @@

>

> - Added support for the bibunits package so we call bibtex on all

> the bu*.aux files.

> +

> + - Add support of finding path information on OSX for TeX applications

> + MacPorts and Fink paths need to be added by the user

>

> --

> Gary

> _______________________________________________

> Scons-dev mailing list

> Scons-dev at scons.org

> http://two.pairlist.net/mailman/listinfo/scons-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20130106/26b1667d/attachment.html>


More information about the Scons-dev mailing list