diff mbox series

[1/2] dnf: Replace systemd unit dir patch with EXTRA_OECMAKE

Message ID 20261124085335.68851-2-jaipaul.cheernam@est.tech
State New
Headers show
Series dnf5 patches | expand

Commit Message

Jaipaul Cheernam Nov. 24, 2026, 8:53 a.m. UTC
- Drop 0001-Do-not-hardcode-the-systemd-unit-directory.patch and pass
same as EXTRA_OECMAKE as upstream supports it through CACHE variables [1]

[1] https://github.com/rpm-software-management/dnf5/commit/4e1aa3f0ef555b9c003a0ca5c3ca42e0cf214be5

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 ...-hardcode-the-systemd-unit-directory.patch | 29 -------------------
 meta/recipes-devtools/dnf/dnf_5.4.8.0.bb      |  2 +-
 2 files changed, 1 insertion(+), 30 deletions(-)
 delete mode 100644 meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch b/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch
deleted file mode 100644
index 4360139a26a..00000000000
--- a/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch
+++ /dev/null
@@ -1,29 +0,0 @@ 
-From fd24b56096d436da4ffe5e560ac3aa34000a4d2e Mon Sep 17 00:00:00 2001
-From: Adam Duskett <adam.duskett@amarulasolutions.com>
-Date: Thu, 15 Oct 2026 11:54:09 +0200
-Subject: [PATCH] Do not hardcode the systemd unit directory
-
-Upstream-Status: Inappropriate [oe-core specific]
-
-Rebased for 5.4.7.0
-Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 9bc01ee..6fbc338 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -7,7 +7,7 @@ project(dnf5 LANGUAGES CXX C VERSION ${VERSION_PRIME}.${VERSION_MAJOR}.${VERSION
- cmake_policy(VERSION ${CMAKE_VERSION})
- 
- list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
--set(SYSTEMD_DIR "/usr/lib/systemd/system" CACHE PATH "Directory for systemd unit files")
-+set(SYSTEMD_DIR $ENV{systemd_system_unitdir} CACHE PATH "Directory for systemd unit files")
- set(TMPFILES_DIR "/usr/lib/tmpfiles.d" CACHE PATH "Directory for systemd tmpfiles.d files")
- set(AUTO_IMPORT_KEYS_DIRS "/usr/share/pki/rpm-gpg:/etc/pki/rpm-gpg" CACHE STRING
-     "Colon-separated list of directories of OpenPGP keys trusted by auto_import_local_keys")
--- 
-2.56.0
-
diff --git a/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb b/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb
index f2107016e4e..9536552c3eb 100644
--- a/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb
+++ b/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb
@@ -39,7 +39,6 @@  SRC_URI = "\
     file://0005-libdnf-fix-arm-arch-mapping-issues-for-qemuarmv5.patch \
     file://0001-Do-not-hardcode-etc-bash-completion-directory.patch \
 "
-SRC_URI:append:class-native = " file://0001-Do-not-hardcode-the-systemd-unit-directory.patch"
 SRCREV = "01329a46d840894d9fac207f06ed5bc37e752612"
 
 inherit bash-completion cmake gettext pkgconfig siteinfo systemd
@@ -99,6 +98,7 @@  EXTRA_OECMAKE:append:class-native = " \
     -DWITH_DNF5_PLUGINS=OFF \
     -DWITH_PLUGIN_MANIFEST=OFF \
     -DWITH_SYSTEMD=OFF \
+    -DSYSTEMD_DIR=${systemd_system_unitdir} \
 "
 
 # Create a symlink called 'dnf' as 'make install' does not do it, but