Closed Bug 1423438 Opened 7 years ago Closed 7 years ago

.deps/mozilla-config.h.pp has invalid content

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: glandium, Assigned: mshal)

References

Details

Attachments

(1 file)

I noticed when, after doing some hackish modification to mozilla-central.h.in, the build would fail with an error parsing mozilla-config.h.pp. Examples of things it contains that is invalid: $(wildcard /home/glandium/gecko/obj-x86_64-pc-linux-gnu/config.statusd/defines/"mozilla/Char16.h") $(wildcard /home/glandium/gecko/obj-x86_64-pc-linux-gnu/config.statusd/defines/defined(HUNSPELL_STATIC)) $(wildcard /home/glandium/gecko/obj-x86_64-pc-linux-gnu/config.statusd/defines/defined(__clang__)) $(wildcard /home/glandium/gecko/obj-x86_64-pc-linux-gnu/config.statusd/defines/!defined(__ASSEMBLER__)) etc.
Assignee: nobody → mshal
Comment on attachment 8935492 [details] Bug 1423438 - Fix invalid .pp content for process_define_files.py; https://reviewboard.mozilla.org/r/206392/#review212068 ::: python/mozbuild/mozbuild/action/process_define_files.py:60 (Diff revision 1) > '#define %s %s' % (name, val) > for name, val in config.defines['ALLDEFINES'].iteritems())) > l = l[:m.start('cmd') - 1] \ > + defines + l[m.end('name'):] > - elif name in config.defines: > - if cmd == 'define' and value: > + elif cmd == 'define': > + if value and name in config.defines: I /think/ those name in config.defines checks are fine, but I'm not 100% sure.
Attachment #8935492 - Flags: review?(mh+mozilla) → review+
Comment on attachment 8935492 [details] Bug 1423438 - Fix invalid .pp content for process_define_files.py; https://reviewboard.mozilla.org/r/206392/#review212584 ::: python/mozbuild/mozbuild/action/process_define_files.py:60 (Diff revision 1) > '#define %s %s' % (name, val) > for name, val in config.defines['ALLDEFINES'].iteritems())) > l = l[:m.start('cmd') - 1] \ > + defines + l[m.end('name'):] > - elif name in config.defines: > - if cmd == 'define' and value: > + elif cmd == 'define': > + if value and name in config.defines: Those checks do add a dependency, but I'm not sure if there are any that would cause problems. If you continue to hit errors, please re-open this and I can take a look.
Pushed by mshal@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1c287e5f6b09 Fix invalid .pp content for process_define_files.py; r=glandium
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
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: