summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* git-r3.eclass: Drop support for EAPI 6Ulrich Müller2024-07-111-9/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: Add the ability to checkout ignored submodules.Sebastian Parborg2024-04-011-1/+3
| | | | | | | | | If the submodules is specified in EGIT_SUBMODULES then it will ignore the "none" check. Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35911 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Fix fetching git lfs files at certain refs. Only prune when ↵Sebastian Parborg2024-04-011-5/+9
| | | | | | | | | | | | | | | | needed. If a lfs files was changed between the checked out ref and the git head commit, it would fail to fetch them. Now correctly specify the ref for the lfs fetch as well to ensure that we can fetch the correct lfs files. Only prune when we have existing lfs files. For bigger repos with submodules, it will be quite slow to try to prune. So if there are no files to prune, don't attempt it. This also speeds up checkout when only a few of the checked out git repos are lfs repos. Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: fetch remote_ref in the mirror clone typeAlfred Wingate2023-12-201-0/+2
| | | | | | | | | | * Handles scenarios where commits in submodules are orphaned. Closes: https://bugs.gentoo.org/917746 Bug: https://bugs.gentoo.org/503332 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/33935 Signed-off-by: Sam James <sam@gentoo.org>
* git-r3.eclass: Inroducing EVCS_STORE_DIRS varSiddhanth Rathod2023-11-101-0/+10
| | | | | | | | | | | | ebuilds which calls git-r3_fetch multiple times for diffrent repos. While EGIT_DIR stores a single repo path, mapping all repos to such packages is currently unfeasible. Introducing EVCS_STORE_DIRS to address this limitation. See-Also: https://github.com/gentoo/gentoolkit/pull/33 Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33133 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Add Git LFS supportSebastian Parborg2023-07-261-0/+90
| | | | | | Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31905 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Use '__init__' as initial branchkonsolebox2023-07-181-2/+2
| | | | | | | It silences the default branch warning. Closes: https://bugs.gentoo.org/841392 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* git-r3.eclass: fix spellingSam James2023-03-261-3/+3
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: Quote argument of ":" commandUlrich Müller2023-03-261-3/+3
| | | | | | This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: remove EAPI 5David Seifert2023-03-171-50/+47
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* git-r3.eclass: Add checkout dirs as "safe" directoriesMichał Górny2022-11-071-0/+5
| | | | | | | | | | Mark all checkout directories as "safe" to avoid dubious ownership errors with newer git versions when the checkout directory is accessed from src_install(). Closes: https://bugs.gentoo.org/879353 Closes: https://github.com/gentoo/gentoo/pull/28154 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-12/+12
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: Remove git-2 backwards compatibility codeUlrich Müller2021-06-231-50/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: Support EAPI 8, drop support for EAPI 4Ulrich Müller2021-06-231-12/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: mark EGIT_CLONE_TYPE as @USER_VARIABLESam James2021-03-311-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* git-r3.eclass: fetch pullrequest refs on mirror clone typeFrédéric Pierret (fepitre)2020-09-021-0/+2
| | | | | | Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org> Closes: https://github.com/gentoo/gentoo/pull/17265 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Mark variable classes in eclassdocMichał Górny2020-07-041-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* */*: Bump copyright on files touched this yearMichał Górny2020-02-111-1/+1
| | | | | | | Update the copyright notice on all files that were touched since January 1st but did not have the notice updated. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Handle recursive submodules in EGIT_SUBMODULESMichał Górny2020-01-101-8/+19
| | | | | | | | Match recursive submodules using their full paths rather than path relatively to the parent submodule. Closes: https://bugs.gentoo.org/694494 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Remove SGR control sequences from messages.Ulrich Müller2019-12-151-9/+9
| | | | | | | These prevent NOCOLOR in make.conf or emerge --color=n from working correctly, and may also be problematic for accessibility. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: Explicitly disable password promptsMichał Górny2019-12-071-0/+3
| | | | | Closes: https://bugs.gentoo.org/701276 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: Add "live" to PROPERTIES in all live eclasses.Ulrich Müller2019-07-271-1/+3
| | | | | Bug: https://bugs.gentoo.org/233589 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* git-r3.eclass: Undocument deprecated EGIT_LIVE_* APIMichał Górny2018-09-181-8/+1
|
* git-r3.eclass: Print possible override vars for user convenienceMichał Górny2018-09-181-1/+11
|
* git-r3.eclass: add @SUPPORTED_EAPISMichał Górny2018-08-151-0/+1
|
* git-r3.eclass: Unconditionally depend on dev-vcs/git[curl] for HTTPSMichał Górny2018-06-131-27/+2
| | | | | | | Since HTTPS is strongly preferred in git-r3 eclass, there is no point in optimizing it for non-HTTPS use. Therefore, unconditionally depend on dev-vcs/git[curl] rather than verbosely failing when HTTPS is used and the dependency is not satisfied.
* git-r3.eclass: Ban EAPIs 0 through 3Michał Górny2018-06-131-1/+4
| | | | | | The code already uses USE dependencies which are not valid for EAPIs 0 and 1. Furthermore, according to qa-reports the eclass is not used in any EAPI older than 4.
* git-r3.eclass: Support EAPI 7Michał Górny2018-05-071-12/+27
| | | | | Enable support for EAPI 7. Use BDEPEND for dev-vcs/git dependency since git is run at build time. Update has_version logic appropriately.
* eclass: misc spelling fixesMike Frysinger2018-03-281-3/+3
|
* git-r3.eclass: Support more flexible EGIT_OVERRIDE_* APIs for userMichał Górny2017-11-281-6/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new, more flexible override API in git-r3, in replacement of the LIVE_* API that was pretty much a legacy of git-2. This means to solve the two major limitations of the old API: 1. The variables were based on package names without categories. Therefore, they weren't suitable whenever two packages had the same category. This is quite common when dealing with various programming language bindings/reimplementations, and we can't really rely on every new programming language inventing its own VCS. 2. The overrides weren't suitable for packages checking out multiple repositories (LLVM, wine, glibc). The new mode for overrides uses the repository name (as guessed by git-r3) transformed into correct variable name. The specifically defined variables are: - EGIT_OVERRIDE_REPO_${NAME} -- to override the repository URI, - EGIT_OVERRIDE_BRANCH_${NAME} -- to override the branch, - EGIT_OVERRIDE_COMMIT_${NAME} -- to override the commit id or tag, - EGIT_OVERRIDE_COMMIT_DATE_${NAME} -- to request last commit older than the specified date.
* git-r3.eclass: Support checking out specific subdirectoriesMichał Górny2017-11-281-3/+17
| | | | | | | | | Support limiting the git checkout to specific subdirectories of the git tree, using 'git checkout ... -- <paths>...' The main use case for this is doing partial checkouts of very large repositories where only a small subset of files is necessary. Doing partial checkouts can save both time and disk space which can be important in large intertwined projects such as LLVM+Clang.
* git-r3.eclass: Copy packed-refs during manual cloneSven Wegener2017-09-181-0/+3
| | | | Signed-off-by: Sven Wegener <swegener@gentoo.org>
* eclass/git-r3.eclass: TypoJeroen Roovers2017-09-011-1/+1
|
* git-r3.eclass: Explicitly warn about unsecure protocolsMichał Górny2017-08-251-1/+11
| | | | | | | Explicitly warn about any URI that uses an unsecure protocol (git, http) even if it's a fallback URI. This is necessary because an attacker may block HTTPS connections, effectively forcing the fallback to the unsecure protocol.
* git-r3.eclass: Update docs to discourage unsafe protocolsMichał Górny2017-08-251-6/+10
|
* git-r3.eclass: Remove unused eutils inheritMichał Górny2017-04-141-7/+1
|
* git-r3.eclass: Document EGIT_COMMIT* <=> EGIT_BRANCH, #612852Michał Górny2017-03-181-3/+5
| | | | Document the relation between EGIT_COMMIT* and EGIT_BRANCH variables.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* git-r3.eclass: Escape all weird chars in submodule names, #606950Michał Górny2017-01-251-4/+5
|
* git-r3.eclass: Fix var names for packages starting with digits, #596912Michał Górny2016-10-221-0/+1
| | | | | | Fix live variable names for packages whose names start with digits. Since variable names can not start with digits in bash, just prepend an underscore to them.
* git-r3.eclass: Make git[curl] warning non-fatal, extend to HTTP, #597356Michał Górny2016-10-171-7/+12
| | | | | | | | | | | | Make the warning about missing dev-vcs/git[curl] for HTTP(S) support non-fatal since the ebuild can specify non-HTTP(S) fallback URIs which would otherwise be ignored. The eclass will die if all URIs fail anyway. Extend the check to cover both HTTPS and plain HTTP. Reported by Coacher. Bug: https://bugs.gentoo.org/597356
* git-r3.eclass: Support checking out repo by date, #510704Michał Górny2016-05-311-11/+58
|
* git-r3.eclass: Allow *_LIVE* to unset ebuild-defined varsMichał Górny2016-05-261-3/+3
|
* git-r3.eclass: Support switching refs with EVCS_OFFLINE, #575898Michał Górny2016-05-261-109/+114
|
* git-r3.eclass: Do not create clone dirs if EVCS_OFFLINE is being usedMichał Górny2016-05-261-1/+9
|
* git-r3.eclass: Remove special logic for obsolete Google CodeMichał Górny2016-05-261-17/+1
| | | | | Remove the special logic that was needed to handle Google Code git hosting since the service has been discontinued and no longer works.
* git-r3.eclass: Support EGIT_SUBMODULES to filter used submodules, #497164Michał Górny2016-05-261-1/+53
|
* git-r3.eclass: Remove unnecessary HEAD->branch mapping code, #524146Michał Górny2016-05-261-58/+4
| | | | | | | | Remove the code responsible for recognizing which branch HEAD pointed out to since it was unsafe and unnecessarily complex. A proper match is not really necessary since all operations can be safely performed on an opaque 'HEAD' (or rather refs/git-r3/HEAD since fetching to HEAD directly breaks git a bit).
* git-r3.eclass: Filter out /. components from submodule refs, #572312Michał Górny2016-02-051-1/+6
|
* git-r3.eclass: Unset local function after useMichał Górny2015-12-061-0/+1
|