From cfdd5a16e0eb987b1c1305342996ab6ad406845f Mon Sep 17 00:00:00 2001 From: oreo639 Date: Sun, 18 Dec 2022 16:12:35 -0800 Subject: [PATCH] btdu: fix build with dmd 2.101 --- srcpkgs/btdu/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/btdu/template b/srcpkgs/btdu/template index c2281f91aae..e2c173e4934 100644 --- a/srcpkgs/btdu/template +++ b/srcpkgs/btdu/template @@ -2,7 +2,7 @@ pkgname=btdu version=0.4.1 revision=1 -# druntime does not implement ioctl on musl in dmd-2.098.0 +# fails to build on musl due to different argument types for ioctl # struct packing seems to differ on i686 archs and therefore d-btrfs fails archs=x86_64 hostmakedepends="dmd dub" @@ -15,6 +15,11 @@ distfiles="https://github.com/CyberShadow/btdu/archive/v${version}.tar.gz" checksum=265c63ee82067f6b5dc44b47c9ec58be5e13c654f31035c60a7e375ffa4082c9 nocross="dmd compilation fails on cross" +pre_configure() { + vsed -e 's/dependency "ae" version="==0.0.3184"/dependency "ae" version="==0.0.3228"/g' -i dub.sdl + vsed -e 's/"ae": "0.0.3184"/"ae": "0.0.3228"/g' -i dub.selections.json +} + do_build() { dub build -b release }