From ffba4d2517e856df64248f66fed326a1742a1e3c Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Mon, 20 Feb 2023 13:46:34 +0100 Subject: security/0d1n: fix build - convert static REINPLACE_CMD to patch files as per policy - remove remaining uses - patch getopt_long use on targets where char is unsigned - work around missing __GNUC_PREREQ macro - fix other missing includes - update pkg-plist to what the maintainer intended to pack - patch /opt/0d1n to ${DATADIR} in the relevant files - note that project is dual licensed (upstream has since removed the GPLv3 license) - define LICENSE_FILE_{GPLv3,BSD3CLAUSE} PR: 269717 Fixes: 88dd085ff7851bb2906039d97a81857fe6d8b2e3 Approved by: portmgr (build fix blanket) Approved by: flo (mentor) Differential Revision: https://reviews.freebsd.org/D38725 --- security/0d1n/files/patch-src_mem__ops.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 security/0d1n/files/patch-src_mem__ops.c (limited to 'security/0d1n/files/patch-src_mem__ops.c') diff --git a/security/0d1n/files/patch-src_mem__ops.c b/security/0d1n/files/patch-src_mem__ops.c new file mode 100644 index 000000000000..6eaea0440ca3 --- /dev/null +++ b/security/0d1n/files/patch-src_mem__ops.c @@ -0,0 +1,11 @@ +--- src/mem_ops.c.orig 2023-02-20 12:57:16 UTC ++++ src/mem_ops.c +@@ -17,7 +17,7 @@ static void * + xmalloc_fatal(size_t size) + { + +- DEBUG("\n Memory FAILURE...\n size dbg: %lu\n",size); ++ DEBUG("\n Memory FAILURE...\n size dbg: %zu\n",size); + + exit(0); + } -- cgit v1.2.3