From c4d69fc23742dc8cd1455df1b3527972e74c4d5d2a2ac1a84afe1c52516ae1d1 Mon Sep 17 00:00:00 2001 From: Guillaume GARDET Date: Mon, 25 Apr 2022 12:56:21 +0000 Subject: [PATCH] Accepting request 969515 from home:HenkKalkwater:branches:devel:languages:D Update LDC from 1.26.0 to 1.29.0 OBS-URL: https://build.opensuse.org/request/show/969515 OBS-URL: https://build.opensuse.org/package/show/devel:languages:D/ldc?expand=0&rev=49 --- ldc-1.29.0-src.tar.gz | 3 +++ ldc.changes | 47 +++++++++++++++++++++++++++++++++++++++++++ ldc.spec | 26 ++++++++++++++++-------- 3 files changed, 68 insertions(+), 8 deletions(-) create mode 100644 ldc-1.29.0-src.tar.gz diff --git a/ldc-1.29.0-src.tar.gz b/ldc-1.29.0-src.tar.gz new file mode 100644 index 0000000..5b2dc5c --- /dev/null +++ b/ldc-1.29.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0c066eb965467625d9c5e75c00c583451b9ffa363601f9e37275ca8a8aea140 +size 8080420 diff --git a/ldc.changes b/ldc.changes index 79d7f8e..e1a8848 100644 --- a/ldc.changes +++ b/ldc.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Tue Apr 12 11:47:22 CEST 2022 - Chris Josten + +- Update to 1.29.0: + * Frontend, druntime and Phobos are at version 2.099.1 + * Support for LLVM 13 and LLVM 14 + * New @hidden UDA (as counterpart of export). + * Support 'raw mangles' via leading \1 in pragma(mangle) strings, + e.g., to access magic linker symbols on Mac. + * New @noSanitize UDA to selectively disable sanitizer + instrumentation of functions. + * WebAssembly: Larger default stack size (1 MB) and protection + against stack overflow overwriting global memory. + * LDC doesn't default to the ld.gold linker anymore. The + combination of LLVM 13+ and older gold linkers can apparently + cause problems. We recommend using LLD, e.g., via -linker=lld + or by setting your default /usr/bin/ld symlink; it's + significantly faster too. + * -linkonce-templates is less aggressive by default now and + IMHO production-ready. + * When linking manually (not via LDC) against shared druntime, it + is now required to link the bundled lib/ldc_rt.dso.o[bj] object + file into each binary. It replaces the previously + Windows-specific dso_windows.obj. + * Basic compiler support for Newlib targets, i.e., triples + like arm-none-newlibeabi. + * dcompute: Add support for OpenCL image I/O. + * Revamped and improved -ftime-trace implementation for compiler + profiling/tracing, now excluding LLVM-internal traces, adding + frontend memory tracing, source file location infos etc + * Implement core.atomic.pause() for some architectures. + * Bug fixes: + * Linux: Make LTO work with LLD. + * Capture NRVO variable by ref for stack closures. + * -ftime-trace: JSON-escape filenames. + * RISC-V: Use 128-bit quadruple real. + * Linux x86/x64: Fix TLS range with static druntime and bfd/lld + linkers. + * Support rdtscp in DMD-style inline assembly. + * Fix dynamic casts across binary boundaries (DLLs etc.). + * Don't silently ignore invalid external tool specifications. + * LLVM v11.1: Add missing PGO ldc-profdata tool. + * ICE for 64-bit targets with 32-bit pointer size. + * Breaking ABI changes: + * extern(D): formal parameters of non-variadic functions aren't + reversed anymore, in line with the spec. + ------------------------------------------------------------------- Mon May 17 13:49:15 UTC 2021 - Ferdinand Thiessen diff --git a/ldc.spec b/ldc.spec index f46667f..42e1365 100644 --- a/ldc.spec +++ b/ldc.spec @@ -1,7 +1,7 @@ # # spec file for package ldc # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%define so_ver 96 +%define so_ver 99 %define lname_jit libldc-jit %define lname_runtime libdruntime-%{name} %define lname_phobos libphobos2-%{name} @@ -40,10 +40,11 @@ %bcond_with ldc_tests Name: ldc -Version: 1.26.0 +Version: 1.29.0 Release: 0 Summary: The LLVM D Compiler -License: BSD-3-Clause AND Artistic-1.0 +License: Artistic-1.0 AND BSD-3-Clause +Group: Development/Languages/Other URL: https://wiki.dlang.org/LDC Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc-%{version}-src.tar.gz Source1: %{name}-rpmlintrc @@ -61,16 +62,16 @@ BuildRequires: llvm7-devel BuildRequires: llvm-clang >= 6.0 BuildRequires: llvm-devel >= 6.0 %endif +BuildRequires: binutils-gold BuildRequires: ncurses-devel BuildRequires: sqlite3-devel BuildRequires: zlib-devel BuildRequires: pkgconfig(bash-completion) -BuildRequires: binutils-gold # Should be installed, at least runtime Recommends: ldc-phobos-devel = %{version} -Recommends: ldc-runtime-devel = %{version} -Recommends: ldc-jit-devel = %{version} Recommends: %{name}-bash-completion +Recommends: ldc-jit-devel = %{version} +Recommends: ldc-runtime-devel = %{version} # Since version 1.13.0, ldc uses ld.gold by default Requires: binutils-gold %if %{with ldc_bootstrap} @@ -109,14 +110,17 @@ capabilities. %package -n %{lname_runtime}%{so_ver} Summary: Minimal D runtime library +Group: System/Libraries %description -n %{lname_runtime}%{so_ver} The minimal runtime library required to support the D programming language. %package runtime-devel Summary: Development files for the D runtime library +Group: Development/Libraries/Other Requires: %{lname_runtime}%{so_ver} = %{version} Recommends: ldc-phobos-devel = %{version} +Group: System/Libraries %description runtime-devel This package contains the druntime development files necessary for developing @@ -124,18 +128,21 @@ with LDC. %package -n %{lname_phobos}%{so_ver} Summary: The D standard library +Group: System/Libraries %description -n %{lname_phobos}%{so_ver} This package includes ldc's phobos library - The D standard library. %package -n %{lname_jit}%{so_ver} Summary: The LDC jit library +Group: System/Libraries %description -n %{lname_jit}%{so_ver} This package includes ldc's jit library. %package jit-devel Summary: Development files for the D standard library +Group: Development/Libraries/Other Requires: %{lname_jit}%{so_ver} = %{version} %description jit-devel @@ -143,6 +150,7 @@ This package contains the LDC jit development files. %package phobos-devel Summary: Development files for the D standard library +Group: Development/Libraries/Other Requires: %{lname_phobos}%{so_ver} = %{version} Requires: %{name}-runtime-devel = %{version} @@ -157,7 +165,6 @@ Requires: bash-completion %description bash-completion Optional dependency offering bash completion for ldc2 - %prep %setup -q -n ldc-%{version}-src %patch0 -p1 @@ -294,6 +301,7 @@ rm -rf %{buildroot}%{_prefix}/lib/debug %files -n %{lname_runtime}%{so_ver} %{_libdir}/%{lname_runtime}-shared.so.* %{_libdir}/%{lname_runtime}-debug-shared.so.* +%{_libdir}/ldc_rt.dso.o %files runtime-devel %{_libdir}/%{lname_runtime}-shared.so @@ -301,6 +309,8 @@ rm -rf %{buildroot}%{_prefix}/lib/debug %dir %{_includedir}/d %{_includedir}/d/core %{_includedir}/d/ldc +%{_includedir}/d/__builtins.di +%{_includedir}/d/importc.h %{_includedir}/d/object.d %files -n %{lname_phobos}%{so_ver}