public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/glycin-loaders/
Date: Sun, 18 Aug 2024 19:08:34 +0000 (UTC)	[thread overview]
Message-ID: <1724008111.e82c4ddd57cd0270ab0e8c6d190da89402251d84.mgorny@gentoo> (raw)

commit:     e82c4ddd57cd0270ab0e8c6d190da89402251d84
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 18 19:07:52 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 18 19:08:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e82c4ddd

media-libs/glycin-loaders: Enable testing

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../glycin-loaders/glycin-loaders-1.1_beta.ebuild     | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild
index ed37a9ca5e08..349d971f98c1 100644
--- a/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild
+++ b/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild
@@ -23,8 +23,7 @@ LICENSE+="
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="heif jpegxl svg test"
-# TODO: figure out how to make tests work from inside the ebuild
-RESTRICT="test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
 	>=dev-libs/glib-2.60:2
@@ -32,7 +31,7 @@ RDEPEND="
 	heif? ( >=media-libs/libheif-1.17.0:= )
 	jpegxl? ( >=media-libs/libjxl-0.10.0:= )
 	svg? (
-		>=gnome-base/librsvg-2.52.0
+		>=gnome-base/librsvg-2.52.0:2
 		>=x11-libs/cairo-1.17.0
 	)
 "
@@ -48,6 +47,13 @@ ECARGO_VENDOR=${S}/vendor
 
 QA_FLAGS_IGNORED="usr/libexec/glycin-loaders/.*"
 
+src_prepare() {
+	default
+
+	# https://gitlab.gnome.org/sophie-h/glycin/-/issues/81
+	sed -i -e '\|/fonts|d' tests/tests.rs || die
+}
+
 src_configure() {
 	local formats=(
 		$(usev heif glycin-heif)
@@ -67,3 +73,10 @@ src_configure() {
 	meson_src_configure
 	ln -s "${CARGO_HOME}" "${BUILD_DIR}/cargo-home" || die
 }
+
+src_test() {
+	# tests write to /proc/*/uid_map
+	# apparently, "addpredict /" in Portage breaks it
+	local -x SANDBOX_ON=0
+	meson_src_test
+}


             reply	other threads:[~2024-08-18 19:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-18 19:08 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-17  6:11 [gentoo-commits] repo/gentoo:master commit in: media-libs/glycin-loaders/ Michał Górny
2024-09-17  6:11 Michał Górny
2024-09-13 13:47 Michał Górny
2024-08-24 19:06 Michał Górny
2024-08-19 16:46 Michał Górny
2024-08-18 14:29 Michał Górny

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=1724008111.e82c4ddd57cd0270ab0e8c6d190da89402251d84.mgorny@gentoo \
    --to=mgorny@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