[Bug 4339] New: Value Error when "org.openembedded.dev/packages" is not listed first in BBFILES

bugzilla-daemon at amethyst.openembedded.net bugzilla-daemon at amethyst.openembedded.net
Fri May 30 09:52:31 UTC 2008


http://bugs.openembedded.net/show_bug.cgi?id=4339

           Summary: Value Error when "org.openembedded.dev/packages" is
                    not listed first in BBFILES
    Classification: Unclassified
           Product: Openembedded
           Version: Angstrom 2008.x
          Platform: ARM
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: org.openembedded.dev
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: emil at myhrman.name


If using a local .bb files path in BBFILES, "org.openembedded.dev/packages"
must be the first one in the list, or base.bbclass will raise a ValueError.

This is because 'BBFILES' is split by whitespace and then item 0 is assumed to
contain the string "packages".

def base_get_scmbasepath(d):
 path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split()
 return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )]

Also, this would give wrong result (because of split()) if using a whitespace
in your path, i.e 'foo\ bar/oe'. Or if your local path contains the string
"packages".

-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-issues mailing list