From eb75be22516ed2f91e160cd7e330672a1dd6b7a1 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 21 Oct 2021 07:41:53 +0200 Subject: app-forensics/libpreloadvaccine: disable tests Closes: https://bugs.gentoo.org/819090 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri --- .../files/libpreloadvaccine-fix-typo.patch | 23 ++++++++++++++++++++++ .../libpreloadvaccine-0_pre20190831.ebuild | 12 ++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 app-forensics/libpreloadvaccine/files/libpreloadvaccine-fix-typo.patch (limited to 'app-forensics') diff --git a/app-forensics/libpreloadvaccine/files/libpreloadvaccine-fix-typo.patch b/app-forensics/libpreloadvaccine/files/libpreloadvaccine-fix-typo.patch new file mode 100644 index 000000000..88adda88d --- /dev/null +++ b/app-forensics/libpreloadvaccine/files/libpreloadvaccine-fix-typo.patch @@ -0,0 +1,23 @@ +From 9b55c68551fccf7bdb7514af35045a592b9da2db Mon Sep 17 00:00:00 2001 +From: Alessandro Barbieri +Date: Thu, 21 Oct 2021 07:15:26 +0200 +Subject: [PATCH] fix typo + +--- a/test/test_libpreloadvaccine.c ++++ b/test/test_libpreloadvaccine.c +@@ -33,7 +33,7 @@ static void test_file_contains_object(void) + static void test_file_contains_object_bad_file(void) + { + char *working_dir = getenv("PWD"); +- char *test_path = strcat(working_dir,"/test/test_data/ld.so.prload"); ++ char *test_path = strcat(working_dir,"/test/test_data/ld.so.preload"); + TEST_ASSERT_FALSE(file_contains_object("/tmp/libpreload.so", test_path)); + } + +@@ -62,4 +62,4 @@ int main(void) + RUN_TEST(test_file_contains_object_bad_file); + + return UnityEnd(); +-} +\ No newline at end of file ++} diff --git a/app-forensics/libpreloadvaccine/libpreloadvaccine-0_pre20190831.ebuild b/app-forensics/libpreloadvaccine/libpreloadvaccine-0_pre20190831.ebuild index 7d512256f..318aaf44e 100644 --- a/app-forensics/libpreloadvaccine/libpreloadvaccine-0_pre20190831.ebuild +++ b/app-forensics/libpreloadvaccine/libpreloadvaccine-0_pre20190831.ebuild @@ -16,8 +16,12 @@ KEYWORDS="~amd64" IUSE="test" DOCS=( README.md ) -PATCHES=( "${FILESDIR}/${PN}-makefile.patch" ) -RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}/${PN}-makefile.patch" + "${FILESDIR}/${PN}-fix-typo.patch" +) +#RESTRICT="!test? ( test )" +RESTRICT="test" src_compile() { emake build @@ -27,6 +31,8 @@ src_compile() { src_install() { dolib.so libpreloadvaccine.so einstalldocs - echo "😃LD_AUDIT=/usr/$(get_libdir)/libpreloadvaccine.so" > 99libpreloadvaccine || die + cat > 99libpreloadvaccine <<- EOF + 😃LD_AUDIT="/usr/$(get_libdir)/libpreloadvaccine.so" + EOF doenvd 99libpreloadvaccine } -- cgit v1.2.3-65-gdbad