43 Commits
Author SHA1 Message Date
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 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 d57180a0c9 mpbb-list-subports: add option to exclude deps 2021-01-06 16:56:26 +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 8833b70dd9 mpbb list-subports: check for archives from Tcl
This has several performance benefits:
 * MacPorts only has to be started up once
 * Each portfile only has to be parsed at most once
 * libcurl can keep the connection open and reuse it
2019-11-10 04:28:09 +11:00
Joshua Root f68f7adb21 mpbb-list-subports: do arch exclusions in Tcl 2019-10-17 23:23:21 +11:00
Joshua Root 0ece6cc065 mpbb-list-subports: log sort-with-subports stderr
This includes some exclusion reasons now.
2019-10-17 22:01:35 +11:00
Joshua Root 94748c8911 mpbb-list-subports: remove redundant code
Obsolete ports are now excluded by sort-with-subports.tcl.
2019-09-30 03:56:55 +10:00
Ryan SchmidtandRyan Schmidt 6ac8fd431e Don't check if archive is installed
Don't require that the archive is installed on the buildworker. Just
check if it's been uploaded to the server. This should save time when
an existing buildworker needs to be reset.
2018-12-20 02:03:19 -06:00
Ryan SchmidtandRyan Schmidt 74d7a70f24 Also check private archives when listing ports
See: https://trac.macports.org/ticket/54800
2018-12-07 05:17:55 -06:00
Rainer MüllerandZero King 868f688145 mpbb-list-subports: Allow empty --archive-site
Passing an empty string to --archive-site disables the checks on the
remote mirror.

See: https://trac.macports.org/ticket/56110
2018-09-08 01:59:27 +00:00
Joshua Root 97f4db4f3e List subports in dependency order
Closes: https://trac.macports.org/ticket/52766
2018-03-13 11:43:43 +11:00
Ryan Schmidt b7af4421e0 Update usage messages 2018-03-07 05:44:09 -06:00
Rainer Müller 3b661223d5 Fix passing --archive-site to list-subports
The arguments have to be parsed in list-subports. The value of the
--archive-site option is then passed down to print-subports.
2017-07-05 17:39:42 +02:00
Ryan Schmidt fc7499ea2f Describe --archive-site option in mpbb-list-subports help 2017-05-02 04:42:48 -05:00
Joshua Root 5c7ba12259 Set up option_archive_site in print-subports 2017-02-13 07:34:05 +11:00
Ryan Schmidt c633c3f061 Fix typo in comment 2017-02-12 05:21:49 -06:00
Joshua Root b187a11df1 Refine exclusion logic
Don't exclude ports that have already been built if they have not
already been uploaded and are distributable.

Fixes: https://trac.macports.org/ticket/53548
2017-02-12 22:07:25 +11:00
Joshua Root 72e1814c6c Don't exclude already built ports
Testing for https://trac.macports.org/ticket/53548
2017-02-12 20:53:32 +11:00
Joshua Root 15d7ae54c2 Don't exclude noarch ports 2017-01-10 03:10:08 +11:00
Joshua Root 258d416705 Exclude ports that don't support ppc on 10.5 2017-01-09 22:24:34 +11:00
Joshua Root 62834a4212 exclude already-built ports in list-subports step 2016-11-30 10:06:17 +11:00
Lawrence Velázquez d39d16cc99 mpbb: Implement new help system
The `--help` option has been replaced by a new `help` subcommand.
Invoking `mpbb help` displays global usage and available subcommands,
while `mpbb help <subcommand>` displays subcommand-specific usage.

Each subcommand script `mpbb-FOO` must now define a function `FOO-usage`
that prints its specific help to standard out.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152528 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:04 +00:00
Lawrence Velázquez f4553d4f09 mpbb: Remove --port from list-subports
The deployed Buildbot configuration doesn't actually use it.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152367 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-05 18:37:13 +00:00
Lawrence Velázquez 6f35f30f1c mpbb: Replace "return $?" with "return"
A bare "return" returns the exit status of the last command executed.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152355 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-04 20:55:03 +00:00