From e103095cfaaaf1fa879c506e59af189abb61d81d Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 22 Nov 2022 08:57:24 -0500 Subject: x11-terms/kitty: avoid using go-module.eclass after all Almost nothing to do, rather than mess with it might as well skip. Reveals that kitty-tool was being pre-stripped, so prevent that and let portage strip it which actually seems perfectly fine. Signed-off-by: Ionen Wolkens --- x11-terms/kitty/kitty-9999.ebuild | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'x11-terms/kitty/kitty-9999.ebuild') diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild index d9660ea7b4f4..06e7d84c2b81 100644 --- a/x11-terms/kitty/kitty-9999.ebuild +++ b/x11-terms/kitty/kitty-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) -inherit edo go-module optfeature multiprocessing python-single-r1 toolchain-funcs xdg +inherit edo optfeature multiprocessing python-single-r1 toolchain-funcs xdg if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -60,19 +60,20 @@ DEPEND=" wayland? ( dev-libs/wayland-protocols )" BDEPEND=" ${PYTHON_DEPS} + dev-lang/go sys-libs/ncurses virtual/pkgconfig test? ( $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]') ) wayland? ( dev-util/wayland-scanner )" [[ ${PV} == 9999 ]] || BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )" -# override go-module.eclass' .* to only consider the Go written binary -QA_FLAGS_IGNORED="usr/bin/kitty-tool" +QA_FLAGS_IGNORED="usr/bin/kitty-tool" # written in Go src_unpack() { if [[ ${PV} == 9999 ]]; then git-r3_src_unpack - go-module_live_vendor + cd "${S}" || die + edo go mod vendor else verify-sig_src_unpack fi @@ -86,6 +87,7 @@ src_prepare() { -e "$(usev !X '/gl_libs =/s/=.*/= []/')" \ -e "/num_workers =/s/=.*/= $(makeopts_jobs)/" \ -e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//' \ + -e "s/ld_flags.append('-s')/pass/" \ -i setup.py || die # test relies on 'who' command which doesn't detect users with pid-sandbox @@ -128,11 +130,6 @@ src_install() { fperms +x /usr/bin/kitty \ /usr/$(get_libdir)/kitty/shell-integration/ssh/{askpass.py,kitty} - - # go-module.eclass force-restricts strip, allow except for Go - # note: placebo given this is not respected by portage (bug #697960) - dostrip / - dostrip -x /usr/bin/kitty-tool } pkg_postinst() { -- cgit v1.2.3-65-gdbad