public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dnf5] f44: spec: Fix bcond ordering so plugin_systemd_inhibit is enabled
@ 2026-09-04 12:33
0 siblings, 0 replies; only message in thread
From: @ 2026-09-04 12:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dnf5
Branch : f44
Commit : 0b5b7119f282e61421dd6a32cfed5f439b0b3b81
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-09-04T14:33:09+02:00
Stats : +241/-63 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/dnf5/c/0b5b7119f282e61421dd6a32cfed5f439b0b3b81?branch=f44
Log:
spec: Fix bcond ordering so plugin_systemd_inhibit is enabled
---
diff --git a/0001-spec-Fix-bcond-ordering-so-plugin_systemd_inhibit-is.patch b/0001-spec-Fix-bcond-ordering-so-plugin_systemd_inhibit-is.patch
new file mode 100644
index 0000000..2f14046
--- /dev/null
+++ b/0001-spec-Fix-bcond-ordering-so-plugin_systemd_inhibit-is.patch
@@ -0,0 +1,173 @@
+From 009c681d320cbf9f78c3a45be7c652d9698d953b Mon Sep 17 00:00:00 2001
+From: Marek Blaha <mblaha@redhat.com>
+Date: Fri, 21 Aug 2026 10:10:47 +0000
+Subject: [PATCH] spec: Fix bcond ordering so plugin_systemd_inhibit is enabled
+
+The %bcond for systemd was declared after plugin_systemd_inhibit
+already checked it, so %{with systemd} evaluated to false and
+the plugin was silently disabled.
+
+Also reorder all bcond declarations into logical groups (toolchain, core
+features, main components, plugins, documentation, language bindings,
+testing).
+
+Signed-off-by: Marek Blaha <mblaha@redhat.com>
+---
+ dnf5.spec | 129 ++++++++++++++++++++++++++++--------------------------
+ 1 file changed, 66 insertions(+), 63 deletions(-)
+
+diff --git a/dnf5.spec b/dnf5.spec
+index 979ad52d4..4e7904c05 100644
+--- a/dnf5.spec
++++ b/dnf5.spec
+@@ -3,13 +3,77 @@
+ %global project_version_minor 4
+ %global project_version_micro 0
+
+-%bcond dnf5_obsoletes_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 10]
++# ========== build options ==========
++
++# Toolchain
++%bcond_with clang
++%bcond_with sanitizers
+
++# Core features
++%bcond dnf5_obsoletes_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 10]
++%bcond_without acl
++%bcond_without comps
+ %if 0%{?rhel} >= 11
+-%bcond_with modulemd
++%bcond_with modulemd
+ %else
+ %bcond_without modulemd
+ %endif
++%bcond_without systemd
++# Disable SOLVER_FLAG_FOCUS_NEW only for RHEL
++%if 0%{?rhel} && 0%{?rhel} < 11
++%bcond_with focus_new
++%else
++%bcond_without focus_new
++%endif
++
++# Main components
++%bcond_without dnf5
++%bcond_without dnf5daemon_client
++%bcond_without dnf5daemon_server
++%bcond_without libdnf_cli
++
++# Plugins
++%bcond_without dnf5_plugins
++%bcond_without plugin_actions
++%bcond_without plugin_appstream
++%bcond_without plugin_expired_pgp_keys
++%if 0%{?rhel} >= 10
++%bcond_with plugin_local
++%else
++%bcond_without plugin_local
++%endif
++%bcond_without plugin_manifest
++%bcond_without plugin_rhsm
++%if %{with systemd}
++%bcond_without plugin_systemd_inhibit
++%else
++%bcond_with plugin_systemd_inhibit
++%endif
++%bcond_without python_plugins_loader
++
++# Documentation
++%bcond_with html
++%if 0%{?rhel} == 8
++%bcond_with man
++%else
++%bcond_without man
++%endif
++
++# Language bindings
++# TODO Go bindings fail to build, disable for now
++%bcond_with go
++%bcond_without perl5
++%bcond_without python3
++%bcond_without ruby
++
++# Testing
++%bcond_without tests
++%bcond_with performance_tests
++%bcond_with dnf5daemon_tests
++
++%if %{with clang}
++%global toolchain clang
++%endif
+
+ Name: dnf5
+ Version: %{project_version_prime}.%{project_version_major}.%{project_version_minor}.%{project_version_micro}
+@@ -81,67 +145,6 @@ Provides: dnf5-command(upgrade)
+ Provides: dnf5-command(versionlock)
+
+
+-# ========== build options ==========
+-
+-%bcond_without dnf5daemon_client
+-%bcond_without dnf5daemon_server
+-%bcond_without libdnf_cli
+-%bcond_without dnf5
+-%bcond_without dnf5_plugins
+-%bcond_without plugin_actions
+-%bcond_without plugin_appstream
+-%bcond_without plugin_expired_pgp_keys
+-%bcond_without plugin_rhsm
+-%bcond_without plugin_manifest
+-%bcond_without python_plugins_loader
+-
+-%if 0%{?rhel} >= 10
+-%bcond_with plugin_local
+-%else
+-%bcond_without plugin_local
+-%endif
+-
+-%if %{with systemd}
+-%bcond_without plugin_systemd_inhibit
+-%else
+-%bcond_with plugin_systemd_inhibit
+-%endif
+-
+-%bcond_without acl
+-%bcond_without comps
+-
+-%bcond_without systemd
+-
+-%bcond_with html
+-%if 0%{?rhel} == 8
+-%bcond_with man
+-%else
+-%bcond_without man
+-%endif
+-
+-# TODO Go bindings fail to build, disable for now
+-%bcond_with go
+-%bcond_without perl5
+-%bcond_without python3
+-%bcond_without ruby
+-
+-%bcond_with clang
+-%bcond_with sanitizers
+-%bcond_without tests
+-%bcond_with performance_tests
+-%bcond_with dnf5daemon_tests
+-
+-# Disable SOLVER_FLAG_FOCUS_NEW only for RHEL
+-%if 0%{?rhel} && 0%{?rhel} < 11
+-%bcond_with focus_new
+-%else
+-%bcond_without focus_new
+-%endif
+-
+-%if %{with clang}
+- %global toolchain clang
+-%endif
+-
+ # ========== versions of dependencies ==========
+
+ %if %{with modulemd}
+--
+2.55.0
+
diff --git a/dnf5.spec b/dnf5.spec
index e270216..22785d0 100644
--- a/dnf5.spec
+++ b/dnf5.spec
@@ -3,13 +3,77 @@
%global project_version_minor 4
%global project_version_micro 0
-%bcond dnf5_obsoletes_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 10]
+# ========== build options ==========
+
+# Toolchain
+%bcond_with clang
+%bcond_with sanitizers
+# Core features
+%bcond dnf5_obsoletes_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 10]
+%bcond_without acl
+%bcond_without comps
%if 0%{?rhel} >= 11
-%bcond_with modulemd
+%bcond_with modulemd
%else
%bcond_without modulemd
%endif
+%bcond_without systemd
+# Disable SOLVER_FLAG_FOCUS_NEW only for RHEL
+%if 0%{?rhel} && 0%{?rhel} < 11
+%bcond_with focus_new
+%else
+%bcond_without focus_new
+%endif
+
+# Main components
+%bcond_without dnf5
+%bcond_without dnf5daemon_client
+%bcond_without dnf5daemon_server
+%bcond_without libdnf_cli
+
+# Plugins
+%bcond_without dnf5_plugins
+%bcond_without plugin_actions
+%bcond_without plugin_appstream
+%bcond_without plugin_expired_pgp_keys
+%if 0%{?rhel} >= 10
+%bcond_with plugin_local
+%else
+%bcond_without plugin_local
+%endif
+%bcond_without plugin_manifest
+%bcond_without plugin_rhsm
+%if %{with systemd}
+%bcond_without plugin_systemd_inhibit
+%else
+%bcond_with plugin_systemd_inhibit
+%endif
+%bcond_without python_plugins_loader
+
+# Documentation
+%bcond_with html
+%if 0%{?rhel} == 8
+%bcond_with man
+%else
+%bcond_without man
+%endif
+
+# Language bindings
+# TODO Go bindings fail to build, disable for now
+%bcond_with go
+%bcond_without perl5
+%bcond_without python3
+%bcond_without ruby
+
+# Testing
+%bcond_without tests
+%bcond_with performance_tests
+%bcond_with dnf5daemon_tests
+
+%if %{with clang}
+%global toolchain clang
+%endif
Name: dnf5
Version: %{project_version_prime}.%{project_version_major}.%{project_version_minor}.%{project_version_micro}
@@ -18,6 +82,7 @@ Summary: Command-line package manager
License: GPL-2.0-or-later
URL: https://github.com/rpm-software-management/dnf5
Source0: %{url}/archive/%{version}/dnf5-%{version}.tar.gz
+Patch1: 0001-spec-Fix-bcond-ordering-so-plugin_systemd_inhibit-is.patch
Requires: libdnf5%{?_isa} = %{version}-%{release}
Requires: libdnf5-cli%{?_isa} = %{version}-%{release}
@@ -81,67 +146,6 @@ Provides: dnf5-command(upgrade)
Provides: dnf5-command(versionlock)
-# ========== build options ==========
-
-%bcond_without dnf5daemon_client
-%bcond_without dnf5daemon_server
-%bcond_without libdnf_cli
-%bcond_without dnf5
-%bcond_without dnf5_plugins
-%bcond_without plugin_actions
-%bcond_without plugin_appstream
-%bcond_without plugin_expired_pgp_keys
-%bcond_without plugin_rhsm
-%bcond_without plugin_manifest
-%bcond_without python_plugins_loader
-
-%if 0%{?rhel} >= 10
-%bcond_with plugin_local
-%else
-%bcond_without plugin_local
-%endif
-
-%if %{with systemd}
-%bcond_without plugin_systemd_inhibit
-%else
-%bcond_with plugin_systemd_inhibit
-%endif
-
-%bcond_without acl
-%bcond_without comps
-
-%bcond_without systemd
-
-%bcond_with html
-%if 0%{?rhel} == 8
-%bcond_with man
-%else
-%bcond_without man
-%endif
-
-# TODO Go bindings fail to build, disable for now
-%bcond_with go
-%bcond_without perl5
-%bcond_without python3
-%bcond_without ruby
-
-%bcond_with clang
-%bcond_with sanitizers
-%bcond_without tests
-%bcond_with performance_tests
-%bcond_with dnf5daemon_tests
-
-# Disable SOLVER_FLAG_FOCUS_NEW only for RHEL
-%if 0%{?rhel} && 0%{?rhel} < 11
-%bcond_with focus_new
-%else
-%bcond_without focus_new
-%endif
-
-%if %{with clang}
- %global toolchain clang
-%endif
-
# ========== versions of dependencies ==========
%if %{with modulemd}
@@ -1202,6 +1206,7 @@ mkdir -p %{buildroot}%{_libdir}/libdnf5/plugins
* Fri Aug 21 2026 Packit <hello@packit.dev> - 5.4.4.0-1
- Update to version 5.4.4.0
- Correct libdnf5-cli license to "GPL-2.0-or-later AND LGPL-2.1-or-later"
+- spec: Fix bcond ordering so plugin_systemd_inhibit is enabled
* Wed Aug 19 2026 Petr Pisar <ppisar@redhat.com> - 5.4.3.0-2
- Restore ABI (upstream GH#2869)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-04 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 12:33 [rpms/dnf5] f44: spec: Fix bcond ordering so plugin_systemd_inhibit is enabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox