FreeBSD Bugzilla – Attachment 202731 Details for
Bug 236409
audio/x42-plugins-lv2: fix build with modern clang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
remove dependency on llvm50
x42-plugins-lv2-modern-clang.diff (text/plain), 4.04 KB, created by
Brooks Davis
on 2019-03-09 00:50:29 UTC
(
hide
)
Description:
remove dependency on llvm50
Filename:
MIME Type:
Creator:
Brooks Davis
Created:
2019-03-09 00:50:29 UTC
Size:
4.04 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 495005) >+++ Makefile (working copy) >@@ -42,13 +42,6 @@ > > SSE_MAKE_ARGS= PORT_SIMD_FLAGS="-msse -msse2 -mfpmath=sse" > >-# It suffers from the regression in clang-6: https://bugs.llvm.org/show_bug.cgi?id=36915 >-LLVM_VER= 50 >-BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} >-CPP= clang-cpp${LLVM_VER} >-CC= clang${LLVM_VER} >-CXX= clang++${LLVM_VER} >- > post-patch: > @${REINPLACE_CMD} 's| -O3||' \ > ${WRKSRC}/*.lv2/Makefile >Index: files/patch-meters.lv2_src_spectr.c >=================================================================== >--- files/patch-meters.lv2_src_spectr.c (nonexistent) >+++ files/patch-meters.lv2_src_spectr.c (working copy) >@@ -0,0 +1,23 @@ >+--- meters.lv2/src/spectr.c.orig >++++ meters.lv2/src/spectr.c >+@@ -30,10 +30,17 @@ >+ # define csqrt(XX) std::sqrt(XX) >+ # define creal(XX) std::real(XX) >+ # define cimag(XX) std::imag(XX) >+-# define _I ((complex_t)(1i)) >+- #ifdef __cpp_lib_complex_udls >++ >++# ifdef __cpp_lib_complex_udls >+ using namespace std::literals::complex_literals; >+- #endif >++# endif >++ >++# if defined __clang_major__ && __clang_major__ > 4 >++# define _I (std::complex<double>(0.0,1.0)) >++# else >++# define _I ((complex_t)(1i)) >++# endif >++ >+ typedef std::complex<double> complex_t; >+ #else >+ # include <complex.h> > >Property changes on: files/patch-meters.lv2_src_spectr.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-onsettrigger.lv2_src_spectr.c >=================================================================== >--- files/patch-onsettrigger.lv2_src_spectr.c (nonexistent) >+++ files/patch-onsettrigger.lv2_src_spectr.c (working copy) >@@ -0,0 +1,23 @@ >+--- onsettrigger.lv2/src/spectr.c.orig >++++ onsettrigger.lv2/src/spectr.c >+@@ -30,10 +30,17 @@ >+ # define csqrt(XX) std::sqrt(XX) >+ # define creal(XX) std::real(XX) >+ # define cimag(XX) std::imag(XX) >+-# define _I ((complex_t)(1i)) >+- #ifdef __cpp_lib_complex_udls >++ >++# ifdef __cpp_lib_complex_udls >+ using namespace std::literals::complex_literals; >+- #endif >++# endif >++ >++# if defined __clang_major__ && __clang_major__ > 4 >++# define _I (std::complex<double>(0.0,1.0)) >++# else >++# define _I ((complex_t)(1i)) >++# endif >++ >+ typedef std::complex<double> complex_t; >+ #else >+ # include <complex.h> > >Property changes on: files/patch-onsettrigger.lv2_src_spectr.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-tuna.lv2_src_spectr.c >=================================================================== >--- files/patch-tuna.lv2_src_spectr.c (nonexistent) >+++ files/patch-tuna.lv2_src_spectr.c (working copy) >@@ -0,0 +1,23 @@ >+--- tuna.lv2/src/spectr.c.orig >++++ tuna.lv2/src/spectr.c >+@@ -30,10 +30,17 @@ >+ # define csqrt(XX) std::sqrt(XX) >+ # define creal(XX) std::real(XX) >+ # define cimag(XX) std::imag(XX) >+-# define _I ((complex_t)(1i)) >+- #ifdef __cpp_lib_complex_udls >++ >++# ifdef __cpp_lib_complex_udls >+ using namespace std::literals::complex_literals; >+- #endif >++# endif >++ >++# if defined __clang_major__ && __clang_major__ > 4 >++# define _I (std::complex<double>(0.0,1.0)) >++# else >++# define _I ((complex_t)(1i)) >++# endif >++ >+ typedef std::complex<double> complex_t; >+ #else >+ # include <complex.h> > >Property changes on: files/patch-tuna.lv2_src_spectr.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
brooks
:
maintainer-approval?
(
yuri
)
Actions:
View
|
Diff
Attachments on
bug 236409
: 202731