Skip to content

Commit

Permalink
cmake.eclass: bug 811486 escape find patterns
Browse files Browse the repository at this point in the history
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@boet.cc>
Closes: gentoo/gentoo#35125
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
  • Loading branch information
nabbi authored and a17r committed Apr 6, 2024
1 parent 7226fe5 commit 76ad139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/cmake.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,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
Expand Down

0 comments on commit 76ad139

Please sign in to comment.