From owner-svn-ports-head@freebsd.org Sun Jul 17 20:59:02 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0AE5B9CB4F; Sun, 17 Jul 2016 20:59:02 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B9B4167D; Sun, 17 Jul 2016 20:59:02 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6HKx1SM085862; Sun, 17 Jul 2016 20:59:01 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6HKx0MN085855; Sun, 17 Jul 2016 20:59:00 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201607172059.u6HKx0MN085855@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: "Conrad E. Meyer" Date: Sun, 17 Jul 2016 20:59:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r418678 - in head/devel/elfutils: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2016 20:59:02 -0000 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 +.include + +.if ${OSVERSION} < 1000000 +IGNORE= requires FreeBSD 10.0 (strchrnul) +.endif + +.include 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