public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd-utils/files/, sys-apps/systemd-utils/
Date: Sun, 17 Apr 2022 13:56:58 +0000 (UTC)	[thread overview]
Message-ID: <1650203814.841cfaa31184136b10b4b3c1ebc86320a831966f.floppym@gentoo> (raw)

commit:     841cfaa31184136b10b4b3c1ebc86320a831966f
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 13:56:05 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 13:56:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841cfaa3

sys-apps/systemd-utils: fix test-systemd-tmpfiles

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .../250.4-test-systemd-tmpfiles.standalone.patch   | 40 ++++++++++++++++++++++
 sys-apps/systemd-utils/systemd-utils-250.4.ebuild  |  3 +-
 2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/sys-apps/systemd-utils/files/250.4-test-systemd-tmpfiles.standalone.patch b/sys-apps/systemd-utils/files/250.4-test-systemd-tmpfiles.standalone.patch
new file mode 100644
index 000000000000..a915cbb43115
--- /dev/null
+++ b/sys-apps/systemd-utils/files/250.4-test-systemd-tmpfiles.standalone.patch
@@ -0,0 +1,40 @@
+From 55bf689308ed00692494d3623bd2064f33c9bbbe Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Sun, 17 Apr 2022 09:48:28 -0400
+Subject: [PATCH] Add test support for  systemd-tmpfiles.standalone
+
+---
+ meson.build | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 458370e83d..d60be1b050 100644
+--- a/meson.build
++++ b/meson.build
+@@ -3451,7 +3451,7 @@ if conf.get('ENABLE_TMPFILES') == 1
+         endif
+ 
+         if have_standalone_binaries
+-                public_programs += executable(
++                exe = executable(
+                         'systemd-tmpfiles.standalone',
+                         systemd_tmpfiles_sources,
+                         include_directories : includes,
+@@ -3463,6 +3463,14 @@ if conf.get('ENABLE_TMPFILES') == 1
+                         dependencies : [libacl],
+                         install : true,
+                         install_dir : rootbindir)
++                public_programs += exe
++
++                if want_tests != 'false'
++                        test('test-systemd-tmpfiles.standalone',
++                             test_systemd_tmpfiles_py,
++                             # https://github.com/mesonbuild/meson/issues/2681
++                             args : exe.full_path())
++                endif
+         endif
+ endif
+ 
+-- 
+2.35.1
+

diff --git a/sys-apps/systemd-utils/systemd-utils-250.4.ebuild b/sys-apps/systemd-utils/systemd-utils-250.4.ebuild
index cda7180f1b83..aee6304e1eaa 100644
--- a/sys-apps/systemd-utils/systemd-utils-250.4.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-250.4.ebuild
@@ -98,6 +98,7 @@ QA_FLAGS_IGNORED="usr/lib/systemd/boot/efi/.*"
 
 src_prepare() {
 	local PATCHES=(
+		"${FILESDIR}/250.4-test-systemd-tmpfiles.standalone.patch"
 	)
 	if use elibc_musl; then
 		PATCHES+=( "${WORKDIR}/${MUSL_PATCHSET}" )
@@ -325,7 +326,7 @@ multilib_src_test() {
 		fi
 		if use tmpfiles; then
 			tests+=(
-				test-systemd-tmpfiles
+				test-systemd-tmpfiles.standalone
 				test-tmpfiles
 			)
 		fi


             reply	other threads:[~2022-04-17 13:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-17 13:56 Mike Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-10 16:20 [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd-utils/files/, sys-apps/systemd-utils/ Mike Gilbert
2024-03-28 21:12 Mike Gilbert
2023-09-09 20:24 Mike Gilbert
2023-06-23 20:32 Sam James
2023-01-11  7:50 Sam James
2022-10-14 21:18 Sam James
2022-09-18 15:48 Mike Gilbert
2022-08-08 20:14 Sam James
2022-04-16 23:13 Mike Gilbert

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=1650203814.841cfaa31184136b10b4b3c1ebc86320a831966f.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