Commit Graph

2 Commits

Author SHA1 Message Date
Øyvind Harboe
dc04ecd404 bazel: fix installed binary Tcl init failure
install.sh deleted openroad.runfiles/_main which contains the Tcl
resource files (init.tcl, tclreadline, etc.) needed by the Bazel-built
binary.  Remove that rm so the runfiles tree stays intact after install.

Add an install smoke test that extracts the packaging tarball and
verifies the binary can evaluate a Tcl expression — catches regressions
like this automatically.

Validate: bazelisk test //test/install/...

Fixes #10115

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-04-12 13:39:48 +02:00
Øyvind Harboe
c75d756f9d build: move install and tarfile to packaging/
The root BUILD.bazel had load() statements for @rules_pkg and
@rules_shell which are evaluated whenever any target in the root
package is requested. This prevents making these deps dev_dependency,
because downstream consumers loading @openroad//:openroad would fail.

Moving the packaging targets to their own package isolates the load()
statements so they are only evaluated when explicitly needed.

Signed-off-by: Claude Code <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-19 12:12:34 +01:00