From owner-svn-ports-all@freebsd.org Sun Jan 29 17:34:55 2017 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 44074CC7D62; Sun, 29 Jan 2017 17:34:55 +0000 (UTC) (envelope-from mandree@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 0067D1272; Sun, 29 Jan 2017 17:34:54 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0THYsbj093794; Sun, 29 Jan 2017 17:34:54 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0THYrKF093793; Sun, 29 Jan 2017 17:34:54 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201701291734.v0THYrKF093793@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Sun, 29 Jan 2017 17:34:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432789 - in head/graphics: rawtherapee rawtherapee-devel X-SVN-Group: ports-head 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.23 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: Sun, 29 Jan 2017 17:34:55 -0000 Author: mandree Date: Sun Jan 29 17:34:53 2017 New Revision: 432789 URL: https://svnweb.freebsd.org/changeset/ports/432789 Log: Block esoteric systems. In particular, only support amd64 for FreeBSD 12+ (-CURRENT), Nail the coffin of EOL distros: IGNORE builds before 10.3-RELEASE, and force -mstackrealign on i386 gcc to put an end to i386 instabilities. (for some reason, FreeBSD 12-CURRENT chooses GCC rather than base clang, and then breaks the stack alignment for SSE2 again, causing SIGBUS[1].) [1] http://beefy11.nyi.freebsd.org/data/head-i386-default/p432608_s312909/logs/rawtherapee-devel-5.0.log Reported by: pkg-fallout@ [1] Modified: head/graphics/rawtherapee-devel/Makefile head/graphics/rawtherapee/Makefile Modified: head/graphics/rawtherapee-devel/Makefile ============================================================================== --- head/graphics/rawtherapee-devel/Makefile Sun Jan 29 17:25:26 2017 (r432788) +++ head/graphics/rawtherapee-devel/Makefile Sun Jan 29 17:34:53 2017 (r432789) @@ -76,6 +76,18 @@ OPTIMIZED_CFLAGS_CFLAGS= -O3 -funroll-lo # ------------------------------------------------------------------- # +.if ${OSVERSION} < 1030000 +IGNORE= is only for supported FreeBSD releases +.endif + +.if ${OSVERSION} >= 1200000 +# don't waste everybody's time with Tier-2 and moving targets. +# might add ARM64 or SPARC64 later on if they are established by the +# time FreeBSD 12 is out. +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON=Only amd64 is supported on non-released FreeBSD versions. +.endif + .if ${PORT_OPTIONS:MNATIVE} CMAKE_ARGS+= -DPROC_TARGET_NUMBER="2" .endif @@ -111,6 +123,11 @@ USES+= compiler:gcc-c++11-lib # over previously set values with gcc-libc++-configure as of r432539. # GCC 4.9 doesn't generate usable code on FreeBSD 11.0. USE_GCC= 5+ + +# work around compiler faults +.if ${ARCH} == i386 +CFLAGS+= -mstackrealign +.endif .endif post-patch: Modified: head/graphics/rawtherapee/Makefile ============================================================================== --- head/graphics/rawtherapee/Makefile Sun Jan 29 17:25:26 2017 (r432788) +++ head/graphics/rawtherapee/Makefile Sun Jan 29 17:34:53 2017 (r432789) @@ -74,6 +74,18 @@ OPTIMIZED_CFLAGS_CFLAGS= -O3 -funroll-lo # ------------------------------------------------------------------- # +.if ${OSVERSION} < 1030000 +IGNORE= is only for supported FreeBSD releases +.endif + +.if ${OSVERSION} >= 1200000 +# don't waste everybody's time with Tier-2 and moving targets. +# might add ARM64 or SPARC64 later on if they are established by the +# time FreeBSD 12 is out. +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON=Only amd64 is supported on non-released FreeBSD versions. +.endif + .if ${PORT_OPTIONS:MNATIVE} CMAKE_ARGS+= -DPROC_TARGET_NUMBER="2" .endif @@ -109,6 +121,11 @@ USES+= compiler:gcc-c++11-lib # over previously set values with gcc-libc++-configure as of r432539. # GCC 4.9 doesn't generate usable code on FreeBSD 11.0. USE_GCC= 5+ + +# work around compiler faults +.if ${ARCH} == i386 +CFLAGS+= -mstackrealign +.endif .endif post-patch: