gdb fails to compile on Leopard - C++11 compiler

Joshua Root jmr at macports.org
Wed Jan 31 01:32:26 UTC 2018


On 2018-1-31 11:36 , Joshua Root wrote:
> On 2018-1-31 03:41 , Chris Jones wrote:
>>
>> It appears the port already has support for building against MPs python
>> versions, it just is not enabled by default.
>>
>> Titan ~/Projects/MacPorts/ports > port variants gdb
>> gdb has the variants:
>>    multiarch: Support all target architectures
>>    python27: Build GDB with Python 2.7 Scripting
>>      * conflicts with python35 python36
>>    python35: Build GDB with Python 3.5 Scripting
>>      * conflicts with python27 python36
>>    python36: Build GDB with Python 3.6 Scripting
>>      * conflicts with python27 python35
>>    universal: Build for multiple architectures
> 
> So actually the bug would be that it is trying to use python when none
> of the variants are selected.

Try this if you don't want/need python support.

- Josh
-------------- next part --------------
diff --git a/devel/gdb/Portfile b/devel/gdb/Portfile
index c3b4aad1aa..f5170dcdb5 100644
--- a/devel/gdb/Portfile
+++ b/devel/gdb/Portfile
@@ -54,6 +54,7 @@ compiler.blacklist {clang >= 600 < 601}
 configure.args \
     --with-docdir=${prefix}/share/doc \
     --without-guile \
+    --without-python \
     --program-prefix=g \
     --disable-werror
 
@@ -87,6 +88,7 @@ foreach s ${pythons_suffixes} {
     set c [lreplace ${pythons_ports} ${i} ${i}]
     variant ${p} description "Build GDB with Python ${v} Scripting" conflicts {*}${c} "
         depends_lib-append      port:${p}
+        configure.args-delete   --without-python
         configure.args-append   --with-python=${prefix}/bin/python${v}
         patchfiles-append       patch-python-config.py.diff
     "


More information about the macports-users mailing list