Skip to content

Commit 49e2f82

Browse files
committed
fix cross-lib apt conflict: force-overwrite pcap-config across arches
1 parent 8e815c3 commit 49e2f82

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ jobs:
120120
} | sudo tee /etc/apt/sources.list.d/ubuntu-ports.list > /dev/null
121121
fi
122122
sudo apt-get update
123-
sudo apt-get install -y libpcap-dev:${{ matrix.arch }} libasound2-dev:${{ matrix.arch }}
123+
# libpcap0.8-dev ships /usr/bin/pcap-config in a non-arch path that differs per arch
124+
# and can't co-install with the host's amd64 copy; let the target arch's version win
125+
sudo apt-get install -y -o Dpkg::Options::=--force-overwrite \
126+
libpcap-dev:${{ matrix.arch }} libasound2-dev:${{ matrix.arch }}
124127
125128
# build against glibc 2.28 so releases keep running on older distros (fixes #1256)
126129
- name: Build binary (Linux)

0 commit comments

Comments
 (0)