From owner-svn-ports-head@freebsd.org Mon Jan 30 10:09:30 2017 Return-Path: Delivered-To: svn-ports-head@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 3BC0CCC7355; Mon, 30 Jan 2017 10:09:30 +0000 (UTC) (envelope-from amdmi3@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 DB6C114B2; Mon, 30 Jan 2017 10:09:29 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0UA9SEL095897; Mon, 30 Jan 2017 10:09:28 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0UA9SlM095895; Mon, 30 Jan 2017 10:09:28 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201701301009.v0UA9SlM095895@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 30 Jan 2017 10:09:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432825 - in head/audio/festival: . 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.23 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 Jan 2017 10:09:30 -0000 Author: amdmi3 Date: Mon Jan 30 10:09:28 2017 New Revision: 432825 URL: https://svnweb.freebsd.org/changeset/ports/432825 Log: - Fix build when CC is absolute path Upstream build scripts have some machinery to include compiler-specific .mak file depending on compiler used. This is handled in an ugly way by the port, roughly, upstream makefile includes ${CC}.mak and ports Makefile copies that from default .mak. This is breaks when CC is an absolute path and is useless anyway, as even if it was implemented properly, customized .mak files are for compilers we'll never use such as gcc 3.2, intel and suncc. So make upstream makefile always include the default .mak. PR: 215253 Approved by: maintainer timeout (mi@aldan.algebra.com, 6 weeks) MFH: 2017Q1 Added: head/audio/festival/files/patch-speech__tools_config_compilers_gcc.mak (contents, props changed) Modified: head/audio/festival/Makefile Modified: head/audio/festival/Makefile ============================================================================== --- head/audio/festival/Makefile Mon Jan 30 09:39:23 2017 (r432824) +++ head/audio/festival/Makefile Mon Jan 30 10:09:28 2017 (r432825) @@ -87,14 +87,11 @@ do-configure: # This step helps non-i386 systems and is harmless on i386 -${LN} -s ix86_FreeBSD.mak ${WRKDIR}/$d/config/systems/${ARCH:S/armv6/arm/}_unknown.mak .endfor - ${REINPLACE_CMD} \ + @${REINPLACE_CMD} \ -e '/^CFLAGS *=/s|$$| ${CFLAGS}|' \ -e '/^CXXFLAGS *=/s|$$| ${CXXFLAGS}|' \ -e 's,^OPTIMI,#OPTIMI,' \ ${WRKSRC}/speech_tools/config/compilers/gcc*.mak - # This step helps to use a compiler, the vendor has not seen before: - ${TEST} -e ${WRKDIR}/speech_tools/config/compilers/${CC}.mak || \ - ${LN} -s gcc_defaults.mak ${WRKDIR}/speech_tools/config/compilers/${CC}.mak do-install: @${MKDIR} ${STAGEDIR}${DATADIR} Added: head/audio/festival/files/patch-speech__tools_config_compilers_gcc.mak ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/festival/files/patch-speech__tools_config_compilers_gcc.mak Mon Jan 30 10:09:28 2017 (r432825) @@ -0,0 +1,11 @@ +--- speech_tools/config/compilers/gcc.mak.orig 2001-04-04 11:55:32 UTC ++++ speech_tools/config/compilers/gcc.mak +@@ -38,8 +38,4 @@ + ## ## + ########################################################################### + +-ifdef GCC +-include $(EST)/config/compilers/$(GCC).mak +-else + include $(EST)/config/compilers/gcc_defaults.mak +-endif