pkgs/common/scripts
2024-06-20 21:19:12 -04:00
..
check-custom-licenses Sync common folder with upstream changes 2023-11-13 22:01:18 -05:00
lint-commits Merge upstream changes from void-packages 2023-06-01 11:44:58 -04:00
lint-conflicts Import upstream in common 2023-11-12 16:04:24 -05:00
lint-version-change Correct repo merge 2022-11-14 18:27:23 -05:00
lint2annotations.awk python3-pandas: remove unnecessary INSTALL.msg 2022-11-14 12:10:40 -05:00
README.xbps-cycles.md python3-pandas: remove unnecessary INSTALL.msg 2022-11-14 12:10:40 -05:00
xbps-cycles.py Sync with upstream 2024-06-20 21:19:12 -04:00

Cycle detector for void-packages

This script enumerates dependencies for packages in a void-packages repository and identifies build-time dependency cycles.

For command syntax, run xbps-cycles.py -h. Often, it may be sufficient to run xbps-cycles.py with no arguments. By default, the script will look for a repository at $XBPS_DISTDIR; if that variable is not defined, the current directory is used instead. To override this behavior, use the -d option to provide the path to your desired void-packages clone.

The standard behavior will be to spawn multiple processes, one per CPU, to enumerate package dependencies. This is by far the most time-consuming part of the execution. To override the degree of parallelism, use the -j option.

Dependencies can be cached on disk, one file per package, in directory passed with -c option. On next execution with same option, dependencies are read from file rather than computed.

Failures should be harmless but, at this early stage, unlikely to be pretty or even helpful.