Sanity check for duplicate PACKAGE_ARCHS
cover Sanity check for duplicate PACKAGE_ARCHS
From: Joshua Lock <[email protected]>
I have had some pain this morning caused by duplicated entries in my PACKAGE_ARCHS variable. After Richard helped me debug this he suggest we add a sanity check for this issue.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: josh/bernard
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=josh/bernard
Thanks,
Joshua Lock <[email protected]>
---
Joshua Lock (1):
sanity.bbclass: check for duplicates in PACKAGE_ARCHS
meta/classes/sanity.bbclass | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.4
PATCH 1/1 sanity.bbclass: check for duplicates in PACKAGE_ARCHS
From: Joshua Lock <[email protected]>
Duplicate entries in PACKAGE_ARCHS causes problems with rootfs generation. For example multiple architecture entries in opkg.conf will confuse the opkg package manager.
--- meta/classes/sanity.bbclass | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
meta/classes/sanity.bbclass +13 -0
@@ -338,6 +338,19 @@ def check_sanity(e): elif oeroot.find (' ') != -1: messages = messages + "Error, you have a space in your POKYBASE directory path. Please move Poky to a directory which doesn't include a space." + # Check that we don't have duplicate entries in PACKAGE_ARCHS + pkgarchs = data.getVar('PACKAGE_ARCHS', e.data, True) + seen = {} + dups = [] + + for pa in pkgarchs.split(): + if seen.get(pa, 0) == 1: + dups.append(pa) + else: + seen[pa] = 1 + if len(dups): + messages = messages + "Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: %s" % " ".join(dups) + if messages != "": raise_sanity_error(messages)
Signature · 1 line
1.7.4
Richard Purdie
AppliedQuoted 15 lines · Joshua Lock
From: Joshua Lock <[email protected]>
I have had some pain this morning caused by duplicated entries in my
PACKAGE_ARCHSvariable. After Richard helped me debug this he suggest we add a sanity check for this issue.Pull URL:
git://git.pokylinux.org/poky-contrib.git
Branch: josh/bernard
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=josh/bernardThanks,
Joshua Lock <[email protected]>
---
Quoted 5 lines
Joshua Lock (1):
sanity.bbclass: check for duplicates inPACKAGE_ARCHSmeta/classes/sanity.bbclass | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
Merged into master, not sure this will make bernard at this point but its good to have the check.
Cheers,
Richard