[packages/ldc] - updated to 1.40.0-beta6 (compatible with llvm 15..19)

qboosh qboosh at pld-linux.org
Sat Dec 14 13:09:57 CET 2024


commit c1e3246c47520f4f4c64463cd7fc8387543f3f38
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 14 12:16:20 2024 +0100

    - updated to 1.40.0-beta6 (compatible with llvm 15..19)

 ldc.spec | 53 ++++++++++++++++++++++++++++++++---------------------
 1 file changed, 32 insertions(+), 21 deletions(-)
---
diff --git a/ldc.spec b/ldc.spec
index df350e6..2adfd3c 100644
--- a/ldc.spec
+++ b/ldc.spec
@@ -1,26 +1,29 @@
+# TODO: multilib
 #
 # Conditional build:
 %bcond_with	bootstrap	# bootstrap from pre-compiled binaries
 %bcond_without	geany		# geany autocompletion support
 
-%define	bootstrap_version 1.27.1
+%define	bootstrap_version 1.39.0
 Summary:	LLVM D Compiler
 Summary(pl.UTF-8):	Kompilator D oparty na LLVM
 Name:		ldc
-Version:	1.30.0
-Release:	1
+Version:	1.40.0
+%define	subver	beta6
+Release:	0.%{subver}.1
 # 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:	871cec3741a884ff29f564175b919e4d
+Source0:	https://github.com/ldc-developers/ldc/releases/download/v%{version}-%{subver}/%{name}-%{version}-%{subver}-src.tar.gz
+# Source0-md5:	72e3dfd93a719320994531c5f41ad333
 Source1:	https://github.com/ldc-developers/ldc/releases/download/v%{bootstrap_version}/%{name}2-%{bootstrap_version}-linux-x86_64.tar.xz
-# Source1-md5:	1bc671b41ba59848e3d0ffe74c83fc7b
+# Source1-md5:	67b1a78ad268fa9ae191cde1f6ec4f29
 Source3:	macros.%{name}
 Patch0:		%{name}-include-path.patch
 Patch1:		%{name}-no-default-rpath.patch
 URL:		https://github.com/ldc-developers/ldc
-BuildRequires:	bash-completion
+# for llvm < 16
+#BuildRequires:	SPIRV-LLVM-Translator-devel
 BuildRequires:	cmake >= 3.13
 BuildRequires:	curl-devel
 BuildRequires:	gc
@@ -29,7 +32,8 @@ BuildRequires:	gc
 BuildRequires:	libconfig-devel
 BuildRequires:	libedit-devel
 BuildRequires:	libstdc++-devel
-BuildRequires:	llvm-devel >= 12
+BuildRequires:	llvm-devel >= 15.0
+BuildRequires:	llvm-devel < 20
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 2.008
 BuildRequires:	tar >= 1:1.22
@@ -112,7 +116,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}-%{subver}-src
 %patch -P0 -p1
 %patch -P1 -p1
 
@@ -144,13 +148,17 @@ cd ..
 
 %cmake \
 	-B build \
+	-DBUILD_LTO_LIBS:BOOL=ON \
 	-DMULTILIB:BOOL=OFF \
 	-DINCLUDE_INSTALL_DIR:PATH=%{_prefix}/lib/ldc/%{_target_platform}/include/d \
 	-DBASH_COMPLETION_COMPLETIONSDIR:PATH=%{bash_compdir} \
 %if %{with bootstrap}
 	-DD_COMPILER:PATH=$(pwd)/build-bootstrap2/build/bin/ldmd2 \
 %endif
+	-DLDC_INSTALL_LLVM_RUNTIME_LIBS:BOOL=ON \
+	-DLDC_INSTALL_LTOPLUGIN:BOOL=ON \
 	-DLDC_WITH_LLD:BOOL=OFF \
+	-DPHOBOS_SYSTEM_ZLIB:BOOL=ON \
 	%{nil}
 
 %{__cmake} --build build
@@ -185,43 +193,46 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldc2.conf
 %attr(755,root,root) %{_bindir}/ldc2
 %attr(755,root,root) %{_bindir}/ldmd2
+%attr(755,root,root) %{_bindir}/ldc-build-plugin
 %attr(755,root,root) %{_bindir}/ldc-build-runtime
 %attr(755,root,root) %{_bindir}/ldc-profdata
+%attr(755,root,root) %{_bindir}/ldc-profgen
 %attr(755,root,root) %{_bindir}/ldc-prune-cache
+%attr(755,root,root) %{_bindir}/timetrace2txt
+%attr(755,root,root) %{_libdir}/LLVMgold-ldc.so
+%{_libdir}/ldc_rt.dso.o
+%{_libdir}/libdruntime-ldc-debug-shared.so
+%{_libdir}/libdruntime-ldc-shared.so
+%{_libdir}/libphobos2-ldc-debug-shared.so
+%{_libdir}/libphobos2-ldc-shared.so
 %{_rpmconfigdir}/macros.d/macros.ldc
 %dir %{_prefix}/lib/ldc
 %dir %{_prefix}/lib/ldc/%{_target_platform}
 %dir %{_prefix}/lib/ldc/%{_target_platform}/include
 %dir %{_prefix}/lib/ldc/%{_target_platform}/include/d
-%{_prefix}/lib/ldc/%{_target_platform}/include/d/__builtins.di
+%{_prefix}/lib/ldc/%{_target_platform}/include/d/__importc_builtins.di
 %{_prefix}/lib/ldc/%{_target_platform}/include/d/core
 %{_prefix}/lib/ldc/%{_target_platform}/include/d/etc
 %{_prefix}/lib/ldc/%{_target_platform}/include/d/importc.h
 %{_prefix}/lib/ldc/%{_target_platform}/include/d/ldc
 %{_prefix}/lib/ldc/%{_target_platform}/include/d/object.d
 %{_prefix}/lib/ldc/%{_target_platform}/include/d/std
-%{_libdir}/ldc_rt.dso.o
-%{_libdir}/libdruntime-ldc-debug-shared.so
-%{_libdir}/libdruntime-ldc-shared.so
-%{_libdir}/libphobos2-ldc-debug-shared.so
-%{_libdir}/libphobos2-ldc-shared.so
 %{bash_compdir}/ldc2
 
 %files druntime
 %defattr(644,root,root,755)
-%doc runtime/druntime/README.md runtime/README runtime/druntime/LICENSE.txt
 %attr(755,root,root) %{_libdir}/libdruntime-ldc-debug-shared.so.*.*
-%ghost %{_libdir}/libdruntime-ldc-debug-shared.so.100
+%ghost %{_libdir}/libdruntime-ldc-debug-shared.so.110
 %attr(755,root,root) %{_libdir}/libdruntime-ldc-shared.so.*.*
-%ghost %{_libdir}/libdruntime-ldc-shared.so.100
+%ghost %{_libdir}/libdruntime-ldc-shared.so.110
 
 %files phobos
 %defattr(644,root,root,755)
-%doc runtime/phobos/LICENSE_1_0.txt
+%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.100
+%ghost %{_libdir}/libphobos2-ldc-debug-shared.so.110
 %attr(755,root,root) %{_libdir}/libphobos2-ldc-shared.so.*.*
-%ghost %{_libdir}/libphobos2-ldc-shared.so.100
+%ghost %{_libdir}/libphobos2-ldc-shared.so.110
 
 %if %{with geany}
 %files phobos-geany-tags
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ldc.git/commitdiff/c1e3246c47520f4f4c64463cd7fc8387543f3f38



More information about the pld-cvs-commit mailing list