public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu-guest-agent/
Date: Fri,  2 Feb 2024 03:58:21 +0000 (UTC)	[thread overview]
Message-ID: <1706846085.99decf1e1533778a58f3c9bc7898c58526e7b780.sam@gentoo> (raw)

commit:     99decf1e1533778a58f3c9bc7898c58526e7b780
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Thu Jan 18 06:39:01 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb  2 03:54:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99decf1e

app-emulation/qemu-guest-agent: add 8.2.0, limit test suite

As noted, the only relevant test for the guest agent is test-qga, which
is part of the qobject test suite, so limit to just this test suite.

Bug: https://bugs.gentoo.org/917080
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/34876
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emulation/qemu-guest-agent/Manifest            |  1 +
 .../qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild | 88 ++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/app-emulation/qemu-guest-agent/Manifest b/app-emulation/qemu-guest-agent/Manifest
index 9dd0cb50cdb7..44032f6790ed 100644
--- a/app-emulation/qemu-guest-agent/Manifest
+++ b/app-emulation/qemu-guest-agent/Manifest
@@ -3,3 +3,4 @@ DIST qemu-7.1.0.tar.xz 121833004 BLAKE2B e05f91ce4993c7591a2df08b5fb017f8b8ec214
 DIST qemu-8.0.0.tar.xz 127835148 BLAKE2B 9b54aae10fe09691a26e68374723ded5fdda6409673b4de9461a25ee060cfd03968a16ddeadc21d48b9262e53aa6d4e5eb645376969f97c65807fad19607b04f SHA512 1f31d1e653dec2d35f1b7a5468ee3f471553b48eca8c8afafffcf9243c6b2260e78a5b73da3fe567f9b85d4133573eebd397747b3aec501fb24076263eb07b27
 DIST qemu-8.0.2.tar.xz 126707132 BLAKE2B f2b1a63e10c42aabfe39722c7732d0f04818ad367b769b3deb29c5bf9adcabc3aca1706f3c40fafeeb57ac1f7a61ded5066de32134c483e2fd27bc65b4b7d30a SHA512 4e915d33a662bf55b09247fb85150be376c92270d3764e3d6470c452cb70cc558f54e84de5610dd60a9eb3ea02d5d4277b1ec75c9804967d278fa8361c7f9b9a
 DIST qemu-8.0.3.tar.xz 126710536 BLAKE2B 071cc1a35209a02e8c5dd4f43cb112f110b4655adb0f870a04fdf9a6e2c761699574e8c9426f70f60787a99acf252d7a64d94a8e837cdfeda93d89428d7866f3 SHA512 18b2ccb65f7ec2ae92f0e04406539620c881e2b75f63816588c86043a07464bb99d16a83e792ed9508de393f4b694c46d52f4d07edf52741e85224c8b8d5d5c3
+DIST qemu-8.2.0.tar.xz 130008888 BLAKE2B a63667042e1e19c635568072d8dcc117320117e81e374a93cfb79e2363ebf505df3217fb098638e53c899eb6f83435221e8031f2aae003c27ec25af8654683b3 SHA512 92ec41196ff145cdbb98948f6b6e43214fa4b4419554a8a1927fb4527080c8212ccb703e184baf8ee0bdfa50ad7a84689e8f5a69eba1bd7bbbdfd69e3b91256c

diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild b/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild
new file mode 100644
index 000000000000..ab7a0c145b03
--- /dev/null
+++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit edo systemd toolchain-funcs python-any-r1 udev
+
+MY_PN="qemu"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
+HOMEPAGE="https://wiki.qemu.org/Features/GuestAgent"
+SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.xz"
+
+LICENSE="GPL-2 BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+RDEPEND="dev-libs/glib"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}
+	dev-lang/perl
+	app-alternatives/ninja"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+)
+
+src_configure() {
+	tc-export AR LD OBJCOPY RANLIB
+
+	local myconf=(
+		--prefix=/usr
+		--sysconfdir=/etc
+		--libdir="/usr/$(get_libdir)"
+		--localstatedir=/
+		--disable-bsd-user
+		--disable-linux-user
+		--disable-system
+		--disable-strip
+		--enable-tools
+		--disable-werror
+		--without-default-features
+		--enable-guest-agent
+		--python="${PYTHON}"
+		--cc="$(tc-getCC)"
+		--cxx="$(tc-getCXX)"
+		--host-cc="$(tc-getBUILD_CC)"
+	)
+
+	edo ./configure "${myconf[@]}"
+}
+
+src_test() {
+	# qga only uses generic code covered by qobject tests,
+	# the full test suite requires at least one softmmu binary
+	emake check-unit
+}
+
+src_install() {
+	dobin build/qga/qemu-ga
+
+	# Normal init stuff
+	newinitd "${FILESDIR}/qemu-ga.init-r1" qemu-guest-agent
+	newconfd "${FILESDIR}/qemu-ga.conf-r1" qemu-guest-agent
+
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}/qemu-ga.logrotate" qemu-guest-agent
+
+	# systemd stuff
+	udev_newrules "${FILESDIR}/qemu-ga-systemd.udev" 99-qemu-guest-agent.rules
+
+	systemd_newunit "${FILESDIR}/qemu-ga-systemd.service" \
+		qemu-guest-agent.service
+}
+
+pkg_postinst() {
+	elog "You should add 'qemu-guest-agent' to the default runlevel."
+	elog "e.g. rc-update add qemu-guest-agent default"
+	udev_reload
+}
+
+pkg_postrm() {
+	udev_reload
+}


             reply	other threads:[~2024-02-02  3:58 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-02  3:58 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-03 20:52 [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu-guest-agent/ Sam James
2025-03-03 20:48 Sam James
2024-12-30 14:11 Sam James
2024-12-02 14:50 Sam James
2024-07-03 21:21 Matthias Maier
2024-06-02  5:12 Sam James
2024-06-02  5:12 Sam James
2024-06-02  5:12 Sam James
2024-06-02  5:12 Sam James
2024-05-25  8:26 Sam James
2024-04-29 10:36 Joonas Niilola
2024-04-29 10:36 Joonas Niilola
2024-02-03  3:50 Ionen Wolkens
2023-08-13  7:42 Joonas Niilola
2023-08-13  7:42 Joonas Niilola
2023-08-01  7:28 Sam James
2023-06-18  3:00 Matthias Maier
2023-05-05 23:32 Matthias Maier
2023-03-04  8:31 Joonas Niilola
2023-03-04  8:27 Joonas Niilola
2023-03-04  8:26 Arthur Zamarin
2022-10-26  3:25 John Helmert III
2022-10-13 14:22 John Helmert III
2022-10-12 22:56 Sam James
2022-10-12 22:56 Sam James
2022-10-12 22:56 Sam James
2021-06-12 17:13 Sam James
2021-05-23 19:04 Michał Górny
2021-05-17  7:49 Agostino Sarubbo
2021-05-17  3:01 Sam James
2021-05-16 20:05 Matthias Maier
2020-05-27 15:23 Alexey Shvetsov
2020-05-27 15:23 Alexey Shvetsov
2020-04-20  9:52 Agostino Sarubbo
2020-04-20  7:53 Agostino Sarubbo
2020-04-19 18:12 Matthias Maier
2019-07-31 11:03 Agostino Sarubbo
2019-07-31 10:59 Agostino Sarubbo
2019-04-29  7:14 Matthias Maier
2019-04-08  2:52 Matthias Maier
2019-01-07  0:16 Thomas Deutschmann
2019-01-06 12:26 Mikle Kolyada
2018-12-19 21:47 Matthias Maier
2018-10-20 16:07 Andreas Hüttel
2018-10-02  8:31 Mikle Kolyada
2018-10-01 21:47 Thomas Deutschmann
2018-06-29  5:33 Matthias Maier
2018-06-29  4:50 Matthias Maier
2018-06-29  4:50 Matthias Maier
2018-06-11  8:13 Agostino Sarubbo
2018-06-10 18:46 Thomas Deutschmann
2018-06-10  3:41 Matthias Maier
2018-06-10  3:31 Matthias Maier
2018-06-10  3:31 Matthias Maier
2018-03-18 21:02 Matthias Maier
2018-03-18 21:02 Matthias Maier
2018-03-18 21:02 Matthias Maier
2018-02-11 21:30 Matthias Maier
2018-02-11 21:30 Matthias Maier
2017-11-17 18:47 David Seifert
2017-11-13  3:38 Matthias Maier
2017-11-13  3:38 Matthias Maier
2017-05-03 12:27 Matthias Maier
2016-05-17  4:41 Mike Frysinger
2016-03-28 21:41 Mike Frysinger
2016-03-28 21:41 Mike Frysinger
2015-12-17 15:12 Mike Frysinger
2015-09-08  7:20 Agostino Sarubbo
2015-09-08  7:19 Agostino Sarubbo
2015-08-12  4:24 Mike Frysinger

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=1706846085.99decf1e1533778a58f3c9bc7898c58526e7b780.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