From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/dracut/
Date: Tue, 12 Nov 2024 18:22:38 +0000 (UTC) [thread overview]
Message-ID: <1731435707.a39e1b86cf935e9015b67af6b4ebef3ae68e40c8.floppym@gentoo> (raw)
commit: a39e1b86cf935e9015b67af6b4ebef3ae68e40c8
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 18:05:29 2024 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 18:21:47 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a39e1b86
sys-kernel/dracut: use cargo.eclass
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
sys-kernel/dracut/dracut-9999.ebuild | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/sys-kernel/dracut/dracut-9999.ebuild b/sys-kernel/dracut/dracut-9999.ebuild
index 81b6b6982597..40da9319cb51 100644
--- a/sys-kernel/dracut/dracut-9999.ebuild
+++ b/sys-kernel/dracut/dracut-9999.ebuild
@@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-RUST_OPTIONAL=1
+CARGO_OPTIONAL=1
-inherit flag-o-matic bash-completion-r1 edo optfeature rust systemd toolchain-funcs
+inherit cargo flag-o-matic bash-completion-r1 edo optfeature systemd toolchain-funcs
if [[ ${PV} == 9999 ]] ; then
inherit git-r3
@@ -51,7 +51,6 @@ RDEPEND="
"
DEPEND="
>=sys-apps/kmod-23
- dracut-cpio? ( ${RUST_DEPEND} )
elibc_musl? ( sys-libs/fts-standalone )
"
@@ -61,6 +60,7 @@ BDEPEND="
>=app-text/docbook-xsl-stylesheets-1.75.2
>=dev-libs/libxslt-1.1.26
virtual/pkgconfig
+ dracut-cpio? ( ${RUST_DEPEND} )
test? (
net-nds/rpcbind
net-fs/nfs-utils
@@ -113,7 +113,7 @@ src_configure() {
--sysconfdir="${EPREFIX}/etc"
--bashcompletiondir="$(get_bashcompdir)"
--systemdsystemunitdir="$(systemd_get_systemunitdir)"
- $(use_enable dracut-cpio)
+ --disable-dracut-cpio
)
# this emulates what the build system would be doing without us
@@ -122,6 +122,19 @@ src_configure() {
tc-export CC PKG_CONFIG
edo ./configure "${myconf[@]}"
+ if use dracut-cpio; then
+ cargo_gen_config
+ cargo_src_configure
+ fi
+}
+
+src_compile() {
+ default
+ if use dracut-cpio; then
+ pushd src/dracut-cpio >/dev/null || die
+ cargo_src_compile
+ popd >/dev/null || die
+ fi
}
src_test() {
@@ -149,6 +162,10 @@ src_install() {
README.md
)
default
+ if use dracut-cpio; then
+ exeinto /usr/lib/dracut
+ doexe "src/dracut-cpio/$(cargo_target_dir)/dracut-cpio"
+ fi
}
pkg_preinst() {
next reply other threads:[~2024-11-12 18:22 UTC|newest]
Thread overview: 197+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 18:22 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 18:38 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/dracut/ Sam James
2024-11-12 17:24 Mike Gilbert
2024-11-12 17:24 Mike Gilbert
2024-11-11 16:49 Mike Gilbert
2024-11-08 15:50 Mike Gilbert
2024-11-08 1:13 Mike Gilbert
2024-09-30 9:14 Andrew Ammerlaan
2024-08-31 6:14 Sam James
2024-08-27 18:05 Andreas K. Hüttel
2024-08-17 23:23 Sam James
2024-08-17 23:23 Sam James
2024-08-17 19:29 Arthur Zamarin
2024-08-17 19:29 Arthur Zamarin
2024-08-17 18:18 Arthur Zamarin
2024-08-17 18:18 Arthur Zamarin
2024-08-09 8:57 Sam James
2024-08-04 20:36 Mike Gilbert
2024-08-04 3:16 Sam James
2024-08-04 3:16 Sam James
2024-08-03 22:51 Sam James
2024-08-03 16:48 Jakov Smolić
2024-08-03 16:48 Jakov Smolić
2024-07-27 6:58 Andrew Ammerlaan
2024-07-21 0:31 Sam James
2024-07-14 8:21 Andrew Ammerlaan
2024-06-03 17:59 Andrew Ammerlaan
2024-04-09 7:44 Andrew Ammerlaan
2024-02-29 17:57 Matt Turner
2024-02-24 2:44 Ionen Wolkens
2024-02-02 6:28 Andrew Ammerlaan
2024-01-25 1:37 Sam James
2024-01-24 14:35 Andrew Ammerlaan
2024-01-24 13:37 Sam James
2024-01-24 10:59 Sam James
2024-01-24 10:59 Sam James
2024-01-24 10:58 Sam James
2024-01-24 10:58 Sam James
2024-01-19 15:26 Mike Gilbert
2024-01-16 5:46 Viorel Munteanu
2023-12-29 20:26 Arthur Zamarin
2023-12-24 17:21 Arthur Zamarin
2023-12-24 11:08 Sam James
2023-12-24 11:08 Sam James
2023-12-24 11:08 Sam James
2023-12-24 11:08 Sam James
2023-12-24 4:12 Sam James
2023-12-01 21:55 James Le Cuirot
2023-11-29 18:54 Mike Gilbert
2023-11-09 16:04 Mike Gilbert
2023-11-09 16:04 Mike Gilbert
2023-11-09 2:37 Mike Gilbert
2023-10-29 4:12 Sam James
2023-10-26 16:33 Arthur Zamarin
2023-10-21 16:21 Arthur Zamarin
2023-10-21 16:21 Arthur Zamarin
2023-10-21 16:21 Arthur Zamarin
2023-10-21 14:16 Sam James
2023-10-21 14:16 Sam James
2023-10-21 14:16 Sam James
2023-10-21 14:15 Sam James
2023-10-01 18:12 Arthur Zamarin
2023-09-08 19:55 Sam James
2023-09-08 18:50 Arthur Zamarin
2023-09-08 18:50 Arthur Zamarin
2023-09-08 18:50 Arthur Zamarin
2023-09-08 18:50 Arthur Zamarin
2023-09-08 18:50 Arthur Zamarin
2023-09-08 18:24 Sam James
2023-09-08 9:25 David Seifert
2023-07-14 19:40 Mike Gilbert
2023-05-11 20:03 Sam James
2023-01-03 20:24 Sam James
2022-12-27 7:35 Sam James
2022-12-26 16:56 Mike Gilbert
2022-12-25 2:53 Mike Gilbert
2022-12-03 12:07 Arthur Zamarin
2022-12-03 6:16 Arthur Zamarin
2022-12-03 6:16 Arthur Zamarin
2022-12-03 6:10 Arthur Zamarin
2022-12-03 6:09 Sam James
2022-12-03 6:09 Sam James
2022-12-03 6:06 Sam James
2022-12-03 6:06 Sam James
2022-10-30 9:40 Sam James
2022-10-10 12:20 Joonas Niilola
2022-09-27 21:44 Sam James
2022-07-29 3:24 Sam James
2022-07-06 7:19 Arthur Zamarin
2022-07-05 7:29 Agostino Sarubbo
2022-07-05 6:04 Agostino Sarubbo
2022-07-05 6:04 Agostino Sarubbo
2022-07-05 6:03 Agostino Sarubbo
2022-07-05 6:02 Agostino Sarubbo
2022-07-05 6:02 Agostino Sarubbo
2022-07-05 6:01 Agostino Sarubbo
2022-07-04 23:29 Mike Gilbert
2022-05-27 21:42 Mike Gilbert
2022-05-27 21:42 Mike Gilbert
2022-05-05 9:51 WANG Xuerui
2022-05-05 9:51 WANG Xuerui
2022-04-29 9:13 Sam James
2022-02-02 1:51 Sam James
2021-12-31 4:13 Sam James
2021-12-28 10:19 Sam James
2021-12-28 2:29 Sam James
2021-12-27 18:48 Arthur Zamarin
2021-12-27 18:48 Arthur Zamarin
2021-12-27 18:48 Arthur Zamarin
2021-12-27 17:42 Arthur Zamarin
2021-09-16 12:32 Marek Szuba
2021-06-15 5:25 Sam James
2021-06-15 0:12 Mike Gilbert
2021-06-14 22:18 Sam James
2021-06-14 22:18 Sam James
2021-06-14 22:18 Sam James
2021-06-14 22:18 Sam James
2021-06-14 22:18 Sam James
2021-06-14 22:18 Sam James
2021-06-14 18:42 Mike Gilbert
2021-04-04 18:55 Andreas Sturmlechner
2021-03-02 1:50 Matthew Thode
2020-12-15 20:49 Mike Gilbert
2020-09-24 6:46 Agostino Sarubbo
2020-09-23 10:32 Agostino Sarubbo
2020-09-23 10:29 Agostino Sarubbo
2020-09-23 10:24 Agostino Sarubbo
2020-09-20 21:52 Thomas Deutschmann
2020-09-20 18:15 Sam James
2020-09-20 1:13 Sam James
2020-09-07 8:55 David Seifert
2020-03-10 19:50 Mike Gilbert
2020-03-06 7:13 Mikle Kolyada
2020-02-13 21:40 David Seifert
2020-01-27 10:27 Mikle Kolyada
2020-01-13 8:50 Agostino Sarubbo
2020-01-13 8:45 Agostino Sarubbo
2020-01-12 23:22 Sergei Trofimovich
2020-01-12 22:53 Sergei Trofimovich
2020-01-12 22:42 Sergei Trofimovich
2019-12-30 18:06 Mike Gilbert
2019-12-29 19:39 Mike Gilbert
2019-10-05 18:56 Michał Górny
2019-08-26 20:49 Georgy Yakovlev
2019-08-26 20:49 Georgy Yakovlev
2019-06-05 7:55 Agostino Sarubbo
2019-06-05 7:12 Agostino Sarubbo
2019-06-04 20:54 Agostino Sarubbo
2019-06-03 20:31 Sergei Trofimovich
2019-04-18 3:30 Aaron Bauman
2019-01-26 17:29 Mike Gilbert
2019-01-21 14:23 Mike Gilbert
2018-10-21 12:43 Pacho Ramos
2018-09-19 18:38 Patrice Clement
2018-08-26 20:35 Michał Górny
2018-07-10 5:49 Matt Thode
2018-03-24 18:03 Mike Gilbert
2018-03-18 23:32 Sergei Trofimovich
2018-03-09 19:08 Michał Górny
2018-03-09 19:08 Michał Górny
2018-03-04 11:34 Tobias Klausmann
2018-01-27 23:16 Matt Thode
2018-01-23 23:18 Sergei Trofimovich
2018-01-11 6:58 Mike Gilbert
2018-01-10 21:22 Sergei Trofimovich
2018-01-08 23:56 Mikle Kolyada
2018-01-08 22:50 Thomas Deutschmann
2017-11-18 21:35 Amadeusz Piotr Żołnowski
2017-11-18 17:52 Sergei Trofimovich
2017-11-18 16:19 Mike Gilbert
2017-11-08 12:51 Tobias Klausmann
2017-10-30 21:53 Sergei Trofimovich
2017-10-29 22:08 Thomas Deutschmann
2017-10-29 11:17 Manuel Rüger
2017-10-28 22:21 Sergei Trofimovich
2017-07-24 3:01 Joshua Kinard
2017-07-04 18:55 Mike Gilbert
2017-07-04 0:36 Mike Gilbert
2017-07-02 23:16 Mike Gilbert
2017-07-02 23:11 Mike Gilbert
2017-07-02 23:11 Mike Gilbert
2017-05-29 17:28 Mike Gilbert
2017-02-09 21:41 Patrick McLean
2017-02-09 18:47 Patrick McLean
2016-12-29 10:45 Agostino Sarubbo
2016-12-19 11:14 Tobias Klausmann
2016-12-18 21:01 Richard Freeman
2016-11-17 0:24 Mike Gilbert
2016-03-29 10:35 Ian Delaney
2016-01-03 14:34 Manuel Rüger
2015-09-12 10:45 Justin Lecher
2015-08-16 10:04 Amadeusz Żołnowski
2015-08-16 10:04 Amadeusz Żołnowski
2015-08-16 10:04 Amadeusz Żołnowski
2015-08-12 23:40 Amadeusz Żołnowski
2015-08-12 23:40 Amadeusz Żołnowski
2015-08-09 20:07 Matt Thode
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=1731435707.a39e1b86cf935e9015b67af6b4ebef3ae68e40c8.floppym@gentoo \
--to=floppym@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