mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
pakcage.bbclass:use a better way to cut -dev/-dbg suffix
In pakcage.bbclass,function replace('-dev', '') is
used to cut '-dev' suffix. but it will cause the
name "lib32-device-dev" to "lib32ice",
so change it to [:-4].
(From OE-Core rev: 91a3a48798029ca88a46a528200f4c5252f245e9)
Signed-off-by: Song.Li <Song.Li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1634,9 +1634,9 @@ python package_depchains() {
|
|||||||
#bb.note("Skipping %s" % depend)
|
#bb.note("Skipping %s" % depend)
|
||||||
continue
|
continue
|
||||||
if depend.endswith('-dev'):
|
if depend.endswith('-dev'):
|
||||||
depend = depend.replace('-dev', '')
|
depend = depend[:-4]
|
||||||
if depend.endswith('-dbg'):
|
if depend.endswith('-dbg'):
|
||||||
depend = depend.replace('-dbg', '')
|
depend = depend[:-4]
|
||||||
pkgname = getname(depend, suffix)
|
pkgname = getname(depend, suffix)
|
||||||
#bb.note("Adding %s for %s" % (pkgname, depend))
|
#bb.note("Adding %s for %s" % (pkgname, depend))
|
||||||
if pkgname not in rreclist and pkgname != pkg:
|
if pkgname not in rreclist and pkgname != pkg:
|
||||||
@@ -1655,9 +1655,9 @@ python package_depchains() {
|
|||||||
#bb.note("Skipping %s" % depend)
|
#bb.note("Skipping %s" % depend)
|
||||||
continue
|
continue
|
||||||
if depend.endswith('-dev'):
|
if depend.endswith('-dev'):
|
||||||
depend = depend.replace('-dev', '')
|
depend = depend[:-4]
|
||||||
if depend.endswith('-dbg'):
|
if depend.endswith('-dbg'):
|
||||||
depend = depend.replace('-dbg', '')
|
depend = depend[:-4]
|
||||||
pkgname = getname(depend, suffix)
|
pkgname = getname(depend, suffix)
|
||||||
#bb.note("Adding %s for %s" % (pkgname, depend))
|
#bb.note("Adding %s for %s" % (pkgname, depend))
|
||||||
if pkgname not in rreclist and pkgname != pkg:
|
if pkgname not in rreclist and pkgname != pkg:
|
||||||
|
|||||||
Reference in New Issue
Block a user