pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/yara yara: fix build on NetBSD (no proc inter...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47590653afd8
branches:  trunk
changeset: 389026:47590653afd8
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 29 08:35:01 2022 +0000

description:
yara: fix build on NetBSD (no proc interface)

diffstat:

 security/yara/distinfo                   |   4 ++--
 security/yara/patches/patch-configure.ac |  20 +++++++++++++++-----
 2 files changed, 17 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 0968c7a5fc13 -r 47590653afd8 security/yara/distinfo
--- a/security/yara/distinfo    Tue Nov 29 08:31:18 2022 +0000
+++ b/security/yara/distinfo    Tue Nov 29 08:35:01 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.18 2022/11/28 18:57:19 adam Exp $
+$NetBSD: distinfo,v 1.19 2022/11/29 08:35:01 adam Exp $
 
 BLAKE2s (yara-4.2.3.tar.gz) = fcd5a273fb2f1b7835f9bd80a8963bedf2bc67fa78b971abbcd971571e3fef74
 SHA512 (yara-4.2.3.tar.gz) = 1df23837d14d3f9f72db901190e7412241514a8914d72b753df32ad8a44c7a49ad8f14941a95de83754e4d1dd0f23d712d8e6a43916343341b92cb1bc66f3c09
 Size (yara-4.2.3.tar.gz) = 1288334 bytes
-SHA1 (patch-configure.ac) = 1640083582087e1377d1ee378610e35cd09e08d5
+SHA1 (patch-configure.ac) = 49ad0dddaa2f105a8460304dc163a550d7638b45
diff -r 0968c7a5fc13 -r 47590653afd8 security/yara/patches/patch-configure.ac
--- a/security/yara/patches/patch-configure.ac  Tue Nov 29 08:31:18 2022 +0000
+++ b/security/yara/patches/patch-configure.ac  Tue Nov 29 08:35:01 2022 +0000
@@ -1,10 +1,20 @@
-$NetBSD: patch-configure.ac,v 1.1 2021/06/05 02:58:18 mef Exp $
+$NetBSD: patch-configure.ac,v 1.2 2022/11/29 08:35:01 adam Exp $
 
-ERROR: [check-portability.awk] configure:15604:     if test "x${PROTOC}" == "x"
+NetBSD does not use Linux proc interface.
+Portability fix.
 
---- configure.ac.orig  2021-04-19 22:05:24.000000000 +0900
-+++ configure.ac       2021-06-05 11:54:34.849727053 +0900
-@@ -178,7 +178,7 @@ AC_ARG_ENABLE([pb-tests],
+--- configure.ac.orig  2022-08-08 11:29:28.000000000 +0000
++++ configure.ac
+@@ -54,7 +54,7 @@ case $host_os in
+     mingw*|cygwin*) CFLAGS="$CFLAGS -DUSE_WINDOWS_PROC"
+             proc_interface=windows
+             jemalloc_prefix= ;;
+-    linux*|netbsd*|dragonfly*|kfreebsd*)
++    linux*|dragonfly*|kfreebsd*)
+             CFLAGS="$CFLAGS -DUSE_LINUX_PROC"
+             posix=true
+             proc_interface=linux
+@@ -179,7 +179,7 @@ AC_ARG_ENABLE([pb-tests],
    [if test x$enableval = xyes; then
      build_pb_tests_module=true
      AC_CHECK_PROG(PROTOC, protoc, protoc)



Home | Main Index | Thread Index | Old Index