| Summary: | fetch/gitsm: submodules are checked out as mirrors with altered origin information | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | bojan <bojan.milosevic.work> |
| Component: | bitbake | Assignee: | Unassigned <unassigned> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | akuster, bojan.milosevic.work, niqingliang2003, poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | 5.99 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
bojan
2020-12-18 10:55:20 UTC
bojan, Thank you for all the detail. triaging Just to summarise, the issue as reported is that the repository origin information isn't the same as a direct clone of the repository. Due to the way the fetcher mirrors and checks out data for speed, this isn't really surprising. The question is whether we could/should be updating and reconfiguring the checkout to match a standard clone and I don't have an answer on that. It isn't something we've guaranteed to do so not a bug as such. Build move to 5.0 -- ../Randy Bulk move of 5.0 medium importance issues to 5.99. Move to 5.1 if you want to actively work on an issue. Move to 5.99 since no one is actively working on this issue. Move to 5.x if you start on a task, please. main repo of gitsm can't work on local git mirror,
PREMIRROR setting:
git://.*/.* git:///mnt/datum/repositories/HOST/PATH;protocol=file \
gitsm://.*/.* git:///mnt/datum/repositories/HOST/PATH;protocol=file \
expected is:
git:///mnt/datum/repositories/github.com/libjxl/libjxl.git;protocol=file
but poky want:
git:///mnt/datum/repositories/github.com/libjxl/git2_github.com.libjxl.libjxl.git.tar.gz;protocol=file
DEBUG: For url ['gitsm', 'github.com', '/libjxl/libjxl.git', '', '', OrderedDict({'protocol': 'https', 'nobranch': '1'})] comparing ['git', '.*', '/.*', '', '', OrderedDict()] to ['git', '', '/mnt/datum/repositories/HOST/PATH', '', '', OrderedDict({'protocol': 'file'})]
DEBUG: For url ['gitsm', 'github.com', '/libjxl/libjxl.git', '', '', OrderedDict({'protocol': 'https', 'nobranch': '1'})] comparing ['gitsm', '.*', '/.*', '', '', OrderedDict()] to ['git', '', '/mnt/datum/repositories/HOST/PATH', '', '', OrderedDict({'protocol': 'file'})]
DEBUG: For url gitsm://github.com/libjxl/libjxl.git;protocol=https;nobranch=1 returning git:///mnt/datum/repositories/github.com/libjxl/git2_github.com.libjxl.libjxl.git.tar.gz;protocol=file
DEBUG: Mirror fetch failure for url git:///mnt/datum/repositories/github.com/libjxl/git2_github.com.libjxl.libjxl.git.tar.gz;protocol=file (original url: gitsm://github.com/libjxl/libjxl.git;protocol=https;nobranch=1)
DEBUG: URL: 'git:///mnt/datum/repositories/github.com/libjxl/git2_github.com.libjxl.libjxl.git.tar.gz;protocol=file' has invalid parameters. The url does not set any branch parameter or set nobranch=1.
DEBUG: For url ['gitsm', 'github.com', '/libjxl/libjxl.git', '', '', OrderedDict({'protocol': 'https', 'nobranch': '1'})] comparing ['https?', '.*', '/.*', '', '', OrderedDict()] to ['file', '', '/mnt/datum/repositories/misc', '', '', OrderedDict()]
DEBUG: For url ['gitsm', 'github.com', '/libjxl/libjxl.git', '', '', OrderedDict({'protocol': 'https', 'nobranch': '1'})] comparing ['git', 'sourceware.org', '/git/glibc.git', '', '', OrderedDict()] to ['https', 'downloads.yoctoproject.org', '/mirror/sources/', '', '', OrderedDict()]
DEBUG: For url ['gitsm', 'github.com', '/libjxl/libjxl.git', '', '', OrderedDict({'protocol': 'https', 'nobranch': '1'})] comparing ['git', 'sourceware.org', '/git/binutils-gdb.git', '', '', OrderedDict()] to ['https', 'downloads.yoctoproject.org', '/mirror/sources/', '', '', OrderedDict()]
DEBUG: Trying Upstream
ERROR: Bitbake Fetcher Error: NetworkAccess('gitsm://github.com/libjxl/libjxl.git;protocol=https;nobranch=1', 'LANG=C git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all -c clone.defaultRemoteName=origin clone --bare --mirror https://github.com/libjxl/libjxl.git /mnt/datum/downloads/git2/github.com.libjxl.libjxl.git --progress')
DEBUG: Python function base_do_fetch finished
|