Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2018 07:35:17 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480939 - in head/lang/gcc5: . files
Message-ID:  <201809300735.w8U7ZHUc054295@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Sun Sep 30 07:35:17 2018
New Revision: 480939
URL: https://svnweb.freebsd.org/changeset/ports/480939

Log:
  Recommend the use of GCC 7 or later over this port, since that is now
  the default version of GCC for the Ports Collection.
  
  And backport r478722 | gerald | 2018-09-01 from lang/gcc7: [1]
  
  Disable the build/use of libssp/gets-chk since FreeBSD 12 and later
  do not feature gets() any longer.
  
  PR:		222796, 231066 [1]
  Differential Revision:	https://reviews.freebsd.org/D12298 [1]

Added:
  head/lang/gcc5/files/patch-gets-no-more   (contents, props changed)
Modified:
  head/lang/gcc5/Makefile

Modified: head/lang/gcc5/Makefile
==============================================================================
--- head/lang/gcc5/Makefile	Sun Sep 30 07:18:35 2018	(r480938)
+++ head/lang/gcc5/Makefile	Sun Sep 30 07:35:17 2018	(r480939)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	5.5.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	lang
 MASTER_SITES=	GCC
 PKGNAMESUFFIX=	${SUFFIX}
@@ -14,7 +14,7 @@ COMMENT=	GNU Compiler Collection 5
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-DEPRECATED=	Unsupported by upstream. Use GCC 6 or newer instead.
+DEPRECATED=	Unsupported by upstream. Use GCC 7 or newer instead.
 ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 i386 powerpc powerpc64 powerpcspe sparc64
 BROKEN_sparc64=	Does not build: bootstrap comparison failure
 

Added: head/lang/gcc5/files/patch-gets-no-more
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc5/files/patch-gets-no-more	Sun Sep 30 07:35:17 2018	(r480939)
@@ -0,0 +1,47 @@
+Disable the build/use of libssp/gets-chk since FreeBSD 12 and later
+do not feature gets() any longer.
+
+--- UTC
+Index: libssp/Makefile.am
+===================================================================
+--- libssp/Makefile.am	(revision 263319)
++++ libssp/Makefile.am	(working copy)
+@@ -42,7 +42,7 @@
+ nobase_libsubinclude_HEADERS = ssp/ssp.h ssp/string.h ssp/stdio.h ssp/unistd.h
+ 
+ libssp_la_SOURCES = \
+-	ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
++	ssp.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
+ 	memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
+ 	strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
+ 	vsnprintf-chk.c vsprintf-chk.c
+Index: libssp/Makefile.in
+===================================================================
+--- libssp/Makefile.in	(revision 263319)
++++ libssp/Makefile.in	(working copy)
+@@ -108,7 +108,7 @@
+ am__installdirs = "$(DESTDIR)$(toolexeclibdir)" \
+ 	"$(DESTDIR)$(libsubincludedir)"
+ LTLIBRARIES = $(toolexeclib_LTLIBRARIES)
+-am_libssp_la_OBJECTS = ssp.lo gets-chk.lo memcpy-chk.lo memmove-chk.lo \
++am_libssp_la_OBJECTS = ssp.lo memcpy-chk.lo memmove-chk.lo \
+ 	mempcpy-chk.lo memset-chk.lo snprintf-chk.lo sprintf-chk.lo \
+ 	stpcpy-chk.lo strcat-chk.lo strcpy-chk.lo strncat-chk.lo \
+ 	strncpy-chk.lo vsnprintf-chk.lo vsprintf-chk.lo
+@@ -291,7 +291,7 @@
+ libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include
+ nobase_libsubinclude_HEADERS = ssp/ssp.h ssp/string.h ssp/stdio.h ssp/unistd.h
+ libssp_la_SOURCES = \
+-	ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
++	ssp.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
+ 	memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
+ 	strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
+ 	vsnprintf-chk.c vsprintf-chk.c
+@@ -452,7 +452,6 @@
+ distclean-compile:
+ 	-rm -f *.tab.c
+ 
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gets-chk.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libssp_nonshared_la-ssp-local.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memcpy-chk.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memmove-chk.Plo@am__quote@



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