commit:     60a395b82ac3d490ea94fea3721fac9b041e3cd0
Author:     Nic Boet <nic <AT> boet <DOT> cc>
AuthorDate: Thu Feb  1 03:48:21 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 17:46:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60a395b8

cmake.eclass: bug 811486 escape find patterns

Modify cmake_src_prepare to qoute escape filenames
within the find search patterns
This resolves build issues with some EAPI 7 packages,
i.e. sys-fs/dislocker via catalyst

Bug: https://bugs.gentoo.org/811486
Signed-off-by: Nic Boet <nic <AT> boet.cc>
Closes: https://github.com/gentoo/gentoo/pull/35125
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/cmake.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index de43bd017768..b7852355b90b 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -388,7 +388,7 @@ cmake_src_prepare() {
        local name
        for name in "${modules_list[@]}" ; do
                if [[ ${EAPI} == 7 ]]; then
-                       find "${S}" -name ${name}.cmake -exec rm -v {} + || die
+                       find "${S}" -name "${name}.cmake" -exec rm -v {} + || 
die
                else
                        find -name "${name}.cmake" -exec rm -v {} + || die
                fi

Reply via email to