-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix externalsrc harder #83
Open
peterhurley
wants to merge
2
commits into
openembedded:master
Choose a base branch
from
peterhurley:fix-externalsrc-harder
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix externalsrc harder #83
peterhurley
wants to merge
2
commits into
openembedded:master
from
peterhurley:fix-externalsrc-harder
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oe-core commit 6d9364e "externalsrc: git submodule--helper list unsupported" caused build errors and does the wrong thing because it: 1. checks for .gitmodules in bitbake's cwd which could be anywhere and unrelated to the srcdir/EXTERNALSRC 2. enumerates inactive submodules which won't have initialized repos oe-core commit 66ff3d1 "externalsrc: fix lookup for .gitmodules" fixed 1 but not 2. Instead, still attempt to use list subcommand to enumerate active submodules, and if unsuccessful (because list is unsupported) [1], enumerate active submodule paths via the more modern "foreach" subcommand [2]. Avoiding the git submodule porcelain is still necessary for the reasons detailed in oe-core commit 2055718 "Revert "externalsrc: Detect code changes in submodules". Both subcommands output the submodule path relative to the immediate superproject; parse last column of either output [3][4] as submodule path. [1] 31955475d1c2 "submodule--helper: remove unused "list" helper" [2] foreach subcommand added to git submodule--helper in git v2.19.0 fc1b9243cd5d submodule: port submodule subcommand 'foreach' from shell to C and --quiet option fixed in git v2.22.0 a282f5a90613 submodule foreach: fix "<command> --quiet" not being respected [3] example output of 'git submodule--helper list' $ git submodule--helper list 160000 48de465976bffb76853b2e17c1c9b65bada30d2a 0 path/to/submodule_A 160000 4c34ba86f96944153b6c6566a1bceaeace25aa07 0 deeper/path/to/submodule_B [4] example output of "git submodule--helper foreach 'echo $path'" path/to/submodule_A deeper/path/to/submodule_B Change-Id: I67915f54df7c802d1659b8f132426df60e24480f Signed-off-by: Peter Hurley <peter@meraki.com>
Submodule paths output by git submodule--helper subcommands are relative to the containing superproject top-level directory, whereas scrdir/EXTERNALSRC may be a subdirectory _within_ a superproject and not necessarily equivalent to the top-level directory. Form submodule paths from top-level directory [1] and only process submodules where srcdir/EXTERNALSRC is a parent path of the submodule path [2]. [1] which may not be equivalent to git_dir in a git worktree [2] uses os.path.commonpath() available since python 3.5 Change-Id: I94d40074586469242228a63ef66089f9f97d1159 Signed-off-by: Peter Hurley <peter@meraki.com>
halstead
pushed a commit
that referenced
this pull request
Aug 2, 2024
Changelog: ============ ### Changes - Add reload command for systemd service - Add global log rotation options to .conf file, issue #80. Introducing two new settings: 'rotate_size SIZE' and 'rotate_count COUNT' - Semantic change for per-file log rotation settings, no longer possible to disable log rotation for a file by setting 'rotate=0:0' - Possible to set only size or count rotation per file - Add support for 'listen addr:port' to .conf file, issue #83 ### Fixes - Fix #72: loss of raw kernel log messages to console. - Fix #81: blocking delay for unreachable remote log server. - Fix #82: retry creating UNIX and network sockets on failure. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
halstead
pushed a commit
that referenced
this pull request
Aug 2, 2024
Changelog: ============ ### Changes - Add reload command for systemd service - Add global log rotation options to .conf file, issue #80. Introducing two new settings: 'rotate_size SIZE' and 'rotate_count COUNT' - Semantic change for per-file log rotation settings, no longer possible to disable log rotation for a file by setting 'rotate=0:0' - Possible to set only size or count rotation per file - Add support for 'listen addr:port' to .conf file, issue #83 ### Fixes - Fix #72: loss of raw kernel log messages to console. - Fix #81: blocking delay for unreachable remote log server. - Fix #82: retry creating UNIX and network sockets on failure. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
halstead
pushed a commit
that referenced
this pull request
Aug 3, 2024
Changelog: ============ ### Changes - Add reload command for systemd service - Add global log rotation options to .conf file, issue #80. Introducing two new settings: 'rotate_size SIZE' and 'rotate_count COUNT' - Semantic change for per-file log rotation settings, no longer possible to disable log rotation for a file by setting 'rotate=0:0' - Possible to set only size or count rotation per file - Add support for 'listen addr:port' to .conf file, issue #83 ### Fixes - Fix #72: loss of raw kernel log messages to console. - Fix #81: blocking delay for unreachable remote log server. - Fix #82: retry creating UNIX and network sockets on failure. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add fixes for submodule handling in
srctree_hash_files()
after upstream broken fixes when git submodule-helper list was deprecated.