From 2a09c8594ab1c114657d4d6b5fb9f22956332e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Tue, 14 Jul 2026 07:08:13 +0200 Subject: [PATCH] bazel: bump ORFS to pick up the single-writer 1_synth.sdc fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ORFS afad87da includes OpenROAD-flow-scripts#4333: yosys' synth.tcl no longer copies SDC_FILE over 1_synth.sdc, so synth_odb.tcl's write_sdc is the sole writer and no longer fails when bazel inputs are read-only (RBE; cp preserves the missing write bit). Follow-up to #10818. Drop 0035-orfs-bazel-orfs-visible-non-root.patch: upstreamed, @orfs now declares its bazel-orfs bazel_dep non-dev. Verified with chmod a-w test/orfs/gcd/constraint.sdc to emulate RBE's read-only inputs: //test/orfs/gcd:gcd_synth fails before this change with "cannot write file .../1_synth.sdc" and passes after. Co-Authored-By: Claude Fable 5 Signed-off-by: Øyvind Harboe --- MODULE.bazel | 16 ++++-------- ...035-orfs-bazel-orfs-visible-non-root.patch | 26 ------------------- bazel/bazel-orfs-patches/BUILD | 1 - 3 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 bazel/bazel-orfs-patches/0035-orfs-bazel-orfs-visible-non-root.patch delete mode 100644 bazel/bazel-orfs-patches/BUILD diff --git a/MODULE.bazel b/MODULE.bazel index c5a6cf23327..c636e3b6fcb 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -249,25 +249,19 @@ git_override( strip_prefix = "verilog", ) -# @orfs marks most non-root-only directives (qt-bazel/yosys-slang git_overrides, +# @orfs marks non-root-only directives (qt-bazel/yosys-slang git_overrides, # orfs.default(), toolchain registration) as dev_dependency, so they are no-ops -# here. But @orfs//flow loads @bazel-orfs//:openroad.bzl, and @orfs marks its -# bazel-orfs bazel_dep dev_dependency too, which drops @bazel-orfs from @orfs's -# repo mapping when consumed non-root — so loading @orfs//flow fails. The patch -# makes that one bazel_dep non-dev. +# here; its bazel-orfs bazel_dep is non-dev so @orfs//flow can load +# @bazel-orfs//:openroad.bzl when consumed non-root. # # Use archive_override (HTTPS tarball) rather than git_override so the # build resolves on networks that block direct git access to github.com. -ORFS_COMMIT = "4b3f2663609fd3f6fd8d862729de1ec5967eb4e6" +ORFS_COMMIT = "afad87da8d1ebd6ef1bc94288b4204420975a549" bazel_dep(name = "orfs", dev_dependency = True) archive_override( module_name = "orfs", - patch_strip = 1, - patches = [ - "//bazel/bazel-orfs-patches:0035-orfs-bazel-orfs-visible-non-root.patch", - ], - sha256 = "b6e496221b5be5a5ecd54e978a7a8157a212b67374e2ecd6c27f90d35e02b473", + sha256 = "3b61b0cb106bb64d5cb453dff404a346b29a16bf3614166532ffa6ef733e1f65", strip_prefix = "OpenROAD-flow-scripts-" + ORFS_COMMIT, urls = ["https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/archive/" + ORFS_COMMIT + ".tar.gz"], ) diff --git a/bazel/bazel-orfs-patches/0035-orfs-bazel-orfs-visible-non-root.patch b/bazel/bazel-orfs-patches/0035-orfs-bazel-orfs-visible-non-root.patch deleted file mode 100644 index 6b55dbf41d0..00000000000 --- a/bazel/bazel-orfs-patches/0035-orfs-bazel-orfs-visible-non-root.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Oyvind Harboe -Date: Wed, 8 Jul 2026 00:00:00 +0000 -Subject: [PATCH] orfs: keep bazel-orfs visible when orfs is a non-root dep - -@orfs//flow loads @bazel-orfs//:openroad.bzl, so @bazel-orfs must be in -@orfs's repo mapping. Upstream marks the bazel-orfs bazel_dep as -dev_dependency, which drops it from the mapping when @orfs is consumed -as a non-root dependency, so loading @orfs//flow fails with "No -repository visible as '@bazel-orfs' from repository '@@orfs+'". Make the -bazel_dep non-dev; the bazel-orfs version is unified by the root -module's pin either way. - -Signed-off-by: Oyvind Harboe ---- ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -33,7 +33,7 @@ - remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts", - ) - --bazel_dep(name = "bazel-orfs", dev_dependency = True) -+bazel_dep(name = "bazel-orfs") - bazel_dep(name = "bazel-orfs-verilog", dev_dependency = True) - - BAZEL_ORFS_COMMIT = "6ebadeb4be5c9ada103081c9a5e668c014126616" diff --git a/bazel/bazel-orfs-patches/BUILD b/bazel/bazel-orfs-patches/BUILD deleted file mode 100644 index d518110449e..00000000000 --- a/bazel/bazel-orfs-patches/BUILD +++ /dev/null @@ -1 +0,0 @@ -exports_files(glob(["*.patch"]))