Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2018 21:13:16 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484412 - in head/devel/elfutils: . files
Message-ID:  <201811072113.wA7LDGNt031981@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem (src committer)
Date: Wed Nov  7 21:13:16 2018
New Revision: 484412
URL: https://svnweb.freebsd.org/changeset/ports/484412

Log:
  devel/elfutils: Unbreak gcc8 build
  
  Drop one new gcc8 warning, and fix another in the FreeBSD glibc-
  compatibility shim patch.
  
  Re-enable gcc8 option (USE_GCC= yes).
  
  Bump PORTREVISION due to the patch change (no functional change).
  
  PR:		232932
  Reported by:	gerald, kib
  Reviewed by:	bdrewery
  Approved by:	bdrewery
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D17882

Modified:
  head/devel/elfutils/Makefile
  head/devel/elfutils/files/patch-lib_eu-config.h

Modified: head/devel/elfutils/Makefile
==============================================================================
--- head/devel/elfutils/Makefile	Wed Nov  7 21:09:02 2018	(r484411)
+++ head/devel/elfutils/Makefile	Wed Nov  7 21:13:16 2018	(r484412)
@@ -3,6 +3,7 @@
 
 PORTNAME=	elfutils
 PORTVERSION=	0.174
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://sourceware.org/elfutils/ftp/${PORTVERSION}/
 
@@ -33,11 +34,13 @@ NLS_USES_OFF=	gettext  # used anyway
 NLS_CONFIGURE_ENABLE=	nls
 
 USES=		autoreconf gmake libtool tar:bzip2
-USE_GCC=	7
+USE_GCC=	yes
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
 CFLAGS+=	-Wno-null-dereference -Wno-unused-value
+# For GCC8:
+CFLAGS+=	-Wno-cast-function-type
 # Give i386 a prayer of building, and we can fix the warnings later:
 CFLAGS_i386+=	-Wno-error
 

Modified: head/devel/elfutils/files/patch-lib_eu-config.h
==============================================================================
--- head/devel/elfutils/files/patch-lib_eu-config.h	Wed Nov  7 21:09:02 2018	(r484411)
+++ head/devel/elfutils/files/patch-lib_eu-config.h	Wed Nov  7 21:13:16 2018	(r484412)
@@ -1,12 +1,13 @@
 --- lib/eu-config.h.orig	2015-06-11 11:38:55 UTC
 +++ lib/eu-config.h
-@@ -187,4 +187,170 @@ asm (".section predict_data, \"aw\"; .pr
+@@ -187,4 +187,171 @@ asm (".section predict_data, \"aw\"; .pr
  #endif
  
  
 +/* FreeBSD ports of glibcisms */
 +#include <sys/cdefs.h>
 +#include <libgen.h>
++#include <limits.h>
 +#include <stdarg.h>
 +#include <stdint.h>
 +#include <stdlib.h>
@@ -40,7 +41,7 @@
 +rawmemchr(const void *s, int c)
 +{
 +
-+	return (memchr(s, c, SIZE_MAX));
++	return (memchr(s, c, SSIZE_MAX));
 +}
 +
 +static inline void



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