aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-10-21 07:41:53 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-10-21 07:42:56 +0200
commiteb75be22516ed2f91e160cd7e330672a1dd6b7a1 (patch)
tree81e62e3d664d51cb104b51ad4386c29a81cc5d36 /app-forensics/libpreloadvaccine
parentdev-vcs/gitui: rust package ignore LDFLAGS (diff)
downloadguru-eb75be22516ed2f91e160cd7e330672a1dd6b7a1.tar.gz
guru-eb75be22516ed2f91e160cd7e330672a1dd6b7a1.tar.bz2
guru-eb75be22516ed2f91e160cd7e330672a1dd6b7a1.zip
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 <lssndrbarbieri@gmail.com>
Diffstat (limited to 'app-forensics/libpreloadvaccine')
-rw-r--r--app-forensics/libpreloadvaccine/files/libpreloadvaccine-fix-typo.patch23
-rw-r--r--app-forensics/libpreloadvaccine/libpreloadvaccine-0_pre20190831.ebuild12
2 files changed, 32 insertions, 3 deletions
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 <lssndrbarbieri@gmail.com>
+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
}