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] rawhide: In F45+/EL11+, don’t build programs, only libraries, on MinGW
Date: Mon, 15 Jun 2026 14:17:17 GMT [thread overview]
Message-ID: <178153303718.1.1813047972361073975.rpms-libdeflate-ac9afc6e4f79@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libdeflate
Branch : rawhide
Commit : ac9afc6e4f79c9a1d706bb542043dae20b22774f
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-15T12:46:03+01:00
Stats : +25/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libdeflate/c/ac9afc6e4f79c9a1d706bb542043dae20b22774f?branch=rawhide
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 2d2a30c..d04c95e 100644
--- a/libdeflate.spec
+++ b/libdeflate.spec
@@ -1,4 +1,8 @@
%bcond mingw 1
+# 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
@@ -50,29 +54,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
@@ -99,7 +115,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
@@ -139,9 +159,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
@@ -150,10 +172,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-06-15 14:17 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=178153303718.1.1813047972361073975.rpms-libdeflate-ac9afc6e4f79@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