[roll] Roll fuchsia Revert "[bazel_sdk] Fix and simplify @fuchsia_sdk sysroot-related templates"

This reverts commit 39b4f8e53318cb5dab822f306a89b57fc7c72cdb.

Reason for revert: Breaks hello_cpp_test and hello_rust_test

Original change's description:
> [bazel_sdk] Fix and simplify @fuchsia_sdk sysroot-related templates
>
> This is a preliminary CL to cleanup things before fixing issue 122247
>
> - @rules_fuchsia//fuchsia/constraints/BUILD.bazel:
>   Add new `is_fuchsia_x64` and `is_fuchsia_arm64` config conditions
>   that hold true when building for Fuchsia/x64 or Fuchsia/arm64
>   respectively.
>
>   This is used to replace the use of @fuchsia_clang//:x86_build and
>   @fuchsia_clang//:arm_build, whose names are misledaing and defined
>   in ways that are inconsistent with the rest of @rules_fuchsia
>   constraints.
>
>   The `is_` prefix is used to distinguish these targets from
>   @rules_fuchsia//fuchsia/constraints/platforms:fuchsia_{x64,arm64}
>   which are platform() definitions, and whose label cannot be used
>   in select() conditions.
>
> - sysroot_template.BUILD: Replace @clang_fuchsia//:{arm,x86}_build
>   with @rules_fuchsia//fuchsia/constraints:is_fuchsia_{arm64,x64}.
>
>   This removes an un-necessary dependency on @fuchsia_clang.
>
> - sysroot_arch_subtemplate: Fix the definition of "dest" to also
>   depend on the variant (i.e. "lib"  by default, but "lib/asan"
>   otherwise).
>
>   Also use select() with fuchsia-specific conditions to avoid
>   an un-necessary fuchsia_select() call. In other words,
>   replace:
>
>   ```
>     # From @fuchsia_sdk//pkg/sysroot/x64/dist/BUILD.bazel
>
>     fuchsia_package_resource_group(
>       name = "dist",
>       srcs = fuchsia_select({
>         "@fuchsia_clang:arm_novariant": [ ... ],
>         "@fuchsia_clang:arm_asan": [ ... ],
>       })
>       ...
>       target_compatible_with = [ "@platforms//os:fuchsia" ],
>     )
>   ```
>
>   with:
>
>   ```
>     fuchsia_package_resource_group(
>       name = "dist",
>       srcs = select({
>         "@fuchsia_clang:novariant": [ ... ],
>         "@fuchsia_clang:asan": [ ... ],
>       })
>       ...
>       target_compatible_with = [ "@platforms//os:fuchsia" ],
>     )
>   ```
>
>   Since the `target_compatible_with` value already ensures this
>   is only compatible with Fuchsia, the fuchsia_select() was
>   redundant. Similarly, using @fuchsia_clang:<arch>_<variant>
>   in an <arch>-specific BUILD.bazel file was too, so these
>   can be replaced with @fuchsia_clang:<variant> instead.
>
> Original-Bug: 122247
> Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/804949

Original-Bug: 122247
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/808170
Original-Revision: 019a28e01d6643cf09712cdda6814676db2176df
GitOrigin-RevId: e0afe96da379f28f62d213c6e1abed9e489de28f
Change-Id: I64f50097ce5b3d776aae38677e55387bbb371794
1 file changed
tree: 131cec730f589e57ee0d94b9747c2081b0eac0e0
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
  13. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.