From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 611C615806E for ; Fri, 26 May 2023 04:03:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC0A6E0877; Fri, 26 May 2023 04:02:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 46FB9E0866 for ; Fri, 26 May 2023 04:02:35 +0000 (UTC) From: Ionen Wolkens To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] [PATCH 1/4] profiles/use.desc: create USE=strip global USE flag Date: Fri, 26 May 2023 00:02:16 -0400 Message-Id: <20230526040219.10852-2-ionen@gentoo.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526040219.10852-1-ionen@gentoo.org> References: <20230526040219.10852-1-ionen@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: d4c72bde-ef08-4a3f-90c8-13b3c121408e X-Archives-Hash: 3e05a27e048b36908900e0b68aac56f9 Primarily intended for use by linux-mod-r1.eclass, which needs a global IUSE to control stripping of kernel modules *before* signatures and compression (alternative would be to simply never strip, but that seem sub-optimal). Originally meant to be USE=modules-strip or similar, but this can have a more general use case when portage does not know how to strip special files properly while the ebuild does. Notable is mingw ebuilds (wine-*, dxvk, vkd3d-proton, mingw64-*). If portage uses x86_64-pc-linux-strip on, e.g. mingw64-toolchain's runtime libraries, then at least the 32bit toolchain ends up broken and cannot compile anything anymore. But then dostrip -x results in unstripped files while we can use x86_64-w64-mingw32-strip in the ebuild potentially saving 60MB+. Currently this is done through USE=debug, but does not feel fully fitting given this isn't about adding debugging paths (or even symbols, or anything) and is merely "do not strip". No USE in ::gentoo currently contain the word "strip" and defining it should not conflict. Signed-off-by: Ionen Wolkens --- profiles/use.desc | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/use.desc b/profiles/use.desc index 47438c839071..aa5d16dd652e 100644 --- a/profiles/use.desc +++ b/profiles/use.desc @@ -301,6 +301,7 @@ ssl - Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer startup-notification - Enable application startup event feedback mechanism static - !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically static-libs - Build static versions of dynamic libraries as well +strip - Allow symbol stripping to be performed by the ebuild for special files subversion - Enable subversion (version control system) support suid - Enable setuid root program(s) svg - Add support for SVG (Scalable Vector Graphics) -- 2.40.1