public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/waffle/
Date: Mon, 25 Sep 2023 15:48:07 +0000 (UTC)	[thread overview]
Message-ID: <1695656884.5473d9621bc0ebef81881a22385e0d8aa4c75695.mattst88@gentoo> (raw)

commit:     5473d9621bc0ebef81881a22385e0d8aa4c75695
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 25 15:44:29 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Sep 25 15:48:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5473d962

media-libs/waffle: Drop unneeded USE flags

And make an attempt at wiring up tests. Unfortunately the gbm tests
can't work under sandbox, and I've seen some sporadic failures from the
other gl_basic tests as well, so I'll leave this restricted.

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/waffle/waffle-9999.ebuild | 39 ++++++++++++++++++++++++++++--------
 1 file changed, 31 insertions(+), 8 deletions(-)

diff --git a/media-libs/waffle/waffle-9999.ebuild b/media-libs/waffle/waffle-9999.ebuild
index 70895cc711f7..23baef47c53e 100644
--- a/media-libs/waffle/waffle-9999.ebuild
+++ b/media-libs/waffle/waffle-9999.ebuild
@@ -11,23 +11,23 @@ else
 	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 	S="${WORKDIR}"/${PN}-v${PV}
 fi
-inherit meson-multilib multilib ${GIT_ECLASS}
+inherit meson-multilib multilib virtualx ${GIT_ECLASS}
 
 DESCRIPTION="Library that allows selection of GL API and of window system at runtime"
 HOMEPAGE="https://gitlab.freedesktop.org/mesa/waffle"
 
 LICENSE="BSD-2"
 SLOT="0"
-IUSE="doc +egl +gbm wayland X"
-RESTRICT="test" # gl_basic tests don't work when run from portage
+IUSE="doc test wayland X"
+RESTRICT="!test? ( test ) test" # gl_basic tests don't work when run under sandbox
 
 RDEPEND="
-	>=media-libs/mesa-9.1.6[egl(+)?,gbm(+)?,${MULTILIB_USEDEP}]
+	>=media-libs/mesa-23[${MULTILIB_USEDEP}]
+	>=virtual/libudev-208:=[${MULTILIB_USEDEP}]
 	X? (
 		>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
 		>=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}]
 	)
-	gbm? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] )
 	wayland? ( >=dev-libs/wayland-1.10[${MULTILIB_USEDEP}] )
 "
 DEPEND="${RDEPEND}
@@ -38,6 +38,9 @@ BDEPEND="
 	dev-libs/libxslt
 	dev-util/wayland-scanner
 "
+#	test? (
+#		wayland? ( dev-libs/weston[headless] )
+#	)
 
 MULTILIB_CHOST_TOOLS=(
 	/usr/bin/wflinfo$(get_exeext)
@@ -48,14 +51,34 @@ multilib_src_configure() {
 		$(meson_feature X glx)
 		$(meson_feature wayland)
 		$(meson_feature X x11_egl)
-		$(meson_feature gbm)
-		$(meson_feature egl surfaceless_egl)
+		-Dgbm=enabled
+		-Dsurfaceless_egl=enabled
+
+		$(meson_use test build-tests)
 		$(meson_native_true build-manpages)
-		-Dbuild-tests=false
+		-Dbuild-htmldocs=false
+		-Dbuild-examples=false
 	)
 	meson_src_configure
 }
 
+multilib_src_test() {
+	if use wayland; then
+		export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
+
+		weston --backend=headless-backend.so --socket=wayland-6 --idle-time=0 &
+		compositor=$!
+		export WAYLAND_DISPLAY=wayland-6
+	fi
+
+	export MESA_SHADER_CACHE_DISABLE=true
+	virtx meson_src_test
+
+	if use wayland; then
+		kill ${compositor}
+	fi
+}
+
 multilib_src_install() {
 	meson_src_install
 }


             reply	other threads:[~2023-09-25 15:48 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-25 15:48 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-17  2:49 [gentoo-commits] repo/gentoo:master commit in: media-libs/waffle/ Matt Turner
2024-09-07 23:15 Matt Turner
2024-09-07 23:15 Matt Turner
2024-09-01  2:18 Sam James
2024-07-30 22:17 Matt Turner
2023-11-25 17:31 Matt Turner
2023-11-04  9:06 Sam James
2023-11-03 23:58 Sam James
2023-09-25 15:48 Matt Turner
2023-09-25 15:48 Matt Turner
2023-06-15 21:45 Sam James
2023-04-09  4:05 Matt Turner
2023-04-08 10:46 Arthur Zamarin
2023-04-08  9:57 Arthur Zamarin
2023-04-08  9:02 Arthur Zamarin
2023-03-13 20:07 Matt Turner
2023-03-05 19:16 Matt Turner
2023-03-03 16:40 Matt Turner
2023-03-02 15:20 Matt Turner
2022-08-15 18:03 Arthur Zamarin
2022-07-26 15:24 Agostino Sarubbo
2022-07-26 15:15 Agostino Sarubbo
2022-06-17 18:16 Matt Turner
2021-10-31  0:19 Sam James
2021-06-04  1:14 Matt Turner
2021-04-15  0:43 Matt Turner
2021-03-08 22:26 Matt Turner
2021-01-30 17:47 Matt Turner
2021-01-30 17:47 Matt Turner
2020-06-17  5:46 Matt Turner
2020-06-15 15:16 Agostino Sarubbo
2020-06-15 15:03 Agostino Sarubbo
2020-06-15 15:00 Agostino Sarubbo
2020-04-08  3:40 Matt Turner
2020-04-06 20:15 Matt Turner
2020-03-31 20:44 Matt Turner
2020-03-31 20:44 Matt Turner
2020-03-31 20:44 Matt Turner
2020-03-31 20:44 Matt Turner
2020-03-31 20:44 Matt Turner
2020-03-31 20:44 Matt Turner
2020-03-11 18:42 Matt Turner
2020-03-08 13:22 Mart Raudsepp
2020-03-08  0:23 Matt Turner
2020-03-05 11:51 Agostino Sarubbo
2020-03-05 11:40 Agostino Sarubbo
2020-03-05 11:37 Agostino Sarubbo
2020-02-07 21:47 Matt Turner
2019-09-28 18:27 Matt Turner
2019-09-28 18:27 Matt Turner
2019-07-28 13:05 Mikle Kolyada
2019-07-17 10:18 Mikle Kolyada
2019-07-10 10:30 Agostino Sarubbo
2019-06-08  0:11 Matt Turner
2019-06-08  0:11 Matt Turner
2018-09-15 22:39 Andreas Sturmlechner
2018-09-15 22:39 Andreas Sturmlechner
2018-03-25 20:12 Sergei Trofimovich
2018-03-23  0:02 Sergei Trofimovich
2017-07-30  9:38 Michał Górny
2016-10-26 22:33 Matt Turner
2016-10-26 22:33 Matt Turner
2015-12-19 21:15 Markus Meier
2015-08-25 22:01 Matt Turner

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=1695656884.5473d9621bc0ebef81881a22385e0d8aa4c75695.mattst88@gentoo \
    --to=mattst88@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