From owner-svn-ports-head@FreeBSD.ORG Mon Mar 30 10:43:06 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3184AED2; Mon, 30 Mar 2015 10:43:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 02D20B82; Mon, 30 Mar 2015 10:43:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2UAh58T018761; Mon, 30 Mar 2015 10:43:05 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2UAh5FE018758; Mon, 30 Mar 2015 10:43:05 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201503301043.t2UAh5FE018758@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Mon, 30 Mar 2015 10:43:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r382648 - in head/devel/hs-gtk2hs-buildtools: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 10:43:06 -0000 Author: marino Date: Mon Mar 30 10:43:04 2015 New Revision: 382648 URL: https://svnweb.freebsd.org/changeset/ports/382648 QAT: https://qat.redports.org/buildarchive/r382648/ Log: devel/hs-gtk2hs-buildtools: Fix build of www/hs-gtk with gcc5 The Haskell gtk buildtools use CPP. The CPP on gcc5 has changed behavior, thus preventing hs-gtk from successfully building with gcc5. By adding the -P argument when invoking "cpp" which forces the old behavior, hs-gtk can be built by all versions of gcc. PR: 197924 Submitted by: marino Approved by: haskell@ (pgj@) Added: head/devel/hs-gtk2hs-buildtools/files/patch-c2hs_toplevel_C2HSConfig.hs (contents, props changed) Modified: head/devel/hs-gtk2hs-buildtools/Makefile Modified: head/devel/hs-gtk2hs-buildtools/Makefile ============================================================================== --- head/devel/hs-gtk2hs-buildtools/Makefile Mon Mar 30 09:38:46 2015 (r382647) +++ head/devel/hs-gtk2hs-buildtools/Makefile Mon Mar 30 10:43:04 2015 (r382648) @@ -2,7 +2,7 @@ PORTNAME= gtk2hs-buildtools PORTVERSION= 0.12.5.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel haskell MAINTAINER= haskell@FreeBSD.org Added: head/devel/hs-gtk2hs-buildtools/files/patch-c2hs_toplevel_C2HSConfig.hs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/hs-gtk2hs-buildtools/files/patch-c2hs_toplevel_C2HSConfig.hs Mon Mar 30 10:43:04 2015 (r382648) @@ -0,0 +1,11 @@ +--- c2hs/toplevel/C2HSConfig.hs.orig 2014-04-13 05:14:06 UTC ++++ c2hs/toplevel/C2HSConfig.hs +@@ -70,7 +70,7 @@ cpp = case os of + cppopts :: [String] + cppopts = case (os,cpp) of + ("openbsd","cpp") -> ["-xc", "-w"] +- (_,"cpp") -> ["-x", "c", "-w"] ++ (_,"cpp") -> ["-x", "c", "-P", "-w"] + (_,"gcc") -> ["-E", "-x", "c", "-w"] + _ -> [] +