[MacPorts] #63356: meson PortGroup: find an easier method to set the desired python rather than patch-and-reinplace python in every port

MacPorts noreply at macports.org
Wed Sep 1 14:48:44 UTC 2021


#63356: meson PortGroup: find an easier method to set the desired python rather
than patch-and-reinplace python in every port
--------------------------+---------------------------------------------
  Reporter:  Lord-Kamina  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  meson python python_select path
      Port:  meson        |
--------------------------+---------------------------------------------

Comment (by kencu):

 Replying to [comment:6 Lord-Kamina]:
 > Replying to [comment:4 kencu]:
 > > It is unfortunate this is needed, and then has to be updated in many
 ports when the blessed python changes. But it is what we do.
 >
 > Do take note of something, though...
 >
 > From https://mesonbuild.com/Python-module.html#find_installation
 >
 > `That argument is optional, if not provided then the returned python
 installation will be the one used to run Meson.`
 >
 > I guess, for many ports just patching or running `reinplace` to change
 the call to `find_installation` could be enough.
 >

 The reproducible builds dogma says that the tools used have be
 deterministically specified, and cannot just be whatever is randomly found
 by the toolchain at the time.

 So MacPorts expects the python (or other tool) used will be the same every
 time by all users. So the parameter is not optional for MacPorts
 (ideally).

 That is why it is specified exactly as we do.

-- 
Ticket URL: <https://trac.macports.org/ticket/63356#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list