Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2022 18:47:22 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e1e0b2a0c423 - main - devel/nanopb: Enable internal build option PB_ENABLE_MALLOC
Message-ID:  <202207031847.263IlMSI063268@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e1e0b2a0c423b87c469b0c118f6860ad1d5659bf

commit e1e0b2a0c423b87c469b0c118f6860ad1d5659bf
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-03 17:59:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-03 18:47:18 +0000

    devel/nanopb: Enable internal build option PB_ENABLE_MALLOC
    
    ... because it is needed for devel/criterion.
---
 devel/nanopb/Makefile         |  1 +
 devel/nanopb/files/patch-pb.h | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/devel/nanopb/Makefile b/devel/nanopb/Makefile
index 2f75088c322f..8491ca65ad96 100644
--- a/devel/nanopb/Makefile
+++ b/devel/nanopb/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	nanopb
 DISTVERSION=	0.4.6.4-3
+PORTREVISION=	1
 DISTVERSIONSUFFIX=	-gf84ad7f
 CATEGORIES=	devel
 
diff --git a/devel/nanopb/files/patch-pb.h b/devel/nanopb/files/patch-pb.h
new file mode 100644
index 000000000000..1dbd1f6f6e79
--- /dev/null
+++ b/devel/nanopb/files/patch-pb.h
@@ -0,0 +1,11 @@
+--- pb.h.orig	2022-07-03 17:53:31 UTC
++++ pb.h
+@@ -11,7 +11,7 @@
+  *****************************************************************/
+ 
+ /* Enable support for dynamically allocated fields */
+-/* #define PB_ENABLE_MALLOC 1 */
++#define PB_ENABLE_MALLOC 1
+ 
+ /* Define this if your CPU / compiler combination does not support
+  * unaligned memory access to packed structures. Note that packed



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207031847.263IlMSI063268>