[MacPorts] #52986: buildbot: don't add ports that declare not to support ppc to the build queue of 10.5-ppc

MacPorts noreply at macports.org
Thu Dec 1 14:37:36 CET 2016


#52986: buildbot: don't add ports that declare not to support ppc to the build
queue of 10.5-ppc
-----------------------------+----------------------
  Reporter:  mojca           |      Owner:  admin@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:
Resolution:                  |   Keywords:  buildbot
      Port:                  |
-----------------------------+----------------------

Comment (by ryandesign):

 Replying to [ticket:52986 mojca]:
 > The 10.6-i386 buildbot avoids building many packages:
 > {{{
 > #!bash
 > if [[ $exclude -eq 0 && "${os_version}" = "10.6" &&
 "${is_64bit_capable}" = "0" ]]; then
 >     supported_archs=$("${option_prefix}/bin/port-tclsh"
 "${thisdir}/tools/supported-archs.tcl" "${port}")
 >     if [[ -n "${supported_archs}" && ! ("${supported_archs}" ==
 *"x86_64"* && "${supported_archs}" == *"i386"*) ]]; then
 >         exclude=1
 >         exclude_reasons+=("the ${os_version}_x86_64 builder will build
 it")
 >     fi
 > fi
 > }}}

 This code is there because it is buildbot-specific. The i386 builder
 ''could'' build i386-only ports, but we don't want it to, because want to
 build them on the x86_64 builder, so that their dependencies get built
 universal.

 > I believe that a similar strategy could be used to avoid building
 packages that are declared not to be supported on PPC.

 We've discussed before that this is a generic MacPorts problem, not a
 buildbot-specific one. Instead of adding code for this to our buildbot
 system, we should write code in MacPorts base so that a client (e.g. a
 user or the buildbot) can determine in advance whether a port is buildable
 on a particular system. Then the buildbot can simply avoid attempting to
 build ports that are known not to be buildable on a particular system.

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


More information about the macports-tickets mailing list