Commit Graph
34 Commits
Author SHA1 Message Date
Clemens Lang d8d52a20d7 Revert "Only request variants explicitly when needed."
This reverts commit f6e46815a5.
2018-03-11 16:48:41 +01:00
Joshua Root f3f53485aa Better workaround for port mirror bug
Check that the distfiles exist instead of running the checksum target,
which can pull in dependencies.
2018-03-12 00:58:22 +11:00
Joshua Root b88744777d Lower the bar for recording mirror success
Consider a port mirrored if any of its variants and platforms
succeeded. Still re-mirror ports that are explicitly specified on the
command line if they did not completely succeed previously, so
mirroring can be forced.
2018-03-12 00:34:15 +11:00
Clemens Lang 640313a8d8 tools: Support variants all port clients
Ports might change portgroups or supported architectures depending on
their variant selection, so support variant passing for those tools.
This is a dependency for mpbb list-subports to support variants.
2018-03-10 18:53:29 +01:00
Lawrence VelázquezandClemens Lang 699347d5ed supported-archs: Print all archs instead of nothing
When a port omits "supported_archs", it is implying that it supports all
architectures. In this case, output an explicit list instead of nothing.
2018-03-10 18:52:45 +01:00
Joshua Root 22dd3cc862 Fix mirroring skipping logic
Doesn't really matter whether a port failed this run, we just care that
we've processed it.
2018-03-11 04:32:39 +11:00
Joshua Root b6ea277b6e Fix skipping of ports that already failed to mirror 2018-03-11 00:39:51 +11:00
Joshua Root 09a06d574c Clean before mirroring 2018-03-10 13:35:16 +11:00
Joshua Root 4d222da8c1 Mirror script fixes 2018-03-10 12:42:47 +11:00
Joshua Root 81c423f694 Add smarter distfile mirroring script 2018-03-10 11:37:22 +11:00
Joshua Root f6e46815a5 Only request variants explicitly when needed. 2017-07-08 19:43:05 +10:00
Joshua Root a1e518e839 uninstall-old-ports.tcl improvements
- Use registry2 API.
- Use the same format for printing full port specs as MacPorts does.
- Simplify check for current version.
2017-02-12 20:42:33 +11:00
Joshua Root af8a1e0e53 Set ports_source_only option when finding deps
This both ensures that all deps are found and saves network I/O due
to checking for packages on the server.
2016-12-04 13:35:30 +11:00
Joshua Root fbecdab6a8 Remove support for old macports versions
It was incomplete in this script and so wouldn't have worked anyway.
2016-12-04 13:35:30 +11:00
Joshua Root 1b9a6683a6 Don't bother with mportclose or mportshutdown
The tool scripts do only read-only operations with the macports API,
so nothing needs to be saved, and there's no point deallocating
anything as we're just going to exit immediately anyway.
2016-12-04 13:35:30 +11:00
Joshua Root 4462924d82 Don't double-open ports in dependencies.tcl
Get default variant info from vinfo instead.
2016-12-04 13:35:30 +11:00
Joshua Root 426f9e7b17 add successcache support to mpbb
Check if the archive for the requested port exists in its installed
location, and if so, simply skip installing.

Do the same for each dependency. Dependencies are still built if not
already installed (even if the requested port is somehow already
installed), so their archives can be uploaded.

Deactivate all ports between builds when installing dependencies.
Activate all the dependencies after they are all installed iff the
requested port will need to be built.

Fixes: https://trac.macports.org/ticket/52765
2016-11-30 10:06:17 +11:00
Ryan Schmidt caba6bdec5 mp-buildbot: rename canonical_variants.tcl
Rename canonical_variants.tcl to canonical-variants.tcl to match the other
filenames.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152647 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-14 12:09:06 +00:00
Ryan Schmidt 32e6e6ffc6 mp-buildbot: add modeline
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152646 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-14 12:05:29 +00:00
Ryan Schmidt 41e6e3f1fe mp-buildbot: add blank line before description
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152645 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-14 12:04:30 +00:00
Clemens Lang 4c4cc7ae32 mp-buildbot: Don't re-run previously failed builds
If a port's build has previously failed, we do not want to waste cycles
to re-attempt it (e.g. as dependencies of other ports), unless the
failed port's definition has changed.

To achieve that, create a file with a reference to the last failed build
for every failing port, and fail builds that depend on failed ports
early.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152581 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 19:14:24 +00:00
Clemens Lang fa614f9681 mp-buildbot: Support variants in dependency calc
Adding a failcache to avoid wasting time requires a path per port that
we can use to cache the result of the last build. Since we're planning
to support variants in mp-buildbot, this path needs to be
variant-specific as well. In order to implement the fail cache, we thus
need working variant support first.

Fix a bug in the variant calculation of dependencies that would trigger
in the following situation:

 port bar:
   depends_lib port:foo

 port foo:
   default_variants +foo +bar

 ./tools/dependencies.tcl bar -bar

This setup used to print "foo +foo" only, but passing that to "port
install" would still install foo with the bar variant. With this change,
the correct value "foo -bar+foo" is printed instead.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152489 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-11 11:07:27 +00:00
Ryan Schmidt 45dce76fdf mp-buildbot: fix supported-archs.tcl to work when a subport is specified
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151108 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-07 16:59:33 +00:00
Clemens Lang 18b782e84d mp-buildbot: Print dependencies in topologic order
foreach ditem $dlist {...} does not print items in topologic sorting, but we
need that to ensure that we always know exactly which port failed to install in
mpbb install-dependencies. Fix this by using dlist_eval, which is guaranteed to
sort accordingly.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151083 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-06 18:02:44 +00:00
Clemens Lang 51c0d587c9 mp-buildbot: Remove mpbb subports
mpbb subports is deprecated. mpbb list-subports should be used instead as it is
more efficient, simpler, and has more features.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151081 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-06 16:38:32 +00:00