git: 688422886751 - main - devel/fnccheck: fix build against updated libbfd
Adriaan de Groot
adridg at FreeBSD.org
Tue May 11 18:47:41 UTC 2021
The branch main has been updated by adridg:
URL: https://cgit.FreeBSD.org/ports/commit/?id=688422886751cfb751c629f27f3510a3a94fee45
commit 688422886751cfb751c629f27f3510a3a94fee45
Author: Adriaan de Groot <adridg at FreeBSD.org>
AuthorDate: 2021-05-10 22:10:53 +0000
Commit: Adriaan de Groot <adridg at FreeBSD.org>
CommitDate: 2021-05-11 18:47:31 +0000
devel/fnccheck: fix build against updated libbfd
- use the libiberty demangling header instead of a bundled
copy from 2012 that no longer compiles because of changes
in ansidecl.h
- if anyone knows what a CCI/Harris Tahoe was, speak up
- demangle using GNU_V3 instead.
---
devel/fnccheck/Makefile | 3 ++-
devel/fnccheck/files/patch-src_fcdump_demangle.h | 13 +++++++++++++
devel/fnccheck/files/patch-src_fcdump_fc__dump.c | 11 +++++++++++
devel/fnccheck/files/patch-src_fcdump_fc__names.c | 11 +++++++++++
4 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/devel/fnccheck/Makefile b/devel/fnccheck/Makefile
index abce4c3ce95b..85f80e38596e 100644
--- a/devel/fnccheck/Makefile
+++ b/devel/fnccheck/Makefile
@@ -1,6 +1,6 @@
PORTNAME= fnccheck
PORTVERSION= 3.2.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}
DISTNAME= FunctionCheck-${PORTVERSION}
@@ -11,6 +11,7 @@ COMMENT= Profiling library/utilities for C/C++ programs
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
+BUILD_DEPENDS= gnulibiberty>=2.19.1:devel/gnulibiberty
LIB_DEPENDS= libbfd.so:devel/libbfd
USES= autoreconf libtool
diff --git a/devel/fnccheck/files/patch-src_fcdump_demangle.h b/devel/fnccheck/files/patch-src_fcdump_demangle.h
new file mode 100644
index 000000000000..7c2e56b9ba92
--- /dev/null
+++ b/devel/fnccheck/files/patch-src_fcdump_demangle.h
@@ -0,0 +1,13 @@
+--- src/fcdump/demangle.h.orig 2021-05-10 22:03:39 UTC
++++ src/fcdump/demangle.h
+@@ -16,8 +16,9 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
++#include <libiberty/demangle.h>
+
+-#if !defined (DEMANGLE_H)
++#if 0
+ #define DEMANGLE_H
+
+ #include <ansidecl.h>
diff --git a/devel/fnccheck/files/patch-src_fcdump_fc__dump.c b/devel/fnccheck/files/patch-src_fcdump_fc__dump.c
new file mode 100644
index 000000000000..c7635681b4c4
--- /dev/null
+++ b/devel/fnccheck/files/patch-src_fcdump_fc__dump.c
@@ -0,0 +1,11 @@
+--- src/fcdump/fc_dump.c.orig 2021-05-10 22:05:35 UTC
++++ src/fcdump/fc_dump.c
+@@ -597,7 +597,7 @@ int main(int argc, char *argv[])
+ if (strcmp(argv[i], "-demangle-gnu") == 0)
+ {/* demangle names */
+ demangle = 1;
+- style = DMGL_GNU;
++ style = DMGL_GNU_V3;
+ }
+ else
+ if (strcmp(argv[i], "-demangle-java") == 0)
diff --git a/devel/fnccheck/files/patch-src_fcdump_fc__names.c b/devel/fnccheck/files/patch-src_fcdump_fc__names.c
new file mode 100644
index 000000000000..2aa44f508eeb
--- /dev/null
+++ b/devel/fnccheck/files/patch-src_fcdump_fc__names.c
@@ -0,0 +1,11 @@
+--- src/fcdump/fc_names.c.orig 2021-05-10 22:04:48 UTC
++++ src/fcdump/fc_names.c
+@@ -99,7 +99,7 @@ int fc_open_bfd_file(char *name, bfd **core_bfd, int *
+ switch (bfd_get_arch(*core_bfd))
+ {
+ case bfd_arch_vax:
+- case bfd_arch_tahoe:
++ /* case bfd_arch_tahoe: */
+ *core_offset_to_code = 2;
+ break;
+ case bfd_arch_alpha:
More information about the dev-commits-ports-all
mailing list