Re: [AUH][PATCH v3 1/4] steps.py: resolve symlinks in recipe_dir
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <CANNYZj-QYHE_YJcEtP7zvzeX+KX7iiJHOa_Biyq5bZUqzwxgMg@mail.gmail.com> |
Thanks, this has been applied. Alex On Mon, 4 May 2026 at 08:36, <[email protected]> wrote: > > From: Daniel Turull <[email protected]> > > Use os.path.realpath() on recipe_dir so that git operations work > when bblayers.conf references layers through symlinks (e.g. > meta -> openembedded-core/meta). Without this, git add fails > because the symlinked path is outside the git repo. > > Assisted-by: kiro:claude-opus-4.6 > Signed-off-by: Daniel Turull <[email protected]> > --- > modules/steps.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/modules/steps.py b/modules/steps.py > index a6ec341..b3ec61c 100644 > --- a/modules/steps.py > +++ b/modules/steps.py > @@ -36,7 +36,7 @@ def load_env(devtool, bb, git, opts, group): > os.mkdir(group['workdir']) > for pkg_ctx in group['pkgs']: > pkg_ctx['env'] = bb.env(pkg_ctx['PN']) > - pkg_ctx['recipe_dir'] = os.path.dirname(pkg_ctx['env']['FILE']) > + pkg_ctx['recipe_dir'] = os.path.realpath(os.path.dirname(pkg_ctx['env']['FILE'])) > > def buildhistory_init(devtool, bb, git, opts, group): > if not opts['buildhistory']: > -- > 2.34.1 >