From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtiofsd/
Date: Sun, 2 Jul 2023 22:39:22 +0000 (UTC) [thread overview]
Message-ID: <1688337176.cd59e8c8dc76f8021aebaa6d7b776c5858358eab.sam@gentoo> (raw)
commit: cd59e8c8dc76f8021aebaa6d7b776c5858358eab
Author: Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Thu Jun 29 14:37:35 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 2 22:32:56 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd59e8c8
app-emulation/virtiofsd: Install 50-qemu-virtiofsd.json
With the old virtiofsd provided by app-emulation/qemu the
corresponding JSON file descriptor is installed by QEMU. But with
this new rust version, we have to install it ourselves in order
for libvirt to pick it up. To avoid conflicts with the file
installed by app-emulation/qemu we can install it under a
different name. And because smaller number means higher priority
let's go with "40-qemu-virtiofsd.json" so that users with
<app-emulation/qemu-8.0.0 can benefit from rust version of the
daemon (if both are installed).
Closes: https://bugs.gentoo.org/909372
Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../{virtiofsd-1.5.1.ebuild => virtiofsd-1.5.1-r1.ebuild} | 12 ++++++++++++
app-emulation/virtiofsd/virtiofsd-9999.ebuild | 12 ++++++++++++
2 files changed, 24 insertions(+)
diff --git a/app-emulation/virtiofsd/virtiofsd-1.5.1.ebuild b/app-emulation/virtiofsd/virtiofsd-1.5.1-r1.ebuild
similarity index 84%
rename from app-emulation/virtiofsd/virtiofsd-1.5.1.ebuild
rename to app-emulation/virtiofsd/virtiofsd-1.5.1-r1.ebuild
index 3352892e3b9a..a609ac7791fa 100644
--- a/app-emulation/virtiofsd/virtiofsd-1.5.1.ebuild
+++ b/app-emulation/virtiofsd/virtiofsd-1.5.1-r1.ebuild
@@ -124,3 +124,15 @@ src_unpack() {
cargo_src_unpack
fi
}
+
+src_install() {
+ cargo_src_install
+
+ # Install 50-qemu-virtiofsd.json but to avoid conflicts with
+ # <app-emulation/qemu-8.0.0 install it under different name. In this case,
+ # smaller number means higher priority, but that's probably what users want
+ # anyway if they install this package on top of app-emulation/qemu.
+ # TODO: remove once old QEMUs are removed from the portage.
+ insinto "/usr/share/qemu/vhost-user"
+ newins "50-qemu-virtiofsd.json" "40-qemu-virtiofsd.json"
+}
diff --git a/app-emulation/virtiofsd/virtiofsd-9999.ebuild b/app-emulation/virtiofsd/virtiofsd-9999.ebuild
index 3352892e3b9a..a609ac7791fa 100644
--- a/app-emulation/virtiofsd/virtiofsd-9999.ebuild
+++ b/app-emulation/virtiofsd/virtiofsd-9999.ebuild
@@ -124,3 +124,15 @@ src_unpack() {
cargo_src_unpack
fi
}
+
+src_install() {
+ cargo_src_install
+
+ # Install 50-qemu-virtiofsd.json but to avoid conflicts with
+ # <app-emulation/qemu-8.0.0 install it under different name. In this case,
+ # smaller number means higher priority, but that's probably what users want
+ # anyway if they install this package on top of app-emulation/qemu.
+ # TODO: remove once old QEMUs are removed from the portage.
+ insinto "/usr/share/qemu/vhost-user"
+ newins "50-qemu-virtiofsd.json" "40-qemu-virtiofsd.json"
+}
next reply other threads:[~2023-07-02 22:39 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-02 22:39 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-08 1:33 [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtiofsd/ Sam James
2025-01-06 3:32 Sam James
2025-01-06 3:28 Sam James
2024-10-11 2:29 Sam James
2024-10-11 2:29 Sam James
2024-09-23 10:08 Arthur Zamarin
2024-07-07 6:32 Sam James
2024-07-07 6:32 Sam James
2024-04-29 10:36 Joonas Niilola
2024-03-02 5:05 Sam James
2024-01-26 8:57 Sam James
2024-01-26 7:50 Sam James
2024-01-26 7:50 Sam James
2024-01-26 7:50 Sam James
2024-01-26 7:50 Sam James
2024-01-26 7:50 Sam James
2023-09-06 9:06 Sam James
2023-07-28 7:55 Joonas Niilola
2023-07-27 12:00 Sam James
2023-07-02 22:39 Sam James
2023-07-02 22:39 Sam James
2023-04-17 15:04 Matthias Maier
2023-04-17 15:04 Matthias Maier
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=1688337176.cd59e8c8dc76f8021aebaa6d7b776c5858358eab.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