[packages/ldc] up to 1.42.0-beta2
atler
atler at pld-linux.org
Thu Feb 5 12:12:04 CET 2026
commit d63cc68236e2821c0e95540aa521dfb05f948742
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Feb 5 12:10:51 2026 +0100
up to 1.42.0-beta2
ldc-include-path.patch | 30 +++++++++++-------------------
ldc-no-default-rpath.patch | 17 +++++++----------
ldc.spec | 31 +++++++++++++++++--------------
3 files changed, 35 insertions(+), 43 deletions(-)
---
diff --git a/ldc.spec b/ldc.spec
index bb17fde..86f79ae 100644
--- a/ldc.spec
+++ b/ldc.spec
@@ -6,19 +6,22 @@
%bcond_without geany # geany autocompletion support
%bcond_with jit # dynamic compilation support (JIT) (LLVM 18/19 only)
-%define bootstrap_version 1.41.0
+%define phase beta2
+%define rel 1
+
+%define bootstrap_version 1.42.0%{?phase:-%{phase}}
Summary: LLVM D Compiler
Summary(pl.UTF-8): Kompilator D oparty na LLVM
Name: ldc
-Version: 1.41.0
-Release: 1
+Version: 1.42.0
+Release: %{?phase:0.%{phase}.}%{rel}
# The DMD frontend in dmd/* GPL version 1 or artistic license
# The files gen/asmstmt.cpp and gen/asm-*.hG PL version 2+ or artistic license
License: BSD
-Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
-# Source0-md5: 0c80b38fbb78f321824ef06589a4d92d
+Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}%{?phase:-%{phase}}/%{name}-%{version}%{?phase:-%{phase}}-src.tar.gz
+# Source0-md5: 76e1ea577099dc7646eb9237575ad011
Source1: https://github.com/ldc-developers/ldc/releases/download/v%{bootstrap_version}/%{name}2-%{bootstrap_version}-linux-x86_64.tar.xz
-# Source1-md5: c6f2f648e919ee0bdc21bbd7a4ce3428
+# Source1-md5: 9a7a6aed354e19e6cf3b21875da9810d
# for aarch64 bootstrap: https://github.com/ldc-developers/ldc/releases/download/v%{bootstrap_version}/ldc2-%{bootstrap_version}-linux-aarch64.tar.xz
Source3: macros.%{name}
Patch0: %{name}-include-path.patch
@@ -38,7 +41,7 @@ BuildRequires: libconfig-devel
BuildRequires: libedit-devel
BuildRequires: libstdc++-devel
BuildRequires: llvm-devel >= 15.0
-BuildRequires: llvm-devel < 21
+BuildRequires: llvm-devel < 22
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.047
BuildRequires: tar >= 1:1.22
@@ -121,7 +124,7 @@ Active l'autocompletion pour pour la bibliothèque phobos dans geany
Obsługa automatycznego dopełniania dla biblioteki Phobos w IDE geany.
%prep
-%setup -q -n %{name}-%{version}-src
+%setup -q -n %{name}-%{version}%{?phase:-%{phase}}-src
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
@@ -253,21 +256,21 @@ rm -rf $RPM_BUILD_ROOT
%files druntime
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libdruntime-ldc-debug-shared.so.*.*
-%ghost %{_libdir}/libdruntime-ldc-debug-shared.so.111
+%ghost %{_libdir}/libdruntime-ldc-debug-shared.so.112
%attr(755,root,root) %{_libdir}/libdruntime-ldc-shared.so.*.*
-%ghost %{_libdir}/libdruntime-ldc-shared.so.111
+%ghost %{_libdir}/libdruntime-ldc-shared.so.112
%if %{with jit}
-%attr(755,root,root) %{_libdir}/libldc-jit.so.111.0
-%ghost %{_libdir}/libldc-jit.so.111
+%attr(755,root,root) %{_libdir}/libldc-jit.so.112.0
+%ghost %{_libdir}/libldc-jit.so.112
%endif
%files phobos
%defattr(644,root,root,755)
%doc runtime/phobos/{LICENSE_1_0.txt,README.md}
%attr(755,root,root) %{_libdir}/libphobos2-ldc-debug-shared.so.*.*
-%ghost %{_libdir}/libphobos2-ldc-debug-shared.so.111
+%ghost %{_libdir}/libphobos2-ldc-debug-shared.so.112
%attr(755,root,root) %{_libdir}/libphobos2-ldc-shared.so.*.*
-%ghost %{_libdir}/libphobos2-ldc-shared.so.111
+%ghost %{_libdir}/libphobos2-ldc-shared.so.112
%if %{with geany}
%files phobos-geany-tags
diff --git a/ldc-include-path.patch b/ldc-include-path.patch
index 493697a..7715f25 100644
--- a/ldc-include-path.patch
+++ b/ldc-include-path.patch
@@ -1,19 +1,11 @@
-Description: Fix ldc.conf to search in right paths
-
- ldc (1:1.1.0-2) unstable; urgency=medium
- .
- * Multiarch enable
- * Install includes separately to avoid clash with gdc (Closes: #827211)
-Author: Konstantinos Margaritis <markos at debian.org>
-Bug-Debian: https://bugs.debian.org/827211
-
---- a/ldc2_install.conf.in
-+++ b/ldc2_install.conf.in
-@@ -23,6 +23,7 @@
- // default switches appended after all explicit command-line switches
- post-switches = [
- "-I at INCLUDE_INSTALL_DIR@",
-+ "-I/usr/include/d",
- ];
- // default directories to be searched for libraries when linking
- lib-dirs = [
+--- ldc-1.42.0-beta1-src/CMakeLists.txt.orig 2025-12-19 13:54:08.000000000 +0100
++++ ldc-1.42.0-beta1-src/CMakeLists.txt 2026-02-01 14:01:50.647487773 +0100
+@@ -976,7 +976,7 @@
+
+ INSTALL
+ SWITCHES ${switches}
+- POST_SWITCHES "-I${INCLUDE_INSTALL_DIR}"
++ POST_SWITCHES "-I${INCLUDE_INSTALL_DIR}" "-I/usr/include/d"
+ )
+
+ set(wasm_switches)
diff --git a/ldc-no-default-rpath.patch b/ldc-no-default-rpath.patch
index 064b35b..1e8705d 100644
--- a/ldc-no-default-rpath.patch
+++ b/ldc-no-default-rpath.patch
@@ -1,14 +1,11 @@
-Description: Don't set a default rpath in global LDC configuration.
-Author: Matthias Klumpp <mak at debian.org>
-
---- a/runtime/CMakeLists.txt
-+++ b/runtime/CMakeLists.txt
-@@ -247,7 +247,7 @@
+--- ldc-1.42.0-beta1-src/runtime/CMakeLists.txt.orig 2025-12-19 13:54:08.000000000 +0100
++++ ldc-1.42.0-beta1-src/runtime/CMakeLists.txt 2026-02-01 14:15:09.737813213 +0100
+@@ -276,7 +276,7 @@
# Default -rpath linker option when linking against shared libraries.
if(SHARED_LIBS_SUPPORTED)
- set(SHARED_LIBS_RPATH "${CMAKE_BINARY_DIR}/lib${LIB_SUFFIX}")
-- set(SHARED_LIBS_INSTALL_RPATH "${CMAKE_INSTALL_LIBDIR}")
-+ set(SHARED_LIBS_INSTALL_RPATH "")
+ set(build_rpath "${build_libdir}")
+- set(install_rpath "${install_libdir}")
++ set(install_rpath "")
endif()
- # Only have either shared or static libs?
+ # This is e.g. set from `ldc-build-runtime --installWithSuffix`.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ldc.git/commitdiff/d63cc68236e2821c0e95540aa521dfb05f948742
More information about the pld-cvs-commit
mailing list