A collection of scripts for Gentoo development.
-
find-new-pkg-by
: list new packages by a maintainer (useful for finding e.g. proxied maintainers who add more packages than they maintain, and possibly directing them to GURU for such bits) -
find-unmaintained
: find packages nominally maintained but with no commits from their maintainer recently -
report-bugs-pkgcheck
: report bugs on Bugzilla en-masse for packages triggering a givenpkgcheck
check/warning
-
at-find-unkeyworded-for-arch
: find packages unkeyworded for${TARGET_ARCH}
relative to${BASE_ARCH}
(e.g. suppose trying to getriscv
parity witharm64
) -
find-unkeyworded
: find packages which have an unkeyworded version in ::gentoo for all arches. This sometimes happens and is forgotten about after committing something "unkeyworded for testing".
-
gbump
: bump group of packages (and commits if desired). Callsbump-generic
under the hood. -
bump-generic
: bumps package to new version, copying from last visible version in the repository. Used as a basis for other scripts too. -
bump-go
: bumps Go package to a new version (generates dependency tarball for you). -
bump-rust
: bumps Rust package to a new version (generates CRATES variable contents for you). -
git-revbump-all
: revbump all changed packages.
-
generate-cmake-docs
: generate man page tarball fordev-util/cmake
-
generate-libunwind-docs
: generate man page tarball forsys-libs/libunwind
-
generate-sshuttle-docs
: generate man page tarball fornet-proxy/sshuttle
-
generate-qemu-docs
: generate man page tarball forapp-emulation/qemu
-
generate-pkgdev-docs
: generate man page tarball fordev-util/pkgdev
-
generate-libabigail-docs
: generate man page tarball fordev-util/libabigail
-
generate-iputils-docs
: generate man page tarball fornet-misc/iputils
-
check-all-changed-pkgs
: runebuild .. clean prepare
(or up to some other phase) on all packages with local pending changes. Useful for ensuring e.g. mass revbumps or other QA fixes haven't broken e.g. applying patches (think of e.g.${PF}
being used inPATCHES
) -
commit-changed-pkgs
: commits each of the local changes per-package with a given commit message -
sort-branch origin/master my-changes
: sorts commits by commit summary - does all work in a temporary branch and leavesmy-changes
alone. Can choose to throw away the sorted branch if merge conflicts occur
Takes a branch and creates a filtered version based on included/excluded maintainers. Optionally can create the inverse too.
Suppose you have a branch with changes across the Gentoo tree affecting a range of maintainers.
$ cd ~/git/gentoo
$ git checkout my-large-change-set
# Make your changes!
# Configure the script as appropriate
$ bash ~/scripts/rebase-filter-maint --maintainer «maintainer regex»
$ git checkout my-large-change-set-identifier-blacklist
The maintainer regex
may also be provided by providing the maintainers
envvar before the script is called.
By default the script will operate on your working branch. This may be changed by passing --minefield «branch name»
The default configuration is to blacklist commits (i.e. cherry pick everything that doesn't match your regex). The inverse can be achieved by providing the --whitelist
flag.
Note:
- The script does not currently handle passing both
--whitelist
and--blacklist
; results may be unpredictable.- When run this script will perform a
git reset
onorigin/master
.
Our branch is controversial
with a load of changes some people might
want to discuss, but others you know are okay with.
You might set the list to be maintainers with whom you have a good rapport and choose the whitelist mode.
rebase-filter-maint
will then create a branch called controversial-${identifier}-whitelist
containing all commits affecting those maintainers, so you can push it straight away.
If you choose, rebase-filter-maint
will create an inverse branch called
controversial-${identifier}-blacklist
containing all commits affecting non-listed
maintainers. This is a branch you might have to submit for review or similar.
Our branch is straightforward
and we think the changes are non-controversial,
but we want to leave certain packages maintained by e.g. base-system@ or toolchain@
because those deserve extra care due to their importance.
In this case, you might want to choose the blacklist mode.
rebase-filter-maint
will then create a branch called straightforward-${identifier}-blacklist
which contains all commits that need more care. This is a branch you might have to
submit for review or similar.
If you choose, rebase-filter-maint
will create an inverse branch called
straightforward-${identifier}-whitelist
containing all commits affecting
maintainers whose packages we can touch. This is a branch you might be
able to just push.