Closed Bug 870214 Opened 12 years ago Closed 8 years ago

pymake cannot execute config/now in nsprpub

Categories

(Firefox Build System :: General, defect)

x86
Windows 8
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(1 file, 1 obsolete file)

When building NSPR using pymake, the following log is sometimes outputed. make.py[9]: Leaving directory 'e:\builds\moz2_slave\try-w32-0000000000000000000000\build\obj-firefox\nsprpub\pr\src\threads' make.py[9]: Entering directory 'e:\builds\moz2_slave\try-w32-0000000000000000000000\build\obj-firefox\nsprpub\pr\src' Error executing command ../../config/./now [Error 2] The system cannot find the file specified Error executing command ../../config/./now [Error 2] The system cannot find the file specified In Makefile, (nsprpub/pr/src/Makefile.in) NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now SH_NOW = $(shell $(NOW)) ... @$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC) @if test ! -z "$(SH_NOW)"; then \ $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \ else \ true; \ fi GNU make resolves now as now.exe, but pymake doesn't resolve as adding exe suffix.
To resolve by nspr side, all NOW definition in Makefile modifies to now$(PROG_SUFFIX) after define PROG_SUFFIX.
Attached patch fix (obsolete) — Splinter Review
Assignee: nobody → m_kato
Attached patch fix v2Splinter Review
Attachment #770662 - Attachment is obsolete: true
Attachment #770664 - Flags: review?(gps)
Comment on attachment 770664 [details] [diff] [review] fix v2 Review of attachment 770664 [details] [diff] [review]: ----------------------------------------------------------------- Good catch! Could you refactor the logic to avoid the redundant os.path.isfile() lookup? Also, a basic test would be nice.
Attachment #770664 - Flags: review?(gps) → feedback+
Mass close of pymake-related bugs.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: