Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apt/private/deb_import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def _remap_linkopts(rctx, extract_dir, so_regular_files, self_files, depends_fil
grep = rctx.execute(
["grep", "-I", "-l", "-e", "OUTPUT_FORMAT", "-e", "GROUP", "-e", "INPUT"] + scratch_paths,
)
if grep.return_code > 1:
fail("failed to scan linker scripts for %s: %s" % (target_name, grep.stderr))

referenced = []
for script_path in grep.stdout.splitlines():
Expand Down Expand Up @@ -496,6 +498,10 @@ def _deb_import_impl(rctx):
symlink_outs = symlinks.keys(),
))

# Bazel < 8.3.0 has no repo_metadata.
if hasattr(rctx, "repo_metadata"):
return rctx.repo_metadata(reproducible = True)

deb_import = repository_rule(
implementation = _deb_import_impl,
attrs = {
Expand Down