[assembly] no anonymous entries for named base packages

Developers are working around scrutiny issues with the
`_do_not_use_<merkle>` entries by adding anonymous subpackages to the
named base packages list, to avoid creating anonymous subpackages.

(See this workaround, described in the "Bug:" below.)

But the current algorithm to produce the `static_packages` file does not
actually guarantee that a named package will not also appear as an
anonymous `_do_not_use_<merkle>` entry. Depending on the order base
packages and subpackages are added, the `static_packages` file can
include duplicate entries for the same package hash, one as a named
package and one as an anonymous subpackage.

This CL addresses that problem.

Bug: 117847
Change-Id: I7daf656b065fbe788c5853b19b4bd833542c32d3
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/791063
Fuchsia-Auto-Submit: Rich Kadel <richkadel@google.com>
Reviewed-by: Aaron Wood <aaronwood@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
1 file changed
tree: 9bfb9e81f84a5251a8c44bc7648af2a9f798e22d
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gitmodules
  20. .gn
  21. .style.yapf
  22. analysis_options.yaml
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. fuchsia.code-workspace
  28. LICENSE
  29. OWNERS
  30. PATENTS
  31. pyrightconfig.json
  32. README.md
  33. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.