From 02c232f9680a88960f2c8e893b6043a5bf46f921 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.0 --- 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..b247c8b6bab60 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.0 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="1079649c41a9b8e0d3e81c573c82d84cd6873b3afc95b37d6f5206842cedc7c9 + 3f926ee26905c2f6fe457e7ad2fe4feac8cad83c571a70adea30b6cd4a4366b6 + b6fdfa4d12ab552e837c1edc77a9ccb873bd65cb98adff2dbc86c949482d5e9f" 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}"