Skip to content

Commit

Permalink
Since compiling with deno2 we now need ffi :/
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 14, 2025
1 parent a8dbd1e commit 0835bf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,11 @@ jobs:
- debian:buster-slim
- debian:bullseye-slim
- debian:bookworm-slim

- archlinux:latest

# - ubuntu:trusty glibc too old
# - ubuntu:xenial glibc too old
# - ubuntu:bionic glibc too old
# - ubuntu:lunar out of support
- ubuntu:focal
- ubuntu:jammy
- ubuntu:24.04
- ubuntu:24.10

- ubuntu:noble
- fedora:latest

# - nixos/nix:latest can’t exec
# - alpine:latest pkgx binary doesn’t actually end up on the system (wtf)
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 6 additions & 4 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ _install_pre_reqs() {
# difficult to pkg in our opinion
B=libudev-dev

# NOTE ffi is only needed for pkgx’s built with deno^2 and on arm64

case $(cat /etc/debian_version) in
jessie/sid|8.*|stretch/sid|9.*)
apt --yes install libc-dev libstdc++-4.8-dev libgcc-4.7-dev $A $B;;
apt --yes install libc-dev libstdc++-4.8-dev libgcc-4.7-dev libffi5 $A $B;;
buster/sid|10.*)
apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev $A $B;;
apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev libffi6 $A $B;;
bullseye/sid|11.*)
apt --yes install libc-dev libstdc++-10-dev libgcc-9-dev $A $B;;
apt --yes install libc-dev libstdc++-10-dev libgcc-9-dev libffi7 $A $B;;
bookworm/sid|12.*|*)
apt --yes install libc-dev libstdc++-11-dev libgcc-11-dev $A $B;;
apt --yes install libc-dev libstdc++-11-dev libgcc-11-dev libffi8 $A $B;;
esac
elif test -f /etc/fedora-release; then
$SUDO yum --assumeyes install libatomic
Expand Down

0 comments on commit 0835bf8

Please sign in to comment.