Compare commits

...

7 Commits
epel9 ... i8e

58
.gitignore vendored

@ -1,57 +1 @@
/ldc-20130805git967b986.tar.xz
/ldc-phobos-20130805git89a2295.tar.xz
/ldc-druntime-20130805git6c6a4a1.tar.xz
/ldc-20131023git287e089.tar.xz
/ldc-phobos-20131023git89a2295.tar.xz
/ldc-druntime-20131023git822720b.tar.xz
/ldc-20130305git6e908ff.tar.xz
/ldc-druntime-20130305gitb20422e.tar.xz
/ldc-phobos-20130305git32fc550.tar.xz
/ldc-20140305git6e908ff.tar.xz
/ldc-druntime-20140305gitb20422e.tar.xz
/ldc-phobos-20140305git32fc550.tar.xz
/ldc-20140325git7492d06.tar.xz
/ldc-druntime-20140325gitb20422e.tar.xz
/ldc-phobos-20140325git32fc550.tar.xz
/ldc-0.13.0-beta1-src.tar.gz
/ldc-0.15.0-alpha1-src.tar.gz
/ldc-0.15.1-src.tar.gz
/ldc-0.15.2-beta1-src.tar.gz
/ldc-0.15.2-beta2-src.tar.gz
/ldc-0.16.0-alpha3-src.tar.gz
/ldc-0.16.1-src.tar.gz
/ldc-0.17.2-src.tar.gz
/ldc-1.1.0-beta3-src.tar.gz
/ldc-1.1.0-beta4-src.tar.gz
/ldc-1.1.0-beta6-src.tar.gz
/ldc-1.1.0-src.tar.gz
/ldc-0.17.3-src.tar.gz
/ldc-1.1.1-src.tar.gz
/ldc-1.3.0-beta2-src.tar.gz
/ldc-0.17.4-src.tar.gz
/ldc-1.3.0-src.tar.gz
/ldc-1.4.0-src.tar.gz
/ldc-1.8.0-beta1-src.tar.gz
/ldc-1.8.0-src.tar.gz
/ldc-1.10.0-src.tar.gz
/ldc-0.17.6-gita1a8a84-src.tar.gz
/ldc-1.11.0-beta1-src.tar.gz
/ldc-1.11.0-beta2-src.tar.gz
/ldc-1.11.0-src.tar.gz
/ldc-0.17.6-git79d2284-src.tar.gz
/ldc-1.12.0-src.tar.gz
/ldc-0.17.6-src.tar.gz
/ldc-1.14.0-src.tar.gz
/ldc-1.15.0-src.tar.gz
/ldc-1.19.0-src.tar.gz
/ldc-1.20.0-beta1-src.tar.gz
/ldc-1.20.0-src.tar.gz
/ldc-1.20.1-src.tar.gz
/ldc-1.23.0-src.tar.gz
/ldc-1.25.0-src.tar.gz
/ldc-1.25.1-src.tar.gz
/ldc-1.27.1-src.tar.gz
/ldc-1.30.0-src.tar.gz
/ldc-1.32.0-src.tar.gz
/ldc-1.32.1-src.tar.gz
/ldc-1.32.2-src.tar.gz
SOURCES/ldc-1.35.0-src.tar.gz

@ -0,0 +1 @@
b65cd012c58908cf0ada4b16b189adf9658fb549 SOURCES/ldc-1.35.0-src.tar.gz

@ -0,0 +1,24 @@
From 87baf4a6f87c6776ba8f5dad276fb77e32e80065 Mon Sep 17 00:00:00 2001
From: Kalev Lember <klember@redhat.com>
Date: Tue, 17 Oct 2023 10:44:24 +0200
Subject: [PATCH] LDC: Fix PPC support to compile without deprecation warnings
Fixes the following:
std/math/hardware.d(929): Deprecation: `asm` statement cannot be marked `@safe`, use `@system` or `@trusted` instead
---
std/math/hardware.d | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git ldc-1.35.0-src/runtime/phobos/std/math/hardware.d ldc-1.35.0-src/runtime/phobos/std/math/hardware.d
index 3e0c2fd6fbb..24fcbb89a63 100644
--- ldc-1.35.0-src/runtime/phobos/std/math/hardware.d
+++ ldc-1.35.0-src/runtime/phobos/std/math/hardware.d
@@ -926,7 +926,7 @@ private:
}
else version (PPC_Any)
{
- asm pure nothrow @nogc @safe
+ asm pure nothrow @nogc @trusted
{
`mtfsb0 24
mtfsb0 25

@ -1,9 +1,9 @@
%if 0%{?rhel}
#global llvm_version 15
%else
%global llvm_version 15
%global llvm_version 16
%endif
%global soversion 102
%global soversion 105
# bootstrapping is used for updating LDC to a newer version: it relies on an
# older, working LDC compiler in the buildroot, which is then used to build a
@ -16,15 +16,15 @@
Name: ldc
Epoch: 1
Version: 1.32.2%{?pre:~%{pre}}
Release: 2%{?dist}
Version: 1.35.0
Release: 1%{?dist}.inferit
Summary: LLVM D Compiler
# 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
URL: https://github.com/ldc-developers/ldc
Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}%{?pre:-%{pre}}/%{name}-%{version}%{?pre:-%{pre}}-src.tar.gz
Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
Source3: macros.%{name}
# Make sure /usr/include/d is in the include search path
@ -38,6 +38,9 @@ Patch1: ldc-no-default-rpath.patch
Patch2: 0001-Revert-Linux-Don-t-default-to-ld.gold-linker.patch
%endif
# https://github.com/ldc-developers/phobos/pull/72
Patch: fix-ppc-build.patch
ExclusiveArch: %{ldc_arches} ppc64le
BuildRequires: bash-completion
@ -58,13 +61,6 @@ Requires: %{name}-libs = %{epoch}:%{version}-%{release}
# Require gcc for linking
Requires: gcc
# Removed in F33
Obsoletes: ldc-druntime-devel < 1:1.23.0
Obsoletes: ldc-jit-devel < 1:1.23.0
Obsoletes: ldc-phobos-devel < 1:1.23.0
# Removed in F38
Obsoletes: ldc-phobos-geany-tags < 1:1.32.0
%description
LDC is a portable compiler for the D programming language with modern
optimization and code generation capabilities.
@ -75,11 +71,6 @@ of D, and relies on the LLVM Core libraries for code generation.
%package libs
Summary: LLVM D Compiler libraries
License: Boost
# Removed in F35
Obsoletes: ldc-jit < 1:1.27.1
# Merged into -libs in F35
Obsoletes: ldc-druntime < 1:1.27.1-2
Obsoletes: ldc-phobos < 1:1.27.1-2
%description libs
LDC is a portable compiler for the D programming language with modern
@ -88,7 +79,7 @@ optimization and code generation capabilities.
This package contains the Phobos D standard library and the D runtime library.
%prep
%autosetup -n %{name}-%{version}%{?pre:-%{pre}}-src -p1
%autosetup -n %{name}-%{version}-src -p1
%build
# This package appears to be failing because links to the LLVM plugins
@ -99,11 +90,10 @@ This package contains the Phobos D standard library and the D runtime library.
%global optflags %{optflags} -fno-strict-aliasing
%if %{with bootstrap}
tar xf %{SOURCE0}
mkdir build-bootstrap
pushd build-bootstrap
cmake -DLLVM_CONFIG:PATH=llvm-config%{?llvm_version:-%{llvm_version}} \
../%{name}-%{version}%{?pre:-%{pre}}-src
..
make %{?_smp_mflags}
popd
%endif
@ -132,6 +122,7 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc
%config(noreplace) %{_sysconfdir}/ldc2.conf
%{_bindir}/ldc2
%{_bindir}/ldmd2
%{_bindir}/ldc-build-plugin
%{_bindir}/ldc-build-runtime
%{_bindir}/ldc-profdata
%{_bindir}/ldc-prune-cache
@ -158,8 +149,25 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc
%{_libdir}/libphobos2-ldc-shared.so.%{soversion}*
%changelog
* Fri May 19 2023 Kalev Lember <klember@redhat.com> - 1:1.32.2-2
- Rebuild for llvm 15 on EPEL 8 and 9
* Thu Mar 28 2024 Alexey Lyubimov <a.lyubimov@msvsphere-os.ru> - 1:1.35.0-1.inferit
- Rebuilt for MSVSphere 8.9
* Fri Nov 17 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 1:1.35.0-1
- Rebuilt for MSVSphere 9.3
* Sun Oct 15 2023 Kalev Lember <klember@redhat.com> - 1:1.35.0-1
- Update to 1.35.0
- Drop old obsoletes
* Sun Aug 27 2023 Kalev Lember <klember@redhat.com> - 1:1.34.0-1
- Update to 1.34.0
- Build with llvm 16
* Mon Jul 24 2023 Kalev Lember <klember@redhat.com> - 1:1.33.0-1
- Update to 1.33.0
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.32.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sun May 14 2023 Kalev Lember <klember@redhat.com> - 1:1.32.2-1
- Update to 1.32.2

@ -1 +0,0 @@
SHA512 (ldc-1.32.2-src.tar.gz) = 1494c7e3905851dbb679b8c7a651f21b57fa58a6bfbf5bd83661829b69158cbd1c963db463fd6dbd60c1be1c739396b761376fc2978dd71dee968aaae3629e2b
Loading…
Cancel
Save