ldc: update to 1.30.0.
This commit is contained in:
parent
47d8a8879c
commit
e01d61528c
3 changed files with 65 additions and 9 deletions
|
@ -2189,11 +2189,10 @@ libFcitx5Config.so.6 libfcitx5-5.0.5_1
|
||||||
libFcitx5GClient.so.2 fcitx5-gtk-5.0.4_1
|
libFcitx5GClient.so.2 fcitx5-gtk-5.0.4_1
|
||||||
libFcitx5Qt5DBusAddons.so.1 fcitx5-qt5-5.0.3_1
|
libFcitx5Qt5DBusAddons.so.1 fcitx5-qt5-5.0.3_1
|
||||||
libFcitx5Qt5WidgetsAddons.so.2 fcitx5-qt5-5.0.3_1
|
libFcitx5Qt5WidgetsAddons.so.2 fcitx5-qt5-5.0.3_1
|
||||||
libdruntime-ldc-debug-shared.so.98 ldc-runtime-1.28.0_1
|
libdruntime-ldc-debug-shared.so.100 ldc-runtime-1.30.0_1
|
||||||
libdruntime-ldc-shared.so.98 ldc-runtime-1.28.0_1
|
libdruntime-ldc-shared.so.100 ldc-runtime-1.30.0_1
|
||||||
libphobos2-ldc-shared.so.98 ldc-runtime-1.28.0_1
|
libphobos2-ldc-shared.so.100 ldc-runtime-1.30.0_1
|
||||||
libphobos2-ldc-debug-shared.so.98 ldc-runtime-1.28.0_1
|
libphobos2-ldc-debug-shared.so.100 ldc-runtime-1.30.0_1
|
||||||
libldc-jit.so.99 ldc-runtime-1.29.0_1
|
|
||||||
libmarblewidget-qt5.so.28 marble5-17.12.2_1
|
libmarblewidget-qt5.so.28 marble5-17.12.2_1
|
||||||
libastro.so.2 marble5-17.12.2_1
|
libastro.so.2 marble5-17.12.2_1
|
||||||
libparrot.so.6.9.0 parrot-6.9.0_1
|
libparrot.so.6.9.0 parrot-6.9.0_1
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
From 54544260a848c8ebad5582e27ac1e09627cdfb17 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Razvan Nitu <razvan.nitu1305@gmail.com>
|
||||||
|
Date: Wed, 24 Aug 2022 13:54:15 +0300
|
||||||
|
Subject: [PATCH] Port the fix for issue 23157 (#14378)
|
||||||
|
|
||||||
|
---
|
||||||
|
druntime/src/core/sys/posix/sys/socket.d | 36 ++++++++++++++++++++++--
|
||||||
|
1 file changed, 33 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/druntime/src/core/sys/posix/sys/socket.d b/druntime/src/core/sys/posix/sys/socket.d
|
||||||
|
index 3a7b753adff..fc5dc5d1684 100644
|
||||||
|
--- a/runtime/druntime/src/core/sys/posix/sys/socket.d
|
||||||
|
+++ b/runtime/druntime/src/core/sys/posix/sys/socket.d
|
||||||
|
@@ -188,10 +188,40 @@ version (linux)
|
||||||
|
|
||||||
|
extern (D) inout(ubyte)* CMSG_DATA( return scope inout(cmsghdr)* cmsg ) pure nothrow @nogc { return cast(ubyte*)( cmsg + 1 ); }
|
||||||
|
|
||||||
|
- private inout(cmsghdr)* __cmsg_nxthdr(inout(msghdr)*, inout(cmsghdr)*) pure nothrow @nogc;
|
||||||
|
- extern (D) inout(cmsghdr)* CMSG_NXTHDR(inout(msghdr)* msg, inout(cmsghdr)* cmsg) pure nothrow @nogc
|
||||||
|
+ version (CRuntime_Musl)
|
||||||
|
{
|
||||||
|
- return __cmsg_nxthdr(msg, cmsg);
|
||||||
|
+ extern (D)
|
||||||
|
+ {
|
||||||
|
+ private size_t __CMSG_LEN(inout(cmsghdr)* cmsg) pure nothrow @nogc
|
||||||
|
+ {
|
||||||
|
+ return (cmsg.cmsg_len + size_t.sizeof -1) & cast(size_t)(~(size_t.sizeof - 1));
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ private inout(cmsghdr)* __CMSG_NEXT(inout(cmsghdr)* cmsg) pure nothrow @nogc
|
||||||
|
+ {
|
||||||
|
+ return cmsg + __CMSG_LEN(cmsg);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ private inout(msghdr)* __MHDR_END(inout(msghdr)* mhdr) pure nothrow @nogc
|
||||||
|
+ {
|
||||||
|
+ return cast(inout(msghdr)*)(mhdr.msg_control + mhdr.msg_controllen);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ inout(cmsghdr)* CMSG_NXTHDR(inout(msghdr)* msg, inout(cmsghdr)* cmsg) pure nothrow @nogc
|
||||||
|
+ {
|
||||||
|
+ return cmsg.cmsg_len < cmsghdr.sizeof ||
|
||||||
|
+ __CMSG_LEN(cmsg) + cmsghdr.sizeof >= __MHDR_END(msg) - cast(inout(msghdr)*)(cmsg)
|
||||||
|
+ ? cast(inout(cmsghdr)*) null : cast(inout(cmsghdr)*) __CMSG_NEXT(cmsg);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ {
|
||||||
|
+ private inout(cmsghdr)* __cmsg_nxthdr(inout(msghdr)*, inout(cmsghdr)*) pure nothrow @nogc;
|
||||||
|
+ extern (D) inout(cmsghdr)* CMSG_NXTHDR(inout(msghdr)* msg, inout(cmsghdr)* cmsg) pure nothrow @nogc
|
||||||
|
+ {
|
||||||
|
+ return __cmsg_nxthdr(msg, cmsg);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
extern (D) inout(cmsghdr)* CMSG_FIRSTHDR( inout(msghdr)* mhdr ) pure nothrow @nogc
|
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'ldc'
|
# Template file for 'ldc'
|
||||||
pkgname=ldc
|
pkgname=ldc
|
||||||
version=1.28.0
|
version=1.30.0
|
||||||
revision=2
|
revision=1
|
||||||
reverts="1.29.0_1"
|
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="
|
configure_args="
|
||||||
-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc
|
-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc
|
||||||
-DBUILD_SHARED_LIBS=ON
|
-DBUILD_SHARED_LIBS=ON
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
-DBASH_COMPLETION_COMPLETIONSDIR=/usr/share/bash-completion
|
-DBASH_COMPLETION_COMPLETIONSDIR=/usr/share/bash-completion
|
||||||
|
-DCOMPILE_D_MODULES_SEPARATELY=ON
|
||||||
-DC_SYSTEM_LIBS='unwind;m;pthread;rt;dl'"
|
-DC_SYSTEM_LIBS='unwind;m;pthread;rt;dl'"
|
||||||
conf_files="/etc/ldc2.conf"
|
conf_files="/etc/ldc2.conf"
|
||||||
hostmakedepends="dmd llvm12 perl pkg-config"
|
hostmakedepends="dmd llvm12 perl pkg-config"
|
||||||
|
@ -22,7 +22,7 @@ license="BSD-3-Clause, BSL-1.0"
|
||||||
homepage="https://wiki.dlang.org/LDC"
|
homepage="https://wiki.dlang.org/LDC"
|
||||||
changelog="https://raw.githubusercontent.com/ldc-developers/ldc/master/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/ldc-developers/ldc/master/CHANGELOG.md"
|
||||||
distfiles="https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz"
|
distfiles="https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz"
|
||||||
checksum=17fee8bb535bcb8cda0a45947526555c46c045f302a7349cc8711b254e54cf09
|
checksum=fdbb376f08242d917922a6a22a773980217fafa310046fc5d6459490af23dacd
|
||||||
nopie=yes
|
nopie=yes
|
||||||
nocross="dmd compilation fails on cross"
|
nocross="dmd compilation fails on cross"
|
||||||
# tests timeout on musl; also require unpackaged python3-lit
|
# tests timeout on musl; also require unpackaged python3-lit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue