public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/libdeflate] epel9: In F45+/EL11+, don’t build programs, only libraries, on MinGW
Date: Sun, 23 Aug 2026 11:33:04 GMT [thread overview]
Message-ID: <178748478467.1.1518453762048381908.rpms-libdeflate-9527a1989c5e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libdeflate
Branch : epel9
Commit : 9527a1989c5e45237707b4e2cdf7716ef6314d7a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-23T12:31:59+01:00
Stats : +25/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libdeflate/c/9527a1989c5e45237707b4e2cdf7716ef6314d7a?branch=epel9
Log:
In F45+/EL11+, don’t build programs, only libraries, on MinGW
- Works around and closes RHBZ#2481005
---
diff --git a/libdeflate.spec b/libdeflate.spec
index abb446a..a4558b5 100644
--- a/libdeflate.spec
+++ b/libdeflate.spec
@@ -2,6 +2,10 @@
# repositories, *and* are available on x86_64 only. We therefore choose to omit
# the MinGW subpackages altogether.
%bcond mingw 0
+# Work around linker failures on MinGW32 with MinGW C libraries version 14,
+# https://bugzilla.redhat.com/show_bug.cgi?id=2481005, by omitting the
+# mingw{32,64}-libdeflate-utils subpackages.
+%bcond mingw_utils %[ 0%{?fedora} < 45 && 0%{?rhel} < 11 ]
Name: libdeflate
Version: 1.25
@@ -53,29 +57,41 @@ Binaries from libdeflate.
Summary: MinGW Windows %{name} library
BuildArch: noarch
+%if %{without mingw_utils}
+Obsoletes: mingw32-%{name}-utils < 1.25-4
+%endif
+
%description -n mingw32-%{name}
MinGW Windows %{name} library.
+%if %{with mingw_utils}
%package -n mingw32-%{name}-utils
Summary: MinGW Windows %{name} binaries
BuildArch: noarch
%description -n mingw32-%{name}-utils
MinGW Windows %{name} binaries.
+%endif
%package -n mingw64-%{name}
Summary: MinGW Windows %{name} library
BuildArch: noarch
+%if %{without mingw_utils}
+Obsoletes: mingw64-%{name}-utils < 1.25-4
+%endif
+
%description -n mingw64-%{name}
MinGW Windows %{name} library.
+%if %{with mingw_utils}
%package -n mingw64-%{name}-utils
Summary: MinGW Windows %{name} binaries
BuildArch: noarch
%description -n mingw64-%{name}-utils
MinGW Windows %{name} binaries.
+%endif
%{?mingw_debug_package}
%endif
@@ -102,7 +118,11 @@ cmake_opts="\
%if %{with mingw}
# MinGW build
-%mingw_cmake $cmake_opts -DLIBDEFLATE_BUILD_TESTS:BOOL=OFF
+%mingw_cmake $cmake_opts \
+%if %{without mingw_utils}
+ -DLIBDEFLATE_BUILD_GZIP:BOOL=OFF \
+%endif
+ -DLIBDEFLATE_BUILD_TESTS:BOOL=OFF
%mingw_make
%endif
@@ -142,9 +162,11 @@ cmake_opts="\
%{mingw32_libdir}/cmake/libdeflate/
%{mingw32_includedir}/libdeflate.h
+%if %{with mingw_utils}
%files -n mingw32-%{name}-utils
%{mingw32_bindir}/libdeflate-gzip.exe
%{mingw32_bindir}/libdeflate-gunzip.exe
+%endif
%files -n mingw64-%{name}
%{mingw64_bindir}/libdeflate-0.dll
@@ -153,10 +175,12 @@ cmake_opts="\
%{mingw64_libdir}/cmake/libdeflate/
%{mingw64_includedir}/libdeflate.h
+%if %{with mingw_utils}
%files -n mingw64-%{name}-utils
%{mingw64_bindir}/libdeflate-gzip.exe
%{mingw64_bindir}/libdeflate-gunzip.exe
%endif
+%endif
%changelog
%autochangelog
reply other threads:[~2026-08-23 11:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178748478467.1.1518453762048381908.rpms-libdeflate-9527a1989c5e@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox