I'd suggest using shlex.split() all the time when dealing with pieces of a shell command-line, rather than assuming single-word or using str.split().
On Tue, Oct 31, 2023 at 5:26 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Mon, 2023-10-30 at 22:27 -0600, Javier Tia wrote: > > Using ccache stopped to work after 77497dbdca with following error: > > > > FileNotFoundError: [Errno 2] No such file or directory: 'ccache > aarch64-trs-linux-strip' > > > > Signed-off-by: Javier Tia <javier....@linaro.org> > > --- > > meta/lib/oe/package.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py > > index 1dd20f85eb..2685da0af9 100644 > > --- a/meta/lib/oe/package.py > > +++ b/meta/lib/oe/package.py > > @@ -39,7 +39,7 @@ def runstrip(arg): > > newmode = origmode | stat.S_IWRITE | stat.S_IREAD > > os.chmod(file, newmode) > > > > - stripcmd = [strip] > > + stripcmd = strip.split() if "ccache" in strip else [strip] > > skip_strip = False > > # kernel module > > if elftype & 16: > > That looks very like a hack/workaround rather than a real fix. The > packaging code shouldn't know/care about ccache. > > Should we always be splitting strip? > > Cheers, > > Richard > > > > > > -- Christopher Larson chris_lar...@mentor.com, chris.lar...@siemens.com, kerg...@gmail.com Principal Software Engineer, Embedded Linux Solutions, Siemens Digital Industries Software
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189851): https://lists.openembedded.org/g/openembedded-core/message/189851 Mute This Topic: https://lists.openembedded.org/mt/102291706/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-