public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-llvm] f45: Update to 23.1.1, disable debuginfo packages
@ 2026-09-21 19:48 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-09-21 19:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-llvm
Branch : f45
Commit : 9d6e5bf33e65e960b57e4e7a06634ebdc9054e21
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-09-21T18:54:55+02:00
Stats : +35/-16 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-llvm/c/9d6e5bf33e65e960b57e4e7a06634ebdc9054e21?branch=f45
Log:
Update to 23.1.1, disable debuginfo packages
---
diff --git a/.gitignore b/.gitignore
index 5ca50c8..8847945 100644
--- a/.gitignore
+++ b/.gitignore
@@ -85,3 +85,4 @@
/llvm-project-22.1.1.src.tar.xz
/llvm-project-22.1.2.src.tar.xz
/llvm-project-22.1.3.src.tar.xz
+/llvm-project-23.1.1.src.tar.xz
diff --git a/llvm-no-benchmarks.patch b/llvm-no-benchmarks.patch
index 1b71815..27e2e4f 100644
--- a/llvm-no-benchmarks.patch
+++ b/llvm-no-benchmarks.patch
@@ -1,7 +1,7 @@
-diff -rupN --no-dereference llvm-project-22.1.3.src/llvm/CMakeLists.txt llvm-project-22.1.3.src-new/llvm/CMakeLists.txt
---- llvm-project-22.1.3.src/llvm/CMakeLists.txt 2026-04-07 00:57:04.000000000 +0200
-+++ llvm-project-22.1.3.src-new/llvm/CMakeLists.txt 2026-04-13 11:09:08.709543986 +0200
-@@ -858,7 +858,7 @@ option(LLVM_INSTALL_GTEST
+diff -rupN --no-dereference llvm-project-23.1.1.src/llvm/CMakeLists.txt llvm-project-23.1.1.src-new/llvm/CMakeLists.txt
+--- llvm-project-23.1.1.src/llvm/CMakeLists.txt 2026-09-07 15:01:29.000000000 +0200
++++ llvm-project-23.1.1.src-new/llvm/CMakeLists.txt 2026-09-20 18:43:05.688692024 +0200
+@@ -937,7 +937,7 @@ option(LLVM_INSTALL_GTEST
option(LLVM_BUILD_BENCHMARKS "Add LLVM benchmark targets to the list of default
targets. If OFF, benchmarks still could be built using Benchmarks target." OFF)
diff --git a/llvm-shlib-syms.patch b/llvm-shlib-syms.patch
index 5394d1d..f2ce876 100644
--- a/llvm-shlib-syms.patch
+++ b/llvm-shlib-syms.patch
@@ -1,6 +1,6 @@
-diff -rupN --no-dereference llvm-project-22.1.3.src/llvm/tools/llvm-shlib/CMakeLists.txt llvm-project-22.1.3.src-new/llvm/tools/llvm-shlib/CMakeLists.txt
---- llvm-project-22.1.3.src/llvm/tools/llvm-shlib/CMakeLists.txt 2026-04-07 00:57:04.000000000 +0200
-+++ llvm-project-22.1.3.src-new/llvm/tools/llvm-shlib/CMakeLists.txt 2026-04-13 11:09:36.625375424 +0200
+diff -rupN --no-dereference llvm-project-23.1.1.src/llvm/tools/llvm-shlib/CMakeLists.txt llvm-project-23.1.1.src-new/llvm/tools/llvm-shlib/CMakeLists.txt
+--- llvm-project-23.1.1.src/llvm/tools/llvm-shlib/CMakeLists.txt 2026-09-07 15:01:29.000000000 +0200
++++ llvm-project-23.1.1.src-new/llvm/tools/llvm-shlib/CMakeLists.txt 2026-09-20 18:44:24.391297322 +0200
@@ -47,7 +47,7 @@ if(LLVM_BUILD_LLVM_DYLIB)
# if there are symbols that are marked explicitly as dllexport, we'd only
# export them and nothing else. Therefore, add --export-all-symbols to
diff --git a/mingw-llvm.spec b/mingw-llvm.spec
index 4297b1f..32fe636 100644
--- a/mingw-llvm.spec
+++ b/mingw-llvm.spec
@@ -1,5 +1,10 @@
%{?mingw_package_header}
+# FIXME Debuginfo is huuuuge
+# https://forge.fedoraproject.org/releng/tickets/issues/13282
+%bcond debuginfo 0
+
+%if %{with debuginfo}
# Disable debuginfo subpackages and debugsource packages for now to use old logic
%undefine _debugsource_packages
%undefine _debuginfo_subpackages
@@ -7,13 +12,15 @@
# Override the __debug_install_post argument as this package
# contains both native as well as cross compiled binaries
%global __debug_install_post %%{mingw_debug_install_post}; %{_bindir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_find_debuginfo_opts} "%{_builddir}/%%{?buildsubdir}" %{nil}
-
+%else
+%global debug_package %{nil}
+%endif
%global pkgname llvm
-%global libver 22
+%global libver 23
Name: mingw-%{pkgname}
-Version: 22.1.3
+Version: 23.1.1
Release: 1%{?dist}
Summary: LLVM for MinGW
# i686: ld: out of memory allocating 1174616688 bytes after a total of 1517842432 bytes
@@ -101,8 +108,9 @@ BuildArch: noarch
%description -n mingw64-%{pkgname}-tools
LLVM for MinGW Windows - Runtime tools.
-
+%if %{with debuginfo}
%{?mingw_debug_package}
+%endif
%prep
@@ -112,11 +120,18 @@ LLVM for MinGW Windows - Runtime tools.
%build
pushd llvm
+%if %{with debuginfo}
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
# Technically only necessary on %%{arm}, but effectively needed everywhere to avoid the build failing due to
# The following noarch package built differently on different architectures: [...]
-mingw32_cflags_="%(echo %mingw32_cflags | sed 's/-g /-g1 /')"
-mingw64_cflags_="%(echo %mingw64_cflags | sed 's/-g /-g1 /')"
+mingw32_cflags_="%(echo %mingw32_cflags | sed 's/-g /-g0 /')"
+mingw64_cflags_="%(echo %mingw64_cflags | sed 's/-g /-g0 /')"
+cmakeBuildType="RelWithDebInfo"
+%else
+mingw32_cflags_="%(echo %mingw32_cflags | sed 's/-g / /')"
+mingw64_cflags_="%(echo %mingw64_cflags | sed 's/-g / /')"
+cmakeBuildType="Release"
+%endif
export MINGW32_CFLAGS="${mingw32_cflags_}"
export MINGW32_CXXFLAGS="${mingw32_cflags_}"
export MINGW64_CFLAGS="${mingw64_cflags_}"
@@ -138,11 +153,11 @@ SET(CMAKE_EXE_LINKER_FLAGS "%{__global_ldflags}")
EOF
# Build native llvm-tblgen, rather than depending on version-matching native package
-%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SKIP_RPATH=ON -DBUILD_SHARED_LIBS=OFF -DLLVM_INCLUDE_TESTS=OFF
+%cmake -DCMAKE_BUILD_TYPE=$cmakeBuildType -DCMAKE_SKIP_RPATH=ON -DBUILD_SHARED_LIBS=OFF -DLLVM_INCLUDE_TESTS=OFF
%cmake_build --target llvm-tblgen
CMAKE_OPTS="
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_BUILD_TYPE=$cmakeBuildType \
-DLLVM_INCLUDE_DOCS=OFF \
-DLLVM_INCLUDE_UTILS=OFF \
-DLLVM_INCLUDE_EXAMPLES=OFF \
@@ -255,6 +270,9 @@ popd
%changelog
+* Fri Sep 18 2026 Sandro Mani <manisandro@gmail.com> - 23.1.1-1
+- Update to 23.1.1
+
* Mon Apr 13 2026 Sandro Mani <manisandro@gmail.com> - 22.1.3-1
- Update to 22.1.3
diff --git a/sources b/sources
index c4ed857..b2af11d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (llvm-project-22.1.3.src.tar.xz) = 3557a955d55471671ae2f7b9c809affd59a29a6fb1e70a2a5d040dc1c6376246deb0635be8ca36cae09112981760e9afb128c822e5554bd722589fb8dee3f0df
+SHA512 (llvm-project-23.1.1.src.tar.xz) = e51c45f01e95272771bfee8382b213a2e21d3c62e273ff58967cfe40b87f45d2b37a4797b8b83fab025ed7a0ad32adef48406ade2d049da3d7f1799b30edea39
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-21 19:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 19:48 [rpms/mingw-llvm] f45: Update to 23.1.1, disable debuginfo packages Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox