Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jul 2016 20:59:00 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r418678 - in head/devel/elfutils: . files
Message-ID:  <201607172059.u6HKx0MN085855@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem (src committer)
Date: Sun Jul 17 20:59:00 2016
New Revision: 418678
URL: https://svnweb.freebsd.org/changeset/ports/418678

Log:
  elfutils-0.163_6
  
  - Drop GCC requirement to 4.8
  - Remove -Werror for i386, for now anyway
  - Require FreeBSD 10.0 or higher for strchrnul()
  - Fix a few warnings noticed by gcc with optimization on
  
  Sponsored by:	EMC / Isilon Storage Division

Added:
  head/devel/elfutils/files/patch-libdw_dwarf__getsrclines.c   (contents, props changed)
  head/devel/elfutils/files/patch-src_ldlex.c   (contents, props changed)
  head/devel/elfutils/files/patch-src_ldlex.l   (contents, props changed)
  head/devel/elfutils/files/patch-src_readelf.c   (contents, props changed)
Modified:
  head/devel/elfutils/Makefile
  head/devel/elfutils/files/patch-src_Makefile.am

Modified: head/devel/elfutils/Makefile
==============================================================================
--- head/devel/elfutils/Makefile	Sun Jul 17 19:31:35 2016	(r418677)
+++ head/devel/elfutils/Makefile	Sun Jul 17 20:59:00 2016	(r418678)
@@ -3,7 +3,7 @@
 
 PORTNAME=	elfutils
 PORTVERSION=	0.163
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	devel
 MASTER_SITES=	https://fedorahosted.org/releases/e/l/elfutils/$(PORTVERSION)/
 
@@ -27,9 +27,13 @@ NLS_CONFIGURE_ENABLE=	nls
 
 USES=		gmake libtool tar:bzip2
 USE_AUTOTOOLS=	automake:env
-USE_GCC=	4.9+
+USE_GCC=	4.8+
 GNU_CONFIGURE=	yes
 
+CFLAGS+=	-Wno-unused-parameter
+# Give i386 a prayer of building, and we can fix the warnings later:
+CFLAGS_i386+=	-Wno-error
+
 # Avoid conflict with binutils / elftoolchain programs with the same names:
 CONFIGURE_ARGS+=	--program-prefix=eu-
 
@@ -43,4 +47,10 @@ post-patch:
 pre-configure:
 	@cd $(WRKSRC) && ${AUTOMAKE}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1000000
+IGNORE=		requires FreeBSD 10.0 (strchrnul)
+.endif
+
+.include <bsd.port.post.mk>

Added: head/devel/elfutils/files/patch-libdw_dwarf__getsrclines.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/elfutils/files/patch-libdw_dwarf__getsrclines.c	Sun Jul 17 20:59:00 2016	(r418678)
@@ -0,0 +1,11 @@
+--- libdw/dwarf_getsrclines.c.orig	2015-06-10 19:44:33 UTC
++++ libdw/dwarf_getsrclines.c
+@@ -188,7 +188,7 @@ read_srclines (Dwarf *dbg,
+   /* Remember array with the standard opcode length (-1 to account for
+      the opcode with value zero not being mentioned).  */
+   const uint8_t *standard_opcode_lengths = linep - 1;
+-  if (unlikely (lineendp - linep < opcode_base - 1))
++  if (unlikely (lineendp - linep < (ptrdiff_t)opcode_base - 1))
+     goto invalid_data;
+   linep += opcode_base - 1;
+ 

Modified: head/devel/elfutils/files/patch-src_Makefile.am
==============================================================================
--- head/devel/elfutils/files/patch-src_Makefile.am	Sun Jul 17 19:31:35 2016	(r418677)
+++ head/devel/elfutils/files/patch-src_Makefile.am	Sun Jul 17 20:59:00 2016	(r418678)
@@ -14,7 +14,15 @@
  libelf = ../libelf/libelf.so
  endif
  libebl = ../libebl/libebl.a
-@@ -103,27 +103,27 @@ ranlib_no_Wstack_usage = yes
+@@ -89,6 +89,7 @@ endif
+ # XXX While the file is not finished, don't warn about this
+ ldgeneric_no_Wunused = yes
+ ldgeneric_no_Wstack_usage = yes
++ldgeneric_no_Werror = yes
+ 
+ # Bad, bad stack usage...
+ readelf_no_Wstack_usage = yes
+@@ -103,27 +104,27 @@ ranlib_no_Wstack_usage = yes
  ar_no_Wstack_usage = yes
  unstrip_no_Wstack_usage = yes
  

Added: head/devel/elfutils/files/patch-src_ldlex.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/elfutils/files/patch-src_ldlex.c	Sun Jul 17 20:59:00 2016	(r418678)
@@ -0,0 +1,11 @@
+--- src/ldlex.c.orig	2014-08-26 08:58:02 UTC
++++ src/ldlex.c
+@@ -1629,7 +1629,7 @@ YY_RULE_SETUP
+ #line 149 "/home/mark/src/elfutils/src/ldlex.l"
+ { int cnt = 1 ;
+ 				  ldlval.num = 0;
+-				  while (cnt < ldleng - 1)
++				  while (cnt < (int)ldleng - 1)
+ 				    ldlval.num |= attrib_convert (ldtext[cnt++]);
+ 				  return kMODE; }
+ 	YY_BREAK

Added: head/devel/elfutils/files/patch-src_ldlex.l
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/elfutils/files/patch-src_ldlex.l	Sun Jul 17 20:59:00 2016	(r418678)
@@ -0,0 +1,11 @@
+--- src/ldlex.l.orig	2014-02-05 00:21:44 UTC
++++ src/ldlex.l
+@@ -148,7 +148,7 @@ VERSION				{ return kVERSION; }
+ 
+ "["([RWX]){0,3}"]"		{ int cnt = 1 ;
+ 				  ldlval.num = 0;
+-				  while (cnt < yyleng - 1)
++				  while (cnt < (int)yyleng - 1)
+ 				    ldlval.num |= attrib_convert (yytext[cnt++]);
+ 				  return kMODE; }
+ 

Added: head/devel/elfutils/files/patch-src_readelf.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/elfutils/files/patch-src_readelf.c	Sun Jul 17 20:59:00 2016	(r418678)
@@ -0,0 +1,10 @@
+--- src/readelf.c.orig	2015-06-19 11:17:42 UTC
++++ src/readelf.c
+@@ -7911,6 +7911,7 @@ print_debug_exception_table (Dwfl_Module
+ 	  break;
+ 	default:
+ 	  error (1, 0, gettext ("invalid TType encoding"));
++	  abort();
+ 	}
+ 
+       if (max_ar_filter



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