Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2020 02:59:41 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r522745 - in head/audio/ardour5: . files
Message-ID:  <202001120259.00C2xfMX034751@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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']) + '"',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001120259.00C2xfMX034751>