pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/ardour Patch local WAF copy to run ${CXX} with -...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94750d5a557a
branches:  trunk
changeset: 406424:94750d5a557a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 21 23:27:03 2019 +0000

description:
Patch local WAF copy to run ${CXX} with -x c++ when detecting it.
Otherwise clang will bail out on - as it is considered a C source and
-std=c++11 as injected by the wrappers conflict.

diffstat:

 audio/ardour/Makefile                                                                             |   6 +++-
 audio/ardour/distinfo                                                                             |   3 +-
 audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py |  16 ++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r cff919cd6ac7 -r 94750d5a557a audio/ardour/Makefile
--- a/audio/ardour/Makefile     Sat Dec 21 23:22:08 2019 +0000
+++ b/audio/ardour/Makefile     Sat Dec 21 23:27:03 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2019/12/12 16:19:48 nia Exp $
+# $NetBSD: Makefile,v 1.33 2019/12/21 23:27:03 joerg Exp $
 
 DISTNAME=      Ardour-5.12.0
 PKGNAME=       ${DISTNAME:tl}
@@ -73,6 +73,10 @@
 INSTALLATION_DIRS+=    share/appdata
 INSTALLATION_DIRS+=    share/applications
 
+pre-patch:
+       cd ${WRKSRC} && ${PYTHONBIN} waf --help > /dev/null
+       rm ${WRKSRC}/.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a/waflib/Tools/c_config.pyc
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/build/gtk2_ardour/ardour5.appdata.xml \
            ${DESTDIR}${PREFIX}/share/appdata
diff -r cff919cd6ac7 -r 94750d5a557a audio/ardour/distinfo
--- a/audio/ardour/distinfo     Sat Dec 21 23:22:08 2019 +0000
+++ b/audio/ardour/distinfo     Sat Dec 21 23:27:03 2019 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.4 2019/12/02 13:34:33 nia Exp $
+$NetBSD: distinfo,v 1.5 2019/12/21 23:27:04 joerg Exp $
 
 SHA1 (Ardour-5.12.0.tar.bz2) = 8bf06a17638e89531cab14af67cfd59d7185518f
 RMD160 (Ardour-5.12.0.tar.bz2) = 71c25f13445f4036ff7127d071d8c1e0851d5eb8
 SHA512 (Ardour-5.12.0.tar.bz2) = c4b4332bddb2406924119c181622801725f4a7dd7741c1a66ddbc2236542764b786337da2f0a751f3bbe6e0389b5da765eb19b14a6a90c8f8a7fd68231e5067d
 Size (Ardour-5.12.0.tar.bz2) = 8852834 bytes
+SHA1 (patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py) = 6b6c776485def8e57ab1ec7fb4b8207ac6d3094a
 SHA1 (patch-gtk2__ardour_ardour__ui.cc) = c8bbd019ecab91081520bdfa999f13f96c9dc39d
 SHA1 (patch-gtk2__ardour_wscript) = f78f4028e20d9d917fd1251618136c51ce3fa28a
 SHA1 (patch-libs_backends_jack_jack__audiobackend.cc) = 9fc4201948a6e88711d18d9218e1dacc1dd2700b
diff -r cff919cd6ac7 -r 94750d5a557a audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py Sat Dec 21 23:27:03 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py,v 1.1 2019/12/21 23:27:04 joerg Exp $
+
+When detecting the C++ compiler, force C++ mode for stdin as the wrappers
+add -std=c++11 and that breaks for C input.
+
+--- .waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a/waflib/Tools/c_config.py.orig 2019-12-21 19:28:02.658101225 +0000
++++ .waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a/waflib/Tools/c_config.py
+@@ -553,7 +553,7 @@ def cxx_load_tools(conf):
+               conf.env.DEST_OS=Utils.unversioned_sys_platform()
+       conf.load('cxx')
+ def get_cc_version(conf,cc,gcc=False,icc=False):
+-      cmd=cc+['-dM','-E','-']
++      cmd=cc+(['-x','c++']if cc[0].endswith('+')else[])+['-dM','-E','-']
+       env=conf.env.env or None
+       try:
+               p=Utils.subprocess.Popen(cmd,stdin=Utils.subprocess.PIPE,stdout=Utils.subprocess.PIPE,stderr=Utils.subprocess.PIPE,env=env)



Home | Main Index | Thread Index | Old Index