new file mode 100644
@@ -0,0 +1,27 @@
+From d5083de53bb01834eaac134a62b836d5cc7843e9 Mon Sep 17 00:00:00 2001
+From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+Date: Thu, 19 Nov 2026 13:07:24 +0000
+Subject: [PATCH] Do not hardcode /etc bash completion directory
+
+Same as dnf4's 0001-Do-not-hardcode-etc-and-systemd-unit-directories.patch,
+dropped in the dnf5 upgrade.
+
+Upstream-Status: Inappropriate [oe-core specific]
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ dnf5/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dnf5/CMakeLists.txt b/dnf5/CMakeLists.txt
+index 8fcf59cf..4b79938b 100644
+--- a/dnf5/CMakeLists.txt
++++ b/dnf5/CMakeLists.txt
+@@ -60,7 +60,7 @@ find_package(bash-completion)
+ if(BASH_COMPLETION_FOUND)
+ message(STATUS "Using bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}")
+ else()
+- set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d")
++ set (BASH_COMPLETION_COMPLETIONSDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/bash_completion.d")
+ message (STATUS "Using fallback bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}")
+ endif()
+
@@ -37,6 +37,7 @@ SRC_URI = "\
file://0003-Do-not-hardcode-system_cachedir.patch \
file://0004-add-support-for-gcc-12-and-below.patch \
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"
This issue occurs when building nativesdk-dnf. ERROR: nativesdk-dnf-5.4.8.0-r0 do_package: QA Issue: nativesdk-dnf: Files/directories were installed but not shipped in any package: /etc /etc/bash_completion.d /etc/bash_completion.d/dnf5 Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. nativesdk-dnf: 3 installed and not shipped files. [installed-vs-shipped] Fix same as dnf4's 0001-Do-not-hardcode-etc-and-systemd-unit-directories.patch Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- ...rdcode-etc-bash-completion-directory.patch | 27 +++++++++++++++++++ meta/recipes-devtools/dnf/dnf_5.4.8.0.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-etc-bash-completion-directory.patch