Ticket #3240 (closed defect: fixed)
Build: put protections around modules to avoid overwriting by layer file scenarios
| Reported by: | jburke | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9beta |
| Component: | BuildSystem | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Now with layer files, it is possible to load a module once in a layer, but still ask for it by its specific resource name/include it in another layer. Bad things can happen if the second load of the module overwrites the first definition.
In a build, put protections around each module so that it only defines the module if it has not been defined already. The protections should be in each module resource as well as inside the layer files, xd and non-xd.
Change History
Note: See
TracTickets for help on using
tickets.