47 Commits
Author SHA1 Message Date
Joshua Root 6bcf542e14 mpbb-install-port: fix parsing new options
See: https://trac.macports.org/ticket/73409
2026-01-20 22:57:46 +11:00
Joshua Root d0eaf6f209 wait-for-mirror: read credentials from a file 2026-01-20 17:40:29 +11:00
Joshua Root 0e465824df Remove port-tclsh workaround
Reverts e30835a.
See: https://trac.macports.org/ticket/72359
2025-04-29 22:45:18 +10:00
Joshua Root b8313c9e91 Add option to retry fetch after mirroring completes 2025-04-23 06:45:25 +10:00
Joshua Root d63675dc4f Bash syntax fix
The -o works with standard 'test' but not with bash '[['...
2024-08-08 10:09:46 +10:00
Joshua Root 2227a3d409 Fixes for non-archive images 2024-08-08 09:37:48 +10:00
Joshua Root 9d13f942f3 mpbb-install-port: clean distfiles on checksum fail 2022-08-17 23:25:35 +10:00
Joshua Root e30835a206 mpb: resolve port-tclsh symlink before executing
This avoids an undesirable modification of auto_path due to Tcl trying
to be helpful.

Closes: https://trac.macports.org/ticket/64507
2022-01-25 03:16:52 +11:00
Joshua Root acc69921f6 mpbb-install-port: improve checking if installed
If the port is installed but the archive name doesn't match what's
expected, uninstall it first.
2021-01-07 02:27:47 +11:00
Joshua Root bb4a1f6089 mpbb: preprocessing improvements
* Start separate builds for unbuilt dependencies.
* gather-archives can therefore consider only the port being built and
  not worry about its deps.
* Exclude ports that have any dependency that sets 'known_fail yes'.
* Exclude dependencies that have a failcache entry or have a recursive
  dependency that does. The ports that the build was actually requested
  for are still built even if a dep is in the failcache, so that the
  failure will be reported to maintainers.
* Delete stale entries from the failcache for relevant ports while
  we're at it.

Fixes: https://trac.macports.org/ticket/60935
2021-01-04 23:31:46 +11:00
Joshua Root fbe5757754 mpbb-install-port: add --source option
See: https://trac.macports.org/ticket/58696
2019-11-13 03:47:53 +11:00
Zero King 9dfffb1f00 Always install the main port from source
We already do some protection to avoid rebuilding existing ports, so
there's no need to avoid building from source on the buildbot.
2019-01-08 12:16:12 +00:00
Ryan SchmidtandRyan Schmidt f114e42daf Set unrequested flag when installing ports
We already install dependencies with the unrequested flag. This now also
installs the main port that way. There seems to be no reason to make a
distinction between the main port and its dependencies with regard to
this flag, since the idea is for all of the ports (or at least, all of
the ports that are dependencies of another port) to remain installed,
regardless of whether they were originally installed explicitly or as a dependency.

Closes: https://trac.macports.org/ticket/57571
2018-12-28 01:18:13 -06:00
Rainer Müller 639def5ad9 mpbb-install-*: Fetch in separate command first
This makes it easier to identify fetch failures. Do not write to
failcache when fetching failed as this is likely a temporary problem.
2018-04-04 18:47:33 +02:00
Clemens Lang a995cfe9cb Fix shellcheck warning
$@ is only supposed to be used as "$@", for all uses within strings, $*
is the correct variable.
2018-03-10 18:08:20 +01:00
Ryan Schmidt e060d60a99 Move get-maintainers to functions 2018-03-07 06:39:46 -06:00
Ryan Schmidt b7af4421e0 Update usage messages 2018-03-07 05:44:09 -06:00
Joshua Root 4162046ce0 Fix gathering archives when ports are inactive 2017-02-12 21:26:34 +11:00
Joshua Root ccb7c12c68 Update get-maintainers for 2.4 2017-01-29 18:44:21 +11:00
Joshua Root 65756210fd Skip upgrading deps when installing ports
The way mpbb works ensures that the deps will already be the latest
version.
2016-12-27 11:03:15 +11:00
Rainer Müller ec5c52f33b Remove executable bits on sourced files
These scripts are not meant to be executed directly.
2016-12-02 21:22:16 +01: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
Mojca Miklavec 355f21fc65 mpbb: Fix maintainers' e-mail extraction
MacPorts 2.3.5 lists maintainers in a different format:
    Email: username@macports.org, GitHub: username
which broke extraction of maintainers' emails.

This is a temporary workaround before a better fix is committed to base.
2016-11-25 08:24:00 +01:00
Lawrence Velázquez 20072aff77 mpbb: Remove --port and --prefix from subcommands
The updated Buildbot configuration is now live.

Shortest deprecation periods ever!

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152624 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-13 14:25:42 +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