svn commit: r441008 - in head/ports-mgmt/poudriere: . files

Bryan Drewery bdrewery at FreeBSD.org
Tue May 16 16:15:12 UTC 2017


Author: bdrewery
Date: Tue May 16 16:15:10 2017
New Revision: 441008
URL: https://svnweb.freebsd.org/changeset/ports/441008

Log:
  Fix build of sh on GCC platforms where -std=gnu99 is needed.

Added:
  head/ports-mgmt/poudriere/files/
  head/ports-mgmt/poudriere/files/patch-Makefile.am   (contents, props changed)
Modified:
  head/ports-mgmt/poudriere/Makefile

Modified: head/ports-mgmt/poudriere/Makefile
==============================================================================
--- head/ports-mgmt/poudriere/Makefile	Tue May 16 16:12:25 2017	(r441007)
+++ head/ports-mgmt/poudriere/Makefile	Tue May 16 16:15:10 2017	(r441008)
@@ -2,6 +2,7 @@
 
 PORTNAME=	poudriere
 DISTVERSION=	3.1.17
+PORTREVISION=	1
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	LOCAL/bdrewery/${PORTNAME}/ \
 		http://mirror.shatow.net/freebsd/${PORTNAME}/ \

Added: head/ports-mgmt/poudriere/files/patch-Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/poudriere/files/patch-Makefile.am	Tue May 16 16:15:10 2017	(r441008)
@@ -0,0 +1,37 @@
+commit 7772e88ac1976ed60f4c233136c9246e3a99016e
+Author: Bryan Drewery <bryan at shatow.net>
+Date:   Fri May 12 09:26:06 2017 -0700
+
+    Use C99 to build sh as head does.
+    
+    This fixes the build for Sparc64 with GCC 4.2.1.
+    
+    Reported by:    linimon, jhibbits
+    Fixes #468
+
+diff --git Makefile.am Makefile.am
+index 2e7f8960..7bab2d8d 100644
+--- Makefile.am
++++ Makefile.am
+@@ -146,7 +146,7 @@ rm_SOURCES=		src/libexec/poudriere/rm/rm.c
+ timeout_SOURCES=	src/libexec/poudriere/timeout/timeout.c
+ timestamp_SOURCES=	src/libexec/poudriere/timestamp/timestamp.c
+ tsort_SOURCES=		src/libexec/poudriere/tsort/tsort.c
+-sh_CFLAGS=		-DSHELL -DNO_HISTORY \
++sh_CFLAGS=		-DSHELL -DNO_HISTORY -std=gnu99 \
+ 			-include $(top_srcdir)/external/sh_compat/compat.h \
+ 			-I$(top_srcdir)/src \
+ 			-I$(top_srcdir)/external/sh
+diff --git Makefile.in Makefile.in
+index 1987d11d..d32d502b 100644
+--- Makefile.in
++++ Makefile.in
+@@ -600,7 +600,7 @@ rm_SOURCES = src/libexec/poudriere/rm/rm.c
+ timeout_SOURCES = src/libexec/poudriere/timeout/timeout.c
+ timestamp_SOURCES = src/libexec/poudriere/timestamp/timestamp.c
+ tsort_SOURCES = src/libexec/poudriere/tsort/tsort.c
+-sh_CFLAGS = -DSHELL -DNO_HISTORY -include \
++sh_CFLAGS = -DSHELL -DNO_HISTORY -std=gnu99 -include \
+ 	$(top_srcdir)/external/sh_compat/compat.h -I$(top_srcdir)/src \
+ 	-I$(top_srcdir)/external/sh -I$(top_srcdir)/src/poudriere-sh \
+ 	-I$(top_builddir)/src/poudriere-sh


More information about the svn-ports-all mailing list