[OE-core] [PATCHv2] cmake: Avoid passing empty prefix to os.path.relpath

Mike Crowe mac at mcrowe.com
Mon Dec 11 09:51:49 UTC 2017


On Monday 13 November 2017 at 15:15:35 -0200, Otavio Salvador wrote:
> On Sun, Nov 12, 2017 at 2:39 PM, Mike Crowe <mac at mcrowe.com> wrote:
> > With meta-micro, ${prefix} is the empty string. This means that
> > CMAKE_INSTALL_BINDIR:PATH and friends end up containing paths starting with
> > many instances of "../", presumably due to os.path.relpath attempting to
> > find its way to the current directory.
> >
> > Let's avoid this by ensuring that the root path always ends in a slash. If
> > it already ends in a slash then adding another one shouldn't cause any
> > problems.
> >
> > Signed-off-by: Mike Crowe <mac at mcrowe.com>
> 
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

Patch ID: 145709

It doesn't look like this change has landed, even on master-next. Has it
fallen through the cracks?

Thanks.

Mike.



More information about the Openembedded-core mailing list