commit:     472650d23e012e92054ebd8c79da7d33e8415769
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 14:29:25 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 14:35:49 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=472650d2

x11-terms/kitty: fix kitty-tool exec bit in live with rework

Easy to miss changes to this (not limited to /usr/bin) or forget,
so just setup a generic way to preserve executable bits.

Could use xargs or so, but rather avoid using external version
of ebuild helpers if it's simple to.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-terms/kitty/kitty-9999.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/x11-terms/kitty/kitty-9999.ebuild 
b/x11-terms/kitty/kitty-9999.ebuild
index 66de305b3f00..c5d812b82614 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -135,8 +135,9 @@ src_install() {
        insinto /usr
        doins -r linux-package/.
 
-       fperms +x /usr/bin/kitty \
-               
/usr/$(get_libdir)/kitty/shell-integration/ssh/{askpass.py,kitty}
+       local execbit
+       mapfile -t execbit < <(find linux-package -type f -perm /+x -printf 
'/usr/%P\n' || die)
+       fperms +x "${execbit[@]}"
 }
 
 pkg_postinst() {

Reply via email to