pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/honggfuzz
Module Name: pkgsrc
Committed By: he
Date: Tue Feb 14 15:45:58 UTC 2023
Modified Files:
pkgsrc/devel/honggfuzz: Makefile distinfo
Added Files:
pkgsrc/devel/honggfuzz/patches: patch-netbsd_trace.c
Log Message:
honggfuzz: add a patch for portability to NetBSD/powerpc.
Now it at least builds. Needed atomic64.mk as well.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/honggfuzz/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/honggfuzz/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/honggfuzz/patches/patch-netbsd_trace.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/honggfuzz/Makefile
diff -u pkgsrc/devel/honggfuzz/Makefile:1.3 pkgsrc/devel/honggfuzz/Makefile:1.4
--- pkgsrc/devel/honggfuzz/Makefile:1.3 Wed Jul 22 21:53:59 2020
+++ pkgsrc/devel/honggfuzz/Makefile Tue Feb 14 15:45:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2020/07/22 21:53:59 kamil Exp $
+# $NetBSD: Makefile,v 1.4 2023/02/14 15:45:58 he Exp $
DISTNAME= honggfuzz-2.3.1
CATEGORIES= devel
@@ -15,4 +15,5 @@ USE_TOOLS+= bash:run gmake
.include "../../lang/libBlocksRuntime/buildlink3.mk"
.include "../../devel/capstone/buildlink3.mk"
+.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/honggfuzz/distinfo
diff -u pkgsrc/devel/honggfuzz/distinfo:1.6 pkgsrc/devel/honggfuzz/distinfo:1.7
--- pkgsrc/devel/honggfuzz/distinfo:1.6 Sun May 8 10:23:25 2022
+++ pkgsrc/devel/honggfuzz/distinfo Tue Feb 14 15:45:58 2023
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2022/05/08 10:23:25 nia Exp $
+$NetBSD: distinfo,v 1.7 2023/02/14 15:45:58 he Exp $
BLAKE2s (honggfuzz-2.3.1.tar.gz) = f1d9be563b12d563ef8ccc5b3324c61036031b90413a86874d0c0f83fb9522a4
SHA512 (honggfuzz-2.3.1.tar.gz) = 36b3182a0075289467c385b5e03f881fd20193b938dfcec6e364f502637ffc797b6b8ddaddbc5851c4482758088e40eee1e4ca2850bff0294c04c04a036359bf
Size (honggfuzz-2.3.1.tar.gz) = 65221820 bytes
SHA1 (patch-Makefile) = a1464b208d260fca3cf3b9a50f07e2709024a1a0
+SHA1 (patch-netbsd_trace.c) = 7571a7cde3b52a868d77649c96e31d8d98441e31
Added files:
Index: pkgsrc/devel/honggfuzz/patches/patch-netbsd_trace.c
diff -u /dev/null pkgsrc/devel/honggfuzz/patches/patch-netbsd_trace.c:1.1
--- /dev/null Tue Feb 14 15:45:58 2023
+++ pkgsrc/devel/honggfuzz/patches/patch-netbsd_trace.c Tue Feb 14 15:45:58 2023
@@ -0,0 +1,25 @@
+$NetBSD: patch-netbsd_trace.c,v 1.1 2023/02/14 15:45:58 he Exp $
+
+Provide portability to powerpc.
+
+--- netbsd/trace.c.orig 2020-07-22 21:04:55.000000000 +0000
++++ netbsd/trace.c
+@@ -187,6 +187,8 @@ static size_t arch_getPC(
+ *status_reg = r.regs[_REG_EFLAGS];
+ #elif defined(__x86_64__)
+ *status_reg = r.regs[_REG_RFLAGS];
++#elif defined(__powerpc__)
++ *status_reg = r.xer;
+ #else
+ #error unsupported CPU architecture
+ #endif
+@@ -225,6 +227,9 @@ static void arch_getInstrStr(pid_t pid,
+ #elif defined(__x86_64__)
+ arch = CS_ARCH_X86;
+ mode = CS_MODE_64;
++#elif defined(__powerpc__)
++ arch = CS_ARCH_PPC;
++ mode = CS_MODE_32;
+ #else
+ #error Unsupported CPU architecture
+ #endif
Home |
Main Index |
Thread Index |
Old Index