From 9618c93ef4923855e3da3e1256e0d984e8791935 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Thu, 31 Dec 2020 20:27:21 -0600 Subject: [PATCH] scanmem: fix cross-build --- srcpkgs/scanmem/patches/0001-fix-cross.patch | 32 ++++++++++++++++++++ srcpkgs/scanmem/template | 2 -- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/scanmem/patches/0001-fix-cross.patch diff --git a/srcpkgs/scanmem/patches/0001-fix-cross.patch b/srcpkgs/scanmem/patches/0001-fix-cross.patch new file mode 100644 index 00000000000..a131f9a45fb --- /dev/null +++ b/srcpkgs/scanmem/patches/0001-fix-cross.patch @@ -0,0 +1,32 @@ +From af8bcb8e21ac7f9b97508d6326acd7b1f12982b0 Mon Sep 17 00:00:00 2001 +From: Nathan Owens +Date: Thu, 31 Dec 2020 20:25:35 -0600 +Subject: [PATCH] fix cross + +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git configure.ac configure.ac +index 5b8bac3..6cca18f 100644 +--- configure.ac ++++ configure.ac +@@ -60,13 +60,13 @@ esac + + AS_IF([test "x$android" = "xno"], [ + # also need to check if the file is zero'ed (some hardened systems) +- AC_CHECK_FILE([/proc/self/maps], [], [ ++ AS_IF([test -f/proc/self/maps], [], [ + echo "This system does not seem to have /proc/pid/maps files." + exit 1 + ]) + + # also need to check this file works +- AC_CHECK_FILE([/proc/self/mem], [ ++ AS_IF([test -f /proc/self/mem], [ + # LARGEFILE support required for this to work + AC_SYS_LARGEFILE + AC_DEFINE(HAVE_PROCMEM, [1], [Enable /proc/pid/mem support]) +-- +2.30.0 + diff --git a/srcpkgs/scanmem/template b/srcpkgs/scanmem/template index d694f33d372..2db4f01e297 100644 --- a/srcpkgs/scanmem/template +++ b/srcpkgs/scanmem/template @@ -14,8 +14,6 @@ distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz" checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b CFLAGS="-D__NEED_pid_t" -nocross="checking for /proc/self/maps... configure: error" - pre_configure() { NOCONFIGURE=1 ./autogen.sh }