Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2023 02:17:57 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 1dd3f2e85850 - 2023Q3 - audio/triceratops-lv2: Fix build on non-64-bit systems
Message-ID:  <202307100217.36A2Hv4P047753@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q3 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1dd3f2e85850676267eebe98d69d6da88bd637a7

commit 1dd3f2e85850676267eebe98d69d6da88bd637a7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-10 02:16:26 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-10 02:17:52 +0000

    audio/triceratops-lv2: Fix build on non-64-bit systems
    
    -fPIC was added by mistake only on 64-bit systems.
    
    Reported by:    fallout
    
    (cherry picked from commit 8e497ad0b5bb2994774e5dc2831652dae92ce82f)
---
 audio/triceratops-lv2/files/patch-wscript | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/audio/triceratops-lv2/files/patch-wscript b/audio/triceratops-lv2/files/patch-wscript
new file mode 100644
index 000000000000..d2ee6e18ac1d
--- /dev/null
+++ b/audio/triceratops-lv2/files/patch-wscript
@@ -0,0 +1,19 @@
+- fPIC is needed on all platforms, not only on 64-bit ones
+- otherwise the build breaks
+
+--- wscript.orig	2023-07-10 01:57:23 UTC
++++ wscript
+@@ -29,9 +29,10 @@ def configure(conf):	
+     else:
+         conf.env.append_unique('CXXFLAGS', ['-O2','-funroll-loops','-std=c++0x','-g'])
+ 
+-    if sys.maxsize >= 9223372036854775807:
+-        print("detected 64 bit architecture, enabling -fPIC")
+-        conf.env.append_unique('CXXFLAGS', ['-fPIC','-fpermissive','-finline-functions'])
++    #if sys.maxsize >= 9223372036854775807:
++    #    print("detected 64 bit architecture, enabling -fPIC")
++    #    conf.env.append_unique('CXXFLAGS', ['-fPIC','-fpermissive','-finline-functions'])
++    conf.env.append_unique('CXXFLAGS', ['-fPIC','-fpermissive','-finline-functions'])
+ 
+     if not autowaf.is_child():
+         autowaf.check_pkg(conf, 'lv2', uselib_store='LV2CORE')



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