[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 02:03:31 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: |
-----------------------------+----------------------
Old description:
> The 10.6-i386 buildbot avoids building many packages:
> {{{
> #!tcl
> 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
> }}}
> I believe that a similar strategy could be used to avoid building
> packages that are declared not to be supported on PPC.
>
> See [https://build.macports.org/builders/ports-10.5_ppc_legacy-
> builder/builds/11580/steps/install-port/logs/stdio an example] of the
> libvpx port which doesn't even start to build:
> {{{
> Error: libvpx cannot be installed for the configured build_arch 'ppc'
> because it only supports the arch(s) 'x86_64 i386'.
> Error: Processing of port libvpx failed
> Build of 'libvpx' failed.
> }}}
New description:
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
}}}
I believe that a similar strategy could be used to avoid building packages
that are declared not to be supported on PPC.
See [https://build.macports.org/builders/ports-10.5_ppc_legacy-
builder/builds/11580/steps/install-port/logs/stdio an example] of the
libvpx port which doesn't even start to build:
{{{
Error: libvpx cannot be installed for the configured build_arch 'ppc'
because it only supports the arch(s) 'x86_64 i386'.
Error: Processing of port libvpx failed
Build of 'libvpx' failed.
}}}
--
Comment (by larryv):
Most of this fiddling should be done in the Buildbot configuration and not
in mpbb.
--
Ticket URL: <https://trac.macports.org/ticket/52986#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list