From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1610896-garchives=archives.gentoo.org@lists.gentoo.org> 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 DFF01158041 for <garchives@archives.gentoo.org>; Thu, 14 Mar 2024 06:40:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9520E2A15; Thu, 14 Mar 2024 06:40:25 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D34CE2A15 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Mar 2024 06:40:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BA5AB33BDF5 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Mar 2024 06:40:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 296581504 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Mar 2024 06:40:23 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1710398384.f7adbdf82e5916dbad4b53e415ac66bceb0fd938.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ruff/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/ruff/ruff-0.3.0-r1.ebuild X-VCS-Directories: dev-util/ruff/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f7adbdf82e5916dbad4b53e415ac66bceb0fd938 X-VCS-Branch: master Date: Thu, 14 Mar 2024 06:40:23 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6cadb2d0-82ad-4546-a37d-ff1bcfedf30b X-Archives-Hash: 5d7b71c5a504e04b5bab4e8da5bdc103 commit: f7adbdf82e5916dbad4b53e415ac66bceb0fd938 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Fri Mar 1 03:40:08 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 14 06:39:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7adbdf8 dev-util/ruff: cut down on number of programs built / installed It is neither necessary nor desirable to compile and install every conceivable crate in the ruff source code. - ruff_dev is "an internal CLI for developers of Ruff" - ruff_python_formatter is just the source code for `ruff format`, but compiled standalone with a barebones main.rs for faster dev iteration - libruff_wasm.so exists solely to implement https://play.ruff.rs which would matter if we were packaging www-apps/ruff, or if we were using `--target web`, neither of which is true - libruff_macros.so is an internal proc-macro and it makes no sense that it should build a .so to begin with... We only care about two things: - ruff, the cli program - ruff_shrinking, which is a debug tool for producing minimal testcases of an issue. It is theoretically useful, so can't hurt to distribute. * FILES:-usr/bin/ruff_dev * FILES:-usr/bin/ruff_python_formatter * FILES:-usr/lib64/libruff_macros.so * FILES:-usr/lib64/libruff_wasm.so * SONAME:-libruff_macros.so(64) * SONAME:-libruff_wasm.so(64) * SIZE: 77.00MiB -> 37.74MiB, 33 -> 29 files * ------> FILES(-4) SONAME(-2) SIZE(-50.99%) Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/ruff/ruff-0.3.0-r1.ebuild | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/dev-util/ruff/ruff-0.3.0-r1.ebuild b/dev-util/ruff/ruff-0.3.0-r1.ebuild index abcdb9b15d4c..4129d7112c39 100644 --- a/dev-util/ruff/ruff-0.3.0-r1.ebuild +++ b/dev-util/ruff/ruff-0.3.0-r1.ebuild @@ -395,11 +395,10 @@ SLOT="0" KEYWORDS="~amd64 ~loong" BDEPEND=" - dev-util/patchelf >=virtual/rust-1.71 " -QA_FLAGS_IGNORED="usr/bin/.* usr/lib.*/libruff.*.so" +QA_FLAGS_IGNORED="usr/bin/.*" PATCHES=( "${FILESDIR}/ruff-0.1.14-tests.patch" @@ -421,15 +420,11 @@ src_configure() { } src_compile() { - cargo_src_compile + cargo_src_compile --bin ruff --bin ruff_shrinking - local solib releasedir + local releasedir releasedir=target/$(usex 'debug' 'debug' 'release') - for solib in "target/$(usex 'debug' 'debug' 'release')"/*.so; do - patchelf --set-soname "${solib##*/}" "${solib}" || die - done - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die } @@ -441,8 +436,7 @@ src_test() { src_install() { local releasedir=target/$(usex 'debug' 'debug' 'release') - dobin ${releasedir}/ruff{,_{dev,python_formatter,shrinking}} - dolib.so "${releasedir}"/*.so + dobin ${releasedir}/ruff{,_shrinking} newbashcomp ruff-completion.bash ruff newzshcomp ruff-completion.zsh _ruff