public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/dnf5] f45: spec: Fix bcond ordering so plugin_systemd_inhibit is enabled
Date: Fri, 04 Sep 2026 12:32:40 GMT	[thread overview]
Message-ID: <178852516092.1.11483234479019334563.rpms-dnf5-50ec74418466@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/dnf5
Branch : f45
Commit : 50ec744184665bb5fb180d4f31965152f80bd9cc
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-09-04T12:15:37+02:00
Stats  : +241/-63 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/dnf5/c/50ec744184665bb5fb180d4f31965152f80bd9cc?branch=f45

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 fa877f1..83af7e7 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)

                 reply	other threads:[~2026-09-04 12:32 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=178852516092.1.11483234479019334563.rpms-dnf5-50ec74418466@fedoraproject.org \
    --to=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