Closed Bug 631390 Opened 13 years ago Closed 13 years ago

'make xpi' is broken on default branch

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: jgriffin, Assigned: rnewman)

References

Details

Attachments

(1 file)

Attempting 'make xpi' on tip changeset for fx-sync yields:

/home/cltbld/crossweave/fx-sync/tools/Preprocessor.py  -Dweave_channel="dev"  -Dweave_version="1.7b1pre"  -Dweave_id="{340c2bbc-ce74-4362-90b5-7c26312808ef}" /home/cltbld/crossweave/fx-sync/services/sync/modules/constants.js > /home/cltbld/crossweave/fx-sync/dist/stage/modules/constants.js
/bin/sh: /home/cltbld/crossweave/fx-sync/tools/Preprocessor.py: Permission denied
make: *** [build] Error 126

This breaks Crossweave tests.
Looks like bug 574380 broke this. Richard, could you take a look please?
Assignee: nobody → rnewman
Blocks: 574380
This is what I get on Windows 7:

/c/dev/fx-sync-main/tools/Preprocessor.py  -Dweave_channel="dev"  -Dweave_version="1.7b1pre"  -Dweav
e_id="{340c2bbc-ce74-4362-90b5-7c26312808ef}" /c/dev/fx-sync-main/services/sync/modules/constants.js
 > /c/dev/fx-sync-main/dist/stage/modules/constants.js
/c/dev/fx-sync-main/tools/Preprocessor.py: line 4:
This is a very primitive line based preprocessor, for times when using
a C preprocessor isn't an option.
: command not found
/c/dev/fx-sync-main/tools/Preprocessor.py: line 43: import: command not found
/c/dev/fx-sync-main/tools/Preprocessor.py: line 44: import: command not found
/c/dev/fx-sync-main/tools/Preprocessor.py: line 45: import: command not found
/c/dev/fx-sync-main/tools/Preprocessor.py: line 46: import: command not found
/c/dev/fx-sync-main/tools/Preprocessor.py: line 47: from: command not found
/c/dev/fx-sync-main/tools/Preprocessor.py: line 53: syntax error near unexpected token `sys.stdout.f
ileno'
/c/dev/fx-sync-main/tools/Preprocessor.py: line 53: `  msvcrt.setmode(sys.stdout.fileno(), os.O_BINA
RY)'
make: *** [build] Error 2
We were using $(PYTHON), which is set by the MOZ_OBJDIR makefiles. CW (and Philipp!) didn't have MOZ_OBJDIR set, so not defined.

Patch attached uses "python" instead. Philipp's OK with it, so I am :D
Attachment #509630 - Flags: review?(philipp)
Comment on attachment 509630 [details] [diff] [review]
Proposed patch. v1

*rubberstamp*
Attachment #509630 - Flags: review?(philipp) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
assumes crosseweave is no longer broken by this.
Status: RESOLVED → VERIFIED
Component: Firefox Sync: Build → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: