New Upstream Release - bazel-platforms

Ready changes

Summary

Merged new upstream version: 0.0.6 (was: 0.0.2).

Resulting package

Built on 2023-02-21T00:44 (took 17m48s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases bazel-platforms

Lintian Result

Diff

diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml
index d529df1..b29a991 100644
--- a/.bazelci/presubmit.yml
+++ b/.bazelci/presubmit.yml
@@ -1,19 +1,14 @@
 ---
 tasks:
-  ubuntu1604:
-    build_targets:
-    - "..."
   ubuntu1804:
     build_targets:
-    - "..."
-  ubuntu1804_nojava:
-    build_flags:
-    - "--javabase=@openjdk11_linux_archive//:runtime"
+    - "//..."
+  ubuntu2004:
     build_targets:
-    - "..."
+    - "//..."
   macos:
     build_targets:
-    - "..."
+    - "//..."
   windows:
     build_targets:
-    - "..."
+    - "//..."
diff --git a/BUILD b/BUILD
index ad16e74..c38493e 100644
--- a/BUILD
+++ b/BUILD
@@ -15,11 +15,11 @@ filegroup(
 )
 
 # For use in Incompatible Target Skipping:
-# https://docs.bazel.build/versions/master/platforms.html#skipping-incompatible-targets
+# https://docs.bazel.build/versions/main/platforms.html#skipping-incompatible-targets
 #
 # Specifically this lets targets declare incompatibility with some set of
 # platforms. See
-# https://docs.bazel.build/versions/master/platforms.html#more-expressive-constraints
+# https://docs.bazel.build/versions/main/platforms.html#more-expressive-constraints
 # for some more details.
 constraint_setting(name = "incompatible_setting")
 
diff --git a/README.md b/README.md
index a2c00d3..8022b5e 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
 # [Bazel Platforms](https://bazel.build)
 
 This repository houses all canonical
-[constraint_setting()](https://docs.bazel.build/versions/master/be/platform.html#constraint_setting)s,
-[constraint_value()](https://docs.bazel.build/versions/master/be/platform.html#constraint_value)s
+[constraint_setting()](https://docs.bazel.build/versions/main/be/platform.html#constraint_setting)s,
+[constraint_value()](https://docs.bazel.build/versions/main/be/platform.html#constraint_value)s
 and
-[platform()](https://docs.bazel.build/versions/master/be/platform.html#platform)s
+[platform()](https://docs.bazel.build/versions/main/be/platform.html#platform)s
 that are universally useful across languages and Bazel projects.
 
 For questions or concerns please email
diff --git a/cpu/BUILD b/cpu/BUILD
index 2fed273..e4c5032 100644
--- a/cpu/BUILD
+++ b/cpu/BUILD
@@ -14,9 +14,9 @@ filegroup(
 constraint_setting(name = "cpu")
 
 # TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
-constraint_value(
+alias(
     name = "aarch64",
-    constraint_setting = ":cpu",
+    actual = ":arm64",
 )
 
 # TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
@@ -25,11 +25,36 @@ constraint_value(
     constraint_setting = ":cpu",
 )
 
+# Cortex-M0, Cortex-M0+, Cortex-M1
 constraint_value(
     name = "armv6-m",  # Commonly known as thumbv6
     constraint_setting = ":cpu",
 )
 
+# Cortex-M3
+constraint_value(
+    name = "armv7-m",
+    constraint_setting = ":cpu",
+)
+
+# Cortex-M4, Cortex-M7
+constraint_value(
+    name = "armv7e-m",
+    constraint_setting = ":cpu",
+)
+
+# Cortex-M4, Cortex-M7 with fpu
+constraint_value(
+    name = "armv7e-mf",  # armv7e-m with fpu
+    constraint_setting = ":cpu",
+)
+
+# Cortex-M23, Cortex-M33, Cortex-M35P
+constraint_value(
+    name = "armv8-m",
+    constraint_setting = ":cpu",
+)
+
 constraint_value(
     name = "arm64_32",
     constraint_setting = ":cpu",
@@ -89,3 +114,18 @@ constraint_value(
     name = "wasm64",
     constraint_setting = ":cpu",
 )
+
+constraint_value(
+    name = "mips64",
+    constraint_setting = ":cpu",
+)
+
+constraint_value(
+    name = "riscv32",
+    constraint_setting = ":cpu",
+)
+
+constraint_value(
+    name = "riscv64",
+    constraint_setting = ":cpu",
+)
diff --git a/debian/changelog b/debian/changelog
index cdd60f0..53e4828 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+bazel-platforms (0.0.6-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Tue, 21 Feb 2023 00:29:27 -0000
+
 bazel-platforms (0.0.2-2) unstable; urgency=medium
 
   [ Debian Janitor ]
diff --git a/distro/README.md b/distro/README.md
new file mode 100644
index 0000000..e4164f7
--- /dev/null
+++ b/distro/README.md
@@ -0,0 +1,46 @@
+# Updating bazelbuild/platforms
+
+WARNING: These are what worked last time. Reality might be different. 
+
+## Step 1: Make the release
+
+- Pick a new version number
+- Run distro/makerel.sh *version*
+- Go to the [Releases](https://github.com/bazelbuild/platforms/releases) page
+- Draft a new release
+  - Name the release with a version number
+  - Use the version number as the title
+  - Copy the description that makerel.sh produced to the description field.
+  - upload the generated tar file
+
+- use https://github.com/bazelbuild/continuous-integration/blob/HEAD/mirror/mirror.sh to mirror the file
+
+## Step 2: Update Bazel
+
+- Edit `distdir_deps.bzl`
+- Merge the PR
+
+Sample diff:
+
+```
+diff --git a/distdir_deps.bzl b/distdir_deps.bzl
+index ed49a563bc..1739a25c2a 100644
+--- a/distdir_deps.bzl
++++ b/distdir_deps.bzl
+@@ -20,11 +20,11 @@ DIST_DEPS = {
+     #
+     ########################################
+     "platforms": {
+-        "archive": "platforms-0.0.2.tar.gz",
+-        "sha256": "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3",
++        "archive": "platforms-0.0.3.tar.gz",
++        "sha256": "460caee0fa583b908c622913334ec3c1b842572b9c23cf0d3da0c2543a1a157d",
+         "urls": [
+-            "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
+-            "https://github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
++            "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.3/platforms-0.0.3.tar.gz",
++            "https://github.com/bazelbuild/platforms/releases/download/0.0.3/platforms-0.0.3.tar.gz",
+         ],
+         "used_in": [
+             "additional_distfiles",
+``` 
diff --git a/distro/makerel.sh b/distro/makerel.sh
new file mode 100755
index 0000000..e6f8fe3
--- /dev/null
+++ b/distro/makerel.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+if [[ $# != 1 ]] ; then
+  echo "usage: $0 version"
+  exit 1
+fi
+version="$1"
+
+if [[ ! -f WORKSPACE ]] ; then
+  echo 'You must run this command from the top of the workspace.'
+  exit 1
+fi
+
+# tar on macos builds a file with different checksums each time.
+if [[ $(uname) != 'Linux' ]] ; then
+  echo 'You must run this command from a linux machine.'
+  exit 1
+fi
+
+
+dist_file="/tmp/platforms-${version}.tar.gz"
+tar czf "$dist_file" BUILD LICENSE WORKSPACE cpu os
+sha256=$(shasum -a256 "$dist_file" | cut -d' ' -f1)
+
+cat <<INP
+
+
+1. Create a new release using the tag $version
+2. Copy/paste the text below into the release description field.
+3. Upload $dist_file as an artifact.
+4. Copy $dist_file to the mirror site.
+5. Create the release.
+6. Update Bazel to point to this new release. See the readme.
+
+=============== CUT HERE =============== 
+**WORKSPACE setup**
+
+\`\`\`
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+http_archive(
+    name = "platforms",
+    urls = [
+        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/$version/platforms-$version.tar.gz",
+        "https://github.com/bazelbuild/platforms/releases/download/$version/platforms-$version.tar.gz",
+    ],
+    sha256 = "$sha256",
+)
+\`\`\`
+=============== CUT HERE =============== 
+INP
+
diff --git a/os/BUILD b/os/BUILD
index 53fec81..e0484ee 100644
--- a/os/BUILD
+++ b/os/BUILD
@@ -18,11 +18,21 @@ constraint_value(
     constraint_setting = ":os",
 )
 
+constraint_value(
+    name = "netbsd",
+    constraint_setting = ":os",
+)
+
 constraint_value(
     name = "openbsd",
     constraint_setting = ":os",
 )
 
+constraint_value(
+    name = "haiku",
+    constraint_setting = ":os",
+)
+
 constraint_value(
     name = "android",
     constraint_setting = ":os",
@@ -91,3 +101,13 @@ constraint_value(
     name = "wasi",
     constraint_setting = ":os",
 )
+
+constraint_value(
+    name = "fuchsia",
+    constraint_setting = ":os",
+)
+
+constraint_value(
+    name = "chromiumos",
+    constraint_setting = ":os",
+)

Debdiff

File lists identical (after any substitutions)

No differences were encountered in the control files

More details

Full run details