Date: Sun, 29 Jan 2017 17:34:53 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> 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 Message-ID: <201701291734.v0THYrKF093793@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701291734.v0THYrKF093793>