mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
This commit is contained in:
parent
5c2f416fdb
commit
c1e51cecd6
1 changed files with 8 additions and 6 deletions
|
@ -2,8 +2,8 @@
|
||||||
pkgname=dynamips
|
pkgname=dynamips
|
||||||
version=0.2.23
|
version=0.2.23
|
||||||
revision=1
|
revision=1
|
||||||
archs="i686* x86_64*"
|
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
build_helper=qemu
|
||||||
makedepends="elfutils-devel libpcap-devel"
|
makedepends="elfutils-devel libpcap-devel"
|
||||||
depends="iouyap"
|
depends="iouyap"
|
||||||
short_desc="Hardware emulation for Cisco IOS capable devices"
|
short_desc="Hardware emulation for Cisco IOS capable devices"
|
||||||
|
@ -13,8 +13,10 @@ homepage="https://github.com/GNS3/dynamips"
|
||||||
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
|
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
|
||||||
checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
|
checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
|
||||||
|
|
||||||
# Dynamips does processor instruction translation. This is already
|
# cross compile does not currently work without binfmt
|
||||||
# painfully slow on powerful x86 hardware and is unlikely to work
|
# so `nocross` is used in environments like Github Actions
|
||||||
# reliably on arm processors.
|
_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
|
||||||
#
|
|
||||||
# So restrict to x86_64* and i686*
|
if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
|
||||||
|
nocross="binfmt support not enabled"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue