From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ruff/
Date: Thu, 14 Mar 2024 06:40:23 +0000 (UTC) [thread overview]
Message-ID: <1710398384.f7adbdf82e5916dbad4b53e415ac66bceb0fd938.sam@gentoo> (raw)
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
next reply other threads:[~2024-03-14 6:40 UTC|newest]
Thread overview: 118+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-14 6:40 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-03 19:11 [gentoo-commits] repo/gentoo:master commit in: dev-util/ruff/ Eli Schwartz
2024-10-30 17:21 Arthur Zamarin
2024-10-24 16:38 Patrick McLean
2024-10-24 16:38 Patrick McLean
2024-10-24 0:12 Jakov Smolić
2024-10-17 20:57 Patrick McLean
2024-10-17 20:57 Patrick McLean
2024-10-09 17:31 Eli Schwartz
2024-09-26 16:13 Patrick McLean
2024-09-26 16:13 Patrick McLean
2024-09-25 4:30 Eli Schwartz
2024-09-20 18:12 Eli Schwartz
2024-09-13 23:11 Patrick McLean
2024-09-13 23:11 Patrick McLean
2024-09-05 18:17 Patrick McLean
2024-09-05 18:17 Patrick McLean
2024-08-29 19:01 Patrick McLean
2024-08-29 19:00 Patrick McLean
2024-08-22 17:56 Patrick McLean
2024-08-22 17:56 Patrick McLean
2024-08-17 0:10 Patrick McLean
2024-08-16 23:35 Patrick McLean
2024-08-15 17:36 Patrick McLean
2024-08-15 17:36 Patrick McLean
2024-08-09 17:46 Patrick McLean
2024-07-29 1:19 Eli Schwartz
2024-07-22 4:50 Eli Schwartz
2024-07-16 4:11 Eli Schwartz
2024-06-28 16:58 Patrick McLean
2024-06-28 16:57 Patrick McLean
2024-06-17 9:39 James Le Cuirot
2024-06-06 0:44 Patrick McLean
2024-06-04 6:56 Sam James
2024-05-30 2:21 Sam James
2024-05-23 21:52 Sam James
2024-05-23 16:43 Patrick McLean
2024-05-10 1:58 Sam James
2024-05-10 1:58 Sam James
2024-05-07 15:13 Patrick McLean
2024-04-25 21:07 Patrick McLean
2024-04-19 18:41 Patrick McLean
2024-04-18 21:49 Patrick McLean
2024-04-18 21:49 Patrick McLean
2024-04-01 20:11 Patrick McLean
2024-04-01 19:50 Patrick McLean
2024-03-22 5:33 Sam James
2024-03-18 16:29 Patrick McLean
2024-03-14 6:40 Sam James
2024-03-14 6:40 Sam James
2024-03-14 6:40 Sam James
2024-03-14 6:40 Sam James
2024-02-29 17:15 Patrick McLean
2024-02-21 22:15 Patrick McLean
2024-02-06 18:56 Patrick McLean
2024-02-04 17:10 WANG Xuerui
2024-01-15 14:01 Sam James
2024-01-15 9:17 Ulrich Müller
2024-01-12 20:39 Patrick McLean
2024-01-12 19:49 Patrick McLean
2023-12-13 20:55 Patrick McLean
2023-12-05 1:00 Patrick McLean
2023-11-17 21:43 Patrick McLean
2023-11-09 1:54 Patrick McLean
2023-10-26 21:18 Patrick McLean
2023-10-24 18:48 Patrick McLean
2023-10-19 22:07 Patrick McLean
2023-10-16 23:25 Patrick McLean
2023-10-16 23:13 Patrick McLean
2023-10-02 20:04 Patrick McLean
2023-09-22 21:57 Patrick McLean
2023-09-16 0:32 Patrick McLean
2023-09-12 17:43 Patrick McLean
2023-09-11 18:50 Patrick McLean
2023-09-11 18:50 Patrick McLean
2023-09-11 18:50 Patrick McLean
2023-09-08 19:36 Patrick McLean
2023-09-08 19:29 Patrick McLean
2023-08-26 0:14 Patrick McLean
2023-08-10 21:55 Patrick McLean
2023-08-08 20:48 Patrick McLean
2023-08-07 23:38 Patrick McLean
2023-07-31 22:58 Patrick McLean
2023-07-24 22:15 Patrick McLean
2023-07-22 1:22 Patrick McLean
2023-07-13 0:03 Patrick McLean
2023-07-05 16:17 Patrick McLean
2023-06-22 18:07 Patrick McLean
2023-06-21 19:04 Patrick McLean
2023-06-21 4:52 Patrick McLean
2023-06-21 4:42 Patrick McLean
2023-06-21 4:42 Patrick McLean
2023-06-21 4:42 Patrick McLean
2023-06-20 21:27 Patrick McLean
2023-06-08 20:55 Patrick McLean
2023-06-08 20:38 Patrick McLean
2023-06-01 20:34 Patrick McLean
2023-05-05 17:58 Patrick McLean
2023-05-02 18:02 Patrick McLean
2023-04-25 19:20 Patrick McLean
2023-04-25 19:00 Patrick McLean
2023-04-25 18:08 Patrick McLean
2023-04-21 1:07 Patrick McLean
2023-04-21 1:07 Patrick McLean
2023-04-10 19:21 Patrick McLean
2023-03-24 19:29 Patrick McLean
2023-03-23 1:31 Patrick McLean
2023-03-23 1:27 Patrick McLean
2023-02-28 18:43 Patrick McLean
2023-02-28 18:43 Patrick McLean
2023-02-23 19:55 Patrick McLean
2023-02-22 20:24 Patrick McLean
2023-02-15 23:19 Patrick McLean
2023-02-15 21:36 Patrick McLean
2023-02-15 21:15 Patrick McLean
2023-02-09 20:04 Patrick McLean
2023-02-08 23:13 Patrick McLean
2023-02-08 20:34 Patrick McLean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1710398384.f7adbdf82e5916dbad4b53e415ac66bceb0fd938.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox