summaryrefslogtreecommitdiff
path: root/devel/elftoolchain
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2017-05-31 22:14:43 +0000
committeragc <agc@pkgsrc.org>2017-05-31 22:14:43 +0000
commit64e80a7fb02c937ed4b15b59f8f517ac89cbaab2 (patch)
tree2099dae543399a22cbf0dabaf231fdcc905ac9cc /devel/elftoolchain
parentcbfc0ac73d24d2eaa8aa7358a7817c1e9bdd9b7e (diff)
downloadpkgsrc-64e80a7fb02c937ed4b15b59f8f517ac89cbaab2.tar.gz
1. add lex as a tool, problem shown up by ubuntu LTS bulk build
2. Add a patch to cast a floating point number before using it to resize buffers, unbreaks the build on NetBSD.
Diffstat (limited to 'devel/elftoolchain')
-rw-r--r--devel/elftoolchain/Makefile4
-rw-r--r--devel/elftoolchain/distinfo3
-rw-r--r--devel/elftoolchain/patches/patch-libelftc___libelftc.h15
3 files changed, 19 insertions, 3 deletions
diff --git a/devel/elftoolchain/Makefile b/devel/elftoolchain/Makefile
index 1f9b8f29544..71e56e0567d 100644
--- a/devel/elftoolchain/Makefile
+++ b/devel/elftoolchain/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2016/05/14 08:29:37 bsiegert Exp $
+# $NetBSD: Makefile,v 1.13 2017/05/31 22:14:43 agc Exp $
DISTNAME= elftoolchain-0.5.1
PKGREVISION= 1
@@ -18,7 +18,7 @@ NOT_FOR_PLATFORM= Darwin-*-*
MAKE_JOBS_SAFE= no
USE_BSD_MAKEFILE= yes
-USE_TOOLS+= m4
+USE_TOOLS+= m4 lex
MAKE_ENV+= ${BSD_MAKE_ENV}
MAKE_FLAGS+= MKPROFILE=yes
diff --git a/devel/elftoolchain/distinfo b/devel/elftoolchain/distinfo
index 9005d44b28b..0ebd7f96859 100644
--- a/devel/elftoolchain/distinfo
+++ b/devel/elftoolchain/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 03:27:24 agc Exp $
+$NetBSD: distinfo,v 1.6 2017/05/31 22:14:43 agc Exp $
SHA1 (elftoolchain-0.5.1.tar.bz2) = 333cfce857ca220177d0a5d111d40afca1eea0c7
RMD160 (elftoolchain-0.5.1.tar.bz2) = 4be0adf8349c764474810e23cfb022c655002d77
@@ -24,3 +24,4 @@ SHA1 (patch-ar_util.c) = 7a70d796516f0b0369dfa44b373dfff5e67dfb9e
SHA1 (patch-libdwarf_Makefile) = bea37cf65de237146dc51a71aed04581bc6c1d95
SHA1 (patch-libelf_Makefile) = 29fdcead0e1d01ba2cf1d9e16e9d50bc041c9eec
SHA1 (patch-libelftc_Makefile) = a91f55e598482123a04dd5e50e5d992a8d866036
+SHA1 (patch-libelftc___libelftc.h) = d2ee73ee21d56a241aec04c43073e3e0dd164d6d
diff --git a/devel/elftoolchain/patches/patch-libelftc___libelftc.h b/devel/elftoolchain/patches/patch-libelftc___libelftc.h
new file mode 100644
index 00000000000..8af546312f7
--- /dev/null
+++ b/devel/elftoolchain/patches/patch-libelftc___libelftc.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-libelftc___libelftc.h,v 1.1 2017/05/31 22:14:43 agc Exp $
+
+avoid error - cast float value to size_t before using it
+
+--- libelftc/_libelftc.h 2017/05/31 22:09:00 1.1
++++ libelftc/_libelftc.h 2017/05/31 22:09:18
+@@ -55,7 +55,7 @@
+ char **container;
+ };
+
+-#define BUFFER_GROWFACTOR 1.618
++#define BUFFER_GROWFACTOR (size_t)1.618
+ #define VECTOR_DEF_CAPACITY 8
+ #define ELFTC_ISDIGIT(C) (isdigit((C) & 0xFF))
+