commit:     904df96a0ef54656d6bc7fa5ce90bc452416d91c
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 17 22:09:13 2019 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Thu Jan 17 22:10:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=904df96a

app-crypt/tpm2-abrmd: succeed tests without X

Closes: https://bugs.gentoo.org/show_bug.cgi?id=675738
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../tpm2-abrmd/files/tpm2-abrmd-2.0.3-build.patch  | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/app-crypt/tpm2-abrmd/files/tpm2-abrmd-2.0.3-build.patch 
b/app-crypt/tpm2-abrmd/files/tpm2-abrmd-2.0.3-build.patch
index 72e823405e9..07c607579f1 100644
--- a/app-crypt/tpm2-abrmd/files/tpm2-abrmd-2.0.3-build.patch
+++ b/app-crypt/tpm2-abrmd/files/tpm2-abrmd-2.0.3-build.patch
@@ -30,3 +30,42 @@ index ecbc3bb..5973ff5 100644
  
  AC_SUBST([PATH])
  
+From 353c5e962f46e3739b1e92cbf6b1f3eb500157fc Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.bar...@gmail.com>
+Date: Thu, 17 Jan 2019 23:56:50 +0200
+Subject: [PATCH] tests: run without X
+
+Solves:
+
+$ DISPLAY= make check
+
+FAIL: test/tss2-tcti-tabrmd_unit
+
+** (process:17633): CRITICAL **: 23:53:22.403: failed to allocate dbus proxy 
object:
+Error spawning command line ?dbus-launch --autolaunch=4f9189e347d5cdf343
+
+Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com>
+
+https://github.com/tpm2-software/tpm2-abrmd/pull/577
+---
+ .travis.yml | 2 +-
+ Makefile.am | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index b32a5fb..2598f13 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -76,7 +76,8 @@ XFAIL_TESTS = \
+ TEST_EXTENSIONS = .int
+ AM_TESTS_ENVIRONMENT = \
+     TEST_FUNC_LIB=$(srcdir)/scripts/int-test-funcs.sh \
+-    PATH=./src:$(PATH)
++    PATH=./src:$(PATH) \
++    dbus-launch
+ INT_LOG_COMPILER = $(srcdir)/scripts/int-test-setup.sh
+ INT_LOG_FLAGS = --tabrmd-tcti=$(TABRMD_TCTI)
+ 
+-- 
+2.19.2
+

Reply via email to