From owner-svn-ports-all@freebsd.org Wed Oct 21 08:32:53 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E54FA1AB43; Wed, 21 Oct 2015 08:32:53 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 3A34DB64; Wed, 21 Oct 2015 08:32:53 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9L8Wqt6087642; Wed, 21 Oct 2015 08:32:52 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9L8WqrZ087641; Wed, 21 Oct 2015 08:32:52 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201510210832.t9L8WqrZ087641@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Wed, 21 Oct 2015 08:32:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r399894 - branches/2015Q4/lang/fpc-units X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2015 08:32:53 -0000 Author: marino Date: Wed Oct 21 08:32:52 2015 New Revision: 399894 URL: https://svnweb.freebsd.org/changeset/ports/399894 Log: MFH: r399101 lang/fpc-units: Finally fix default build on FreeBSD 9 On FreeBSD9, libEGL is built by GCC which requires binutils as a run depends. fpc-cairo requires libEGL. fpc-libbfd and binutils conflict with each other due to both installing the same header. Thus, on FreeBSD 9, the BFD and CAIRO options cannot coexist. Since both were set on by default, no binary package for fpc-units has built for months. Since there is no mechanism to set options by release, I use bmake's exist() function to check for /usr/include/lwres which only exists on FreeBSD 9. If it's present, the BFD option is disabled by default. This should restore the building of the fpc-units package on FreeBSD 9. Reported by: pkg-fallout (for months) Approved by: ports-secteam (feld) Modified: branches/2015Q4/lang/fpc-units/Makefile Directory Properties: branches/2015Q4/ (props changed) Modified: branches/2015Q4/lang/fpc-units/Makefile ============================================================================== --- branches/2015Q4/lang/fpc-units/Makefile Wed Oct 21 08:26:20 2015 (r399893) +++ branches/2015Q4/lang/fpc-units/Makefile Wed Oct 21 08:32:52 2015 (r399894) @@ -96,7 +96,7 @@ X11_DESC= Interface to X windows server XFORMS_DESC= Interface to X-Forms ZLIB_DESC= Interface to the zlib compression library -OPTIONS_DEFAULT=A52 ASPELL BFD BZIP2 CAIRO CHM DBUS DBLIB DTS FASTCGI FCL-ASYNC FCL-BASE \ +OPTIONS_DEFAULT=A52 ASPELL BZIP2 CAIRO CHM DBUS DBLIB DTS FASTCGI FCL-ASYNC FCL-BASE \ FCL-EXTRA FCL-DB FCL-FPCUNIT FCL-IMAGE FCL-JS FCL-JSON FCL-NET FCL-PASSRC \ FCL-PROCESS FCL-REGISTRY FCL-RES FCL-WEB FCL-XML FFTW FPINDEXER \ FPMKUNIT FPPKG FV GDBM GMP GTK2 HERMES ICONVENC \ @@ -105,6 +105,12 @@ OPTIONS_DEFAULT=A52 ASPELL BFD BZIP2 CAI PXLIB RSVG REXX SDL SNDFILE SVGALIB SYMBOLIC SYSLOG TCL UNZIP USERS \ UTMP UUID X11 XFORMS ZLIB +.if !exists(/usr/include/lwres) # directory only exists on FreeBSD 9 +# On FreeBSD 9, CAIRO is built with GCC which pulls in binutils +# binutils and BFD conflict, so BFD and CAIRO cannot coexist of F9 +OPTIONS_DEFAULT+= BFD +.endif + .include UNITS_SELECTED= #