Skip to content

Commit

Permalink
base: pass XBPS_TARGET_ARCH to xbps, to signal cross
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenArsen committed Jul 4, 2022
1 parent b0fe4da commit e4f5b1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbstrap/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,9 @@ def install_pkg(cfg, pkg):
_util.build_environ_paths(
environ, "PATH", prepend=[os.path.join(_util.find_home(), "bin")]
)
environ["XBPS_ARCH"] = effective_arch
environ["XBPS_TARGET_ARCH"] = effective_arch
uname = os.uname()
environ["XBPS_ARCH"] = f"{uname.machine}-{uname.sysname}.HOST"

# Work around xbps: https://github.com/void-linux/xbps/issues/408
args = ["xbps-remove", "-Fy", "-r", cfg.sysroot_dir, pkg.name]
Expand Down

0 comments on commit e4f5b1c

Please sign in to comment.