Closed Bug 928364 Opened 9 years ago Closed 9 years ago

ipdl and webidl unified sources dependencies are wrong

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla28

People

(Reporter: glandium, Assigned: glandium)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

The unified sources depend on the sources they include, which is wrong. The object they create do have such a dependency, but not the unified sources themselves.

On the other hand, they don't have a dependency on moz.build, which is about the only thing that could have an impact on their content.
The backend.RecursiveMakeBackend.built business ensures config.status reruns
when moz.build changes, which is the only thing that would affect unified
sources. Rerunning config.status updates unified sources if they need to
be updated. Once updated, normal object dependencies will ensure they are
rebuilt. Those same dependencies will ensure they are rebuilt when one of
the C/C++ sources they include change. IOW, unified sources don't need any
explicit dependencies generated by the backend.
Attachment #820845 - Flags: review?(gps)
(In reply to Mike Hommey [:glandium] from comment #1)
> The backend.RecursiveMakeBackend.built business ensures config.status reruns
> when moz.build changes, which is the only thing that would affect unified
> sources. Rerunning config.status updates unified sources if they need to
> be updated. Once updated, normal object dependencies will ensure they are
> rebuilt. Those same dependencies will ensure they are rebuilt when one of
> the C/C++ sources they include change. IOW, unified sources don't need any
> explicit dependencies generated by the backend.

What if the unified sources get removed?  dom/bindings/Makefile.in puts them in $GARBAGE, for instance.
(In reply to Nathan Froyd (:froydnj) from comment #2)
> What if the unified sources get removed?  dom/bindings/Makefile.in puts them
> in $GARBAGE, for instance.

mmmm they should be removed by the backend imho. It's not a terrible problem, though, because that would mean a moz.build change, which would mean a *.mk change with a list with less unified sources.
(I mean, there are *many* things we don't garbage out, and that's a separate issue)
Comment on attachment 820845 [details] [diff] [review]
Remove unified source dependencies completely, they're useless

Review of attachment 820845 [details] [diff] [review]:
-----------------------------------------------------------------

That logic makes sense to me. I think.
Attachment #820845 - Flags: review?(gps) → review+
Guess what, the GARBAGE thing Nathan was talking about made this patch break PGO builds.
Backed out for now.
https://hg.mozilla.org/integration/mozilla-inbound/rev/9d1266f5c051
Depends on: 930896
https://hg.mozilla.org/mozilla-central/rev/fcd779a72dd3
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.