Closed Bug 1021375 Opened 11 years ago Closed 11 years ago

Tooltool doesn't work on (at least) windows c-c

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glandium, Assigned: sfink)

References

Details

Attachments

(1 file)

comm-central has tooltool setup, but no manifest. Since I wanted to try out mozmake on comm-central, I added a manifest, and the build failed with: Cannot execute python, exiting program finished with exit code 1 elapsedTime=0.208000 ========= Finished 'sh c:/builds/moz2_slave/tb-try-c-cen-w32-0000000000000/tools/scripts/tooltool/tooltool_wrapper.sh ...' failed https://tbpl.mozilla.org/php/getParsedLog.php?id=41157755&tree=Thunderbird-Try
From a quick look, I'd say this is the problem (from tooltool_wrapper.sh): if [ ! -x "$TT_CMD" ]; then echo "Cannot execute $TT_CMD, exiting" exit 1 (TT_CMD is "python"). So this requires an absolute path, which seems kind of odd. Either that should be fixed (python *is* in $PATH in that log), an absolute path should be threaded through everything, or the invocation should be tooltool_wrapper.sh ... "$(which python)" ... instead of just using 'python'. The 'python' comes from buildbot-configs/mozilla/thunderbird_config.py.
I'd probably go for something like this.
Attachment #8435496 - Flags: review?(mshal)
Assignee: nobody → sphink
Status: NEW → ASSIGNED
The thing is... the python that comes from buildbot-configs/mozilla/thunderbird_config.py is also python on m-c.
Ah! I see what the difference is! there is a python directory in the source directory on m-c. On c-c, it's in the mozilla/ subdirectory. So in one case, we're just lucky and not in the other.
Heh. It's a good(?) thing directories are executable. :-)
Blocks: 1021538
Comment on attachment 8435496 [details] [diff] [review] Allow TT_CMD to be found in $PATH Well that was unexpected :)
Attachment #8435496 - Flags: review?(mshal) → review+
Attachment #8435496 - Flags: checked-in+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: