aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Migrate to PEP517 meson-python buildgentoolkit-0.6.3Zac Medico2023-10-124-3/+58
| | | | | | | Bug: https://bugs.gentoo.org/909888 Signed-off-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/36 Signed-off-by: Sam James <sam@gentoo.org>
* bin/merge-driver-ekeyword: replace os.system with os.execlpMike Gilbert2023-08-291-4/+3
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* bin/merge-driver-ekeyword: mangle exit code correctlySam James2023-08-291-3/+5
| | | | | Fixes: 263e3d64adac1ee2968233e151d1ee590532f42d Signed-off-by: Sam James <sam@gentoo.org>
* bin/merge-driver-ekeyword: fix compatibility with >=git-2.42.0Sam James2023-08-291-1/+1
| | | | | | | | | | | Commit 2b7b788fb31a74bcbff4e4c6efc6f3db6c3a49b7 upstream makes more use of the result from a merge driver. Correctly surface the result from `git merge-file` so that we don't wrongly throw away information but also don't make git think the driver crashed (-1 is for exceptional cases, not "failed to merge"). Signed-off-by: Sam James <sam@gentoo.org>
* Run `pyupgrade --py39-plus`Sam James2023-08-073-7/+7
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Support the NO_COLOR environment variableUlrich Müller2023-03-221-8/+10
| | | | | | | Bug: https://bugs.gentoo.org/902551 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/26 Signed-off-by: Sam James <sam@gentoo.org>
* ebump: Use `git rev-parse --is-inside-work-tree`Michał Górny2022-12-031-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ebump: Replace which(1) with `command -v`Michał Górny2022-12-031-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* revdep-rebuild.sh: Create its cache dir if it doesn't existBrian Dolbec2022-07-111-1/+2
| | | | | | Bug: https://bugs.gentoo.org/382009 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* revdep-rebuild.sh: use awk instead of gawkHadrien Lacour2022-07-091-9/+19
| | | | | | | Bug: https://bugs.gentoo.org/652078 Signed-off-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/6 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* metadata.py: Don't fail on unmatched packageMarco Sirabella2022-07-081-0/+10
| | | | | | | | | | | | Added a warning hook too to reuse the GentoolkitNoMatches machinery This allows users to do something like: equery list @selected | xargs equery metadata successfuly, even if there are some selected packages that don't exist anymore. Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* euse: egrep -> grep -ESam James2022-05-151-13/+13
| | | | | | egrep is considered an obsolete alias and newer greps will warn on this. Signed-off-by: Sam James <sam@gentoo.org>
* */*: drop obsolete Changelog referencesSam James2022-02-091-35/+0
| | | | | | | | We got rid of Changelogs years ago in ::gentoo and most Portage support is gone too. Closes: https://bugs.gentoo.org/832369 Signed-off-by: Sam James <sam@gentoo.org>
* Change tabs to spaces (using autopep8). Also, format repo using black.Wolfgang E. Sanyer2021-09-2011-173/+173
| | | | | | | | | | | The following command was used to change the tabs to spaces: autopep8 --in-place --select=E101,E11,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E20,E211,E22,E224,E224,E226,E227,E228,E231,E241,E242,E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306,W291,W293,W391 -r . And then black was run as `black .` on the entire tree Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* bin: Fix type annotationsMatt Turner2021-03-111-11/+10
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* bin: Handle case of no KEYWORD removalsMatt Turner2021-02-241-4/+5
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* bin: Add merge-driver-ekeywordMatt Turner2020-12-311-0/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the KEYWORDS=... assignment is a single line, git struggles to handle conflicts. When rebasing a series of commits that modify the KEYWORDS=... it's usually easier to throw them away and reapply on the new tree than it is to manually handle conflicts during the rebase. git allows a 'merge driver' program to handle conflicts; this program handles conflicts in the KEYWORDS=... assignment. E.g., given an ebuild with these keywords: KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 x86" One developer drops the ~alpha keyword and pushes to gentoo.git, and another developer stabilizes hppa. Without this merge driver, git requires the second developer to manually resolve the conflict which is tedious and prone to mistakes when rebasing a long series of patches. With the custom merge driver, it automatically resolves the conflict. To use the merge driver, configure your gentoo.git as such: gentoo.git/.git/config: [merge "keywords"] name = KEYWORDS merge driver driver = merge-driver-ekeyword %O %A %B %P gentoo.git/.git/info/attributes: *.ebuild merge=keywords Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove $Header$Matt Turner2020-12-207-14/+0
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove imports from __future__Matt Turner2020-12-2010-25/+4
| | | | | | gentoolkit supports only Python 3.6+ now, so these are not used. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* euse: don't fail on repos missing use.descBen Kohler2020-03-161-1/+2
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* glsa-check moved to portage repository (bug 463952)Zac Medico2019-08-181-418/+0
| | | | | | | | This copy of glsa-check is no longer need since it has moved to the portage repository. Bug: https://bugs.gentoo.org/463952 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* update old Gentoo project nameMike Frysinger2017-03-226-6/+6
|
* imlate: Initial updates for the gentoolkit eco-systemBrian Dolbec2017-03-221-0/+45
|
* ekeyword: Initial updates for gentoolkit eco-systemBrian Dolbec2017-03-221-0/+45
|
* ebump: Add to setup.py, minor update to man pageBrian Dolbec2017-03-221-3/+4
| | | | Update script to use VERSION like the other scripts
* Add README 'Motivation' info to the scriptBrian Dolbec2017-03-221-1/+4
|
* Initial move of ebump main files to new gentoolkit locationsBrian Dolbec2017-03-221-0/+389
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* eread: Fix bash error when the elog directory is emptyPaul Varner2016-10-171-62/+62
| | | | | | | | | | This fixes the following error from bash which causes an infinite loop. /usr/bin/eread: line 64: break: only meaningful in a `for', `while', or `until' loop X-Gentoo-bug: 597132 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=597132
* glsa-check: Apply list only affected versions patch from bug 400763Paul Varner2016-06-061-4/+8
| | | | | | Author: Roland Hopferwieser <gentoo@int0x80.at> X-Gentoo-bug: 400763 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=400763
* euse: Fix 'grep: Unmatched ( or \(' errors with euse -iPaul Varner2015-06-021-1/+1
|
* euse: Fix PORTDIR deprecation message. Bug 505160Paul Varner2015-04-231-61/+16
| | | | | | This change removes the concepts of PORTDIR and PORTDIR_OVERLAY. Portage is moving to the concept of just repositories. This fix searches all repository paths for the USE flag information.
* Fix eread to only display elog files. (Bug 534686)Paul Varner2015-01-231-3/+3
|
* revdep-rebuild.sh: Look for issues with symbols. (Bug 63643)Paul Varner2014-11-111-2/+36
| | | | | | | These changes cause revdep-rebuild.sh to unconditionally look for "Symbol not defined" in ldd -d -r ouput. Additionally, it adds the options -u, --search-symbols to look for "undefined symbol". Using this option will cause false positives in the revdep-rebuild output.
* Fix gawk warning escape sequence \. treated as plain. Bug 526400Paul Varner2014-10-241-1/+1
|
* Update revdep-rebuild.sh to use new path for functions.sh. (Bug 373219)Paul Varner2014-03-061-1/+10
|
* revdep_rebuild: Remove bin/revdep-ng accidently merged in.Brian Dolbec2014-02-121-51/+0
| | | | | Commit: 4335bf979f374300ac6678765f490f92ee805ab4 slis <lis.slawek@gmail.com> (Tue 21 Jan 2014 02:48:32 AM PST) Merged revdep-rebuild branch
* Merged revdep-rebuild branchslis2014-01-211-0/+51
|\
| * new /bin/revdep-ng script. revamp rebuild.py for a better api.dol-sen2011-04-241-0/+51
| |
* | Handle numbers in package namesVikraman Choudhury2013-11-211-1/+1
| | | | | | | | Fixes bug 491764
* | revdep-rebuild.sh: Change la_SEARCH_DIRS to use the library paths fromPaul Varner2013-11-191-1/+1
| | | | | | | | | | | | | | ld.so.conf. (Bug 491658) la_SEARCH_DIRS was using SEARCH_DIRS to locate libraries in .la files. This is incorrect, it should be using the standard library path.
* | euse: use portageq for get_portdir function unconditionally.Paul Varner2013-11-051-15/+3
| | | | | | | | | | | | | | Newer versions of portage don't define PORTDIR in make.conf or make.defaults. Additionally, if it is defined, it can still be overridden in repos.conf. Use portageq to ensure we have the correct value.
* | Add fallback to using portageq for get_portdir function.Paul Varner2013-09-101-0/+8
| | | | | | | | | | | | Newer versions of portage no longer define PORTDIR in make.defaults or make.conf. This change uses portageq to get the value of PORTDIR if it is not found in make.defaults or make.conf.
* | Fix Ctrl-C handling when running emerge (Bug 476740).Paul Varner2013-09-101-1/+2
| |
* | Fix use of REVDEP_REBUILD_DEFAULT_OPTS (Bug 484340).Paul Varner2013-09-101-5/+2
| |
* | Copy eclean to exlean-dist and eclean-pkg.Paul Varner2013-09-042-0/+98
| |
* | Convert EMERGE_DEFAULT_OPTS to an array (Bug 482232).Paul Varner2013-08-291-5/+7
| | | | | | | | Patch from zmedico
* | euse: fix looking up portage-2 style parent paths with empty repo nameMichael Marineau2013-07-081-4/+7
| | | | | | | | | | When a parent is defined as ":path/to/profile" the blank name before the colon means the current repo, not the "gentoo" repo.
* | Change behavior and name of REVDEP_DEFAULT_OPTS variable.Paul Varner2013-01-171-10/+11
| | | | | | | | | | | | * Changed name to REVDEP_REBUILD_DEFAULTS_OPTS * Change behavior to have it replace the value of EMERGE_DEFAULT_OPTS.
* | Add REVDEP_DEFAULT_OPTS variable to allow overriding of EMERGE_DEFAULT_OPTS ↵Paul Varner2013-01-141-1/+11
| | | | | | | | for revdep-rebuild.
* | update 'svn' versions to 'git', not man pages with already set versions. Brian Dolbec2012-12-224-4/+4
| |