Skip to content

Commit 67e373c

Browse files
committed
Fix QEMU guidance
1 parent 5b8ec26 commit 67e373c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- if: matrix.os == 'ubuntu-24.04-arm'
3535
run: |
3636
sudo apt-get update
37-
sudo apt-get -y install qemu-user-static
37+
sudo apt-get -y install qemu-user libc6-amd64-cross
38+
echo QEMU_LD_PREFIX=/usr/x86_64-linux-gnu >> "$GITHUB_ENV"
3839
- name: Install solc-select and test dependencies
3940
run: |
4041
uv sync --extra dev

solc_select/platform_capabilities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def get_emulation_for_platform(self, target: PlatformIdentifier) -> EmulationCap
8787
None,
8888
)
8989

90+
9091
# ========================================
9192
# EMULATION DETECTORS
9293
# ========================================

solc_select/services/platform_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def _print_remediation_steps(self) -> None:
120120
print(" 1. Install software for x86_64 emulation:", file=sys.stderr)
121121

122122
if self.platform.os_type == "linux":
123-
print(" sudo apt-get install qemu-user-static # Debian/Ubuntu", file=sys.stderr)
124-
print(" sudo dnf install qemu-user-static # Fedora", file=sys.stderr)
125-
print(" sudo pacman -S qemu-user-static # Arch", file=sys.stderr)
123+
print(" sudo apt-get install qemu-user # Debian/Ubuntu", file=sys.stderr)
124+
print(" sudo dnf install qemu-user # Fedora", file=sys.stderr)
125+
print(" sudo pacman -S qemu-user # Arch", file=sys.stderr)
126126
elif self.platform.os_type == "darwin":
127127
print(" Use Rosetta 2 (installed automatically on Apple Silicon)", file=sys.stderr)
128128

0 commit comments

Comments
 (0)