From d03f05d43158f7686564d897f1734b4030bd1b28 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sun, 31 Dec 2023 17:28:38 +1300 Subject: [PATCH] dmd: update to 2.106.1 --- srcpkgs/dmd/files/musl.patch | 25 +++++++++++++++++++++++++ srcpkgs/dmd/template | 8 ++++---- srcpkgs/dtools/template | 2 +- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/srcpkgs/dmd/files/musl.patch b/srcpkgs/dmd/files/musl.patch index 79b7bcd7e6d6c..6ebadd5a56c5a 100644 --- a/srcpkgs/dmd/files/musl.patch +++ b/srcpkgs/dmd/files/musl.patch @@ -10,3 +10,28 @@ if (childpid == 0) { // pipe linker stderr to fds[0] +https://github.com/dlang/dmd/pull/15971 +--- dmd/druntime/src/core/sys/posix/net/if_.d ++++ dmd/druntime/src/core/sys/posix/net/if_.d +@@ -143,6 +143,21 @@ else version (CRuntime_Bionic) + uint if_nametoindex(const scope char*); + char* if_indextoname(uint, char*); + } ++else version (CRuntime_Musl) ++{ ++ struct if_nameindex_t ++ { ++ uint if_index; ++ char* if_name; ++ } ++ ++ enum IF_NAMESIZE = 16; ++ ++ uint if_nametoindex(const scope char*); ++ char* if_indextoname(uint, char*); ++ if_nameindex_t* if_nameindex(); ++ void if_freenameindex(if_nameindex_t*); ++} + else version (CRuntime_UClibc) + { + struct if_nameindex_t diff --git a/srcpkgs/dmd/template b/srcpkgs/dmd/template index fc75ca12b918a..26ba099d678b4 100644 --- a/srcpkgs/dmd/template +++ b/srcpkgs/dmd/template @@ -1,6 +1,6 @@ # Template file for 'dmd' pkgname=dmd -version=2.101.1 +version=2.106.1 revision=1 create_wrksrc=yes hostmakedepends="dmd2.091 which" @@ -14,9 +14,9 @@ distfiles=" https://github.com/dlang/dmd/archive/refs/tags/v${version}.tar.gz>dmd-${version}.tar.gz https://github.com/dlang/phobos/archive/v${version}.tar.gz>phobos-${version}.tar.gz http://downloads.dlang.org/releases/2.x/${version}/dmd.${version}.linux.tar.xz" -checksum="e369396dbbe4eec9311122fa24c975688b209a000bf2062a9f86b49ab2e4a7b0 - 8a275b3f46d921be87744ec80d3094421a979d6f607dbd43e88e251bbb3f503a - 58333e57ed3812077dc2f8cc8759998b3b59c9ea3dbe01571eab4b2944a84bfe" +checksum="298e2933a4cf87933f73e8ced52c34f4be97e884a4cb6f95e31754e62ba10fcb + acf2a27bb37f18aff300b5f38875c2af1dbb7203deddca7f870b3d69a791f333 + 706c11fc80aa5c25a6b26093bebc51914050e58335791badf5181a6dd8764287" conf_files="/etc/dmd.conf" provides="d-compiler-${version}_${revision}" conflicts="dmd-bootstrap dmd2.081 dmd2.091" diff --git a/srcpkgs/dtools/template b/srcpkgs/dtools/template index f8bc5b41e19a3..374714954d42e 100644 --- a/srcpkgs/dtools/template +++ b/srcpkgs/dtools/template @@ -2,7 +2,7 @@ pkgname=dtools # keep this synchronized with libphobos and dmd version=2.101.1 -revision=1 +revision=2 hostmakedepends="dmd" makedepends="libcurl-devel" depends="libphobos>=${version}"