[oe] [PATCH] sanity.bbclass: Barf if TMPDIR has trailing forward slash

Khem Raj raj.khem at gmail.com
Wed May 26 11:20:21 UTC 2010


On Wed, May 26, 2010 at 3:26 AM, Phil Blundell <philb at gnu.org> wrote:
> On Wed, 2010-05-26 at 02:12 -0700, Khem Raj wrote:
>> Yes I thought about it but did not know where to start.
>> I guess that would be bitbake which has to quickly remove the trailing
>> space just after parsing
>> in TMPDIR before it gets expanded into other parts of metadata. would
>> it be OK for bitbake to treat TMPDIR special ? or may be bitbake
>> should just get rid of more than one slashes in dir paths as a whole.
>> when concatenating two paths it should merge the slashes may be.
>
> I'm not sure that bitbake itself ought to be taking any special action.
> Which piece of code is it that chokes on the extra slashes, exactly?
> Can that not be fixed?  POSIX is fairly clear that multiple slashes are
> allowed in pathnames so anything that doesn't work with them seems like
> it must be broken.

autotools_prepackage_lamangler () in classes/autotools.bbclass.
see http://www.mail-archive.com/angstrom-distro-devel@linuxtogo.org/msg02922.html
for more details. Thats one known case so far.

Thx
-Khem




More information about the Openembedded-devel mailing list