Ticket #3240 (closed defect: fixed)

Opened 20 months ago

Last modified 19 months ago

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

Changed 19 months ago by jburke

  • status changed from new to closed
  • resolution set to fixed

(In [8999]) Fixes #3240: adds guards around module code to avoid redefitions in layered build scenarios

Changed 19 months ago by jburke

  • status changed from closed to closed
  • resolution set to fixed

(In [9000]) Fixes #3240: adds guards around module code to avoid redefitions in layered build scenarios

Note: See TracTickets for help on using tickets.