[MacPorts] #68362: wireshark{3, 4} doesn't respect +python variant when building

MacPorts noreply at macports.org
Thu Oct 5 15:56:44 UTC 2023


#68362: wireshark{3,4} doesn't respect +python variant when building
--------------------------+------------------------
 Reporter:  hexane360     |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:  python cmake  |       Port:  wireshark4
--------------------------+------------------------
 Wireshark has +python variants, but currently those just ensure *a* python
 is installed, not that the specified python is actually used.

 The following diff seems to fix this, but it hasn't been tested
 rigorously:
 {{{
 --- macports-ports/net/wireshark4/Portfile      2023-10-04 14:47:14
 +++ ports/net/wireshark4/Portfile       2023-10-05 11:51:44
 @@ -172,6 +172,8 @@
      set py_conflicts [lreplace ${pythons_ports} ${i} ${i}]
      variant ${py_port} description "Use python ${py_ver} during build"
 conflicts {*}${py_conflicts} "
          depends_build-append      port:${py_port}
 +        configure.args-append
 -DPython3_ROOT_DIR=\"${frameworks_dir}/Python.framework/Versions/${py_ver}/bin\"
 +        configure.args-append     -DPython3_FIND_STRATEGY=LOCATION
      "
  }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68362>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list