svn commit: r522745 - in head/audio/ardour5: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Jan 12 02:59:42 UTC 2020
Author: pkubaj
Date: Sun Jan 12 02:59:41 2020
New Revision: 522745
URL: https://svnweb.freebsd.org/changeset/ports/522745
Log:
audio/ardour5: fix build on powerpc64
_POSIX_SOURCE causes some errors in errno.h not to be seen (like EAFNOSUPPORT), so remove it.
On ELFv2 lld can't link it, throws errors like:
ld: error: relocation R_PPC64_ADDR32 cannot be used against local symbol; recompile with -fPIC
>>> defined in libs/ardour/cycle_timer.cc.1.o
>>> referenced by cycle_timer.cc
>>> libs/ardour/cycle_timer.cc.1.o:(__ftr_fixup+0x8)
Recompiling with -fPIC doesn't help, so use GNU ld there.
PR: 243281
Approved by: portmgr (blanket: build fix)
MFH: 2020Q1 (blanket: build fix)
Added:
head/audio/ardour5/files/
head/audio/ardour5/files/patch-libs_fst_wscript (contents, props changed)
Modified:
head/audio/ardour5/Makefile
Modified: head/audio/ardour5/Makefile
==============================================================================
--- head/audio/ardour5/Makefile Sun Jan 12 02:43:06 2020 (r522744)
+++ head/audio/ardour5/Makefile Sun Jan 12 02:59:41 2020 (r522745)
@@ -49,7 +49,6 @@ USE_LDCONFIG= yes
INSTALLS_ICONS= yes
BROKEN_aarch64= fails to configure: Could not find the program gas,as,gcc
-BROKEN_powerpc64= fails to compile: configuration_variable.cc: 'strtof' is not a member of 'std'
PLIST_SUB= ARDOURVERSION=${PORTVERSION}
@@ -104,6 +103,8 @@ post-install:
WITH_ARCH_FLAGS= --arch='-msse -mfpmath=sse' --dist-target=i386
.elif ${ARCH} == "amd64"
WITH_ARCH_FLAGS= --arch='-msse -mfpmath=sse' --dist-target=x86_64
+.elif ${ARCH} == "powerpc64"
+LLD_UNSAFE= yes
.endif
.if defined(WITH_ARCH_FLAGS)
Added: head/audio/ardour5/files/patch-libs_fst_wscript
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/ardour5/files/patch-libs_fst_wscript Sun Jan 12 02:59:41 2020 (r522745)
@@ -0,0 +1,10 @@
+--- libs/fst/wscript.orig 2020-01-11 19:16:19 UTC
++++ libs/fst/wscript
+@@ -82,7 +82,6 @@ def build(bld):
+
+ obj.includes = [ '../pbd/', '../ardour/', '.' ]
+ obj.defines = [
+- '_POSIX_SOURCE',
+ 'USE_WS_PREFIX',
+ 'VST_SCANNER_APP',
+ 'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"',
More information about the svn-ports-all
mailing list