Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2012 07:06:08 -0500 (EST)
From:      Steve Wills <swills@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kuriyama@FreeBSD.org
Subject:   ports/173678: [PATCH] security/gnupg: fix build on more recent current
Message-ID:  <201211171206.qAHC68Ct000134@meatwad.mouf.net>
Resent-Message-ID: <201211171210.qAHCA0Bx089305@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173678
>Category:       ports
>Synopsis:       [PATCH] security/gnupg: fix build on more recent current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 17 12:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Steve Wills
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD meatwad.mouf.net 10.0-CURRENT FreeBSD 10.0-CURRENT #12 r242847M: Sun Nov 11 22:13:25 EST
>Description:
- Fix build after CLANG_IS_CC

Port maintainer (kuriyama@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- gnupg-1.4.12.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 307506)
+++ Makefile	(working copy)
@@ -23,9 +23,6 @@
 MACHINE_ARCH=	i586
 .endif
 CFLAGS:=	${CFLAGS:S/-pipe//g}
-.if ${CC} == "clang"
-CFLAGS:=	${CFLAGS:S/$/ -std=c89/}
-.endif
 MAN1=		gpg.1 gpgv.1 gpg.ru.1 gpg-zip.1
 MAN7=		gnupg.7
 INFO=		gnupg1
@@ -43,6 +40,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${CC} == "clang" || ${OSVERSION} >= 1000024
+CFLAGS:=	${CFLAGS:S/$/ -std=c89/}
+.endif
+
 .if defined(WITH_LIBICONV)
 USE_ICONV=	yes
 .else
--- gnupg-1.4.12.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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