svn commit: r451174 - in head/devel/argp-standalone: . files

Baptiste Daroussin bapt at FreeBSD.org
Tue Oct 3 21:55:02 UTC 2017


Author: bapt
Date: Tue Oct  3 21:55:00 2017
New Revision: 451174
URL: https://svnweb.freebsd.org/changeset/ports/451174

Log:
  Fix configure with clang avoiding nested function
  
  The detection of those issues was made by openbsd people (ajacoutot and rnagy)
  See http://www.undeadly.org/cgi?action=article;sid=20170930133438
  
  For this port our fix is slightly different than what they did, still the idea
  is the same
  
  Reported by:	ajacoutot at openbsd, rnagy at openbsd

Added:
  head/devel/argp-standalone/files/patch-acinclude.m4   (contents, props changed)
Modified:
  head/devel/argp-standalone/Makefile

Modified: head/devel/argp-standalone/Makefile
==============================================================================
--- head/devel/argp-standalone/Makefile	Tue Oct  3 21:26:57 2017	(r451173)
+++ head/devel/argp-standalone/Makefile	Tue Oct  3 21:55:00 2017	(r451174)
@@ -3,7 +3,7 @@
 
 PORTNAME=	argp-standalone
 PORTVERSION=	1.3
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://www.lysator.liu.se/~nisse/misc/ \
 		LOCAL/sem

Added: head/devel/argp-standalone/files/patch-acinclude.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/argp-standalone/files/patch-acinclude.m4	Tue Oct  3 21:55:00 2017	(r451174)
@@ -0,0 +1,20 @@
+--- acinclude.m4.orig	2004-02-07 17:15:46 UTC
++++ acinclude.m4
+@@ -284,8 +284,6 @@ AC_DEFUN([LSH_GCC_ATTRIBUTES],
+ 	       lsh_cv_c_attribute,
+ [ AC_TRY_COMPILE([
+ #include <stdlib.h>
+-],
+-[
+ static void foo(void) __attribute__ ((noreturn));
+ 
+ static void __attribute__ ((noreturn))
+@@ -293,6 +291,8 @@ foo(void)
+ {
+   exit(1);
+ }
++],
++[
+ ],
+ lsh_cv_c_attribute=yes,
+ lsh_cv_c_attribute=no)])


More information about the svn-ports-all mailing list