diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2020-11-05 14:04:58 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2020-11-15 11:03:39 -0800 |
| commit | 080778ca97bd3b246237d8927d6e0ea96a738e04 (patch) | |
| tree | b23c2d4a9605cc51e111b27c5cb1aff3d1025ae9 /meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb | |
| parent | c40e8f8d9dbdd7e2052033d9d50ebf8e4d883c69 (diff) | |
| download | meta-security-080778ca97bd3b246237d8927d6e0ea96a738e04.tar.gz | |
scap-security-guide: fix build with Python 3.9
The getchildren and getiterator functions are deprecated in Python 3.9.
Backport 3 patches to fix the build issue.
Fixes:
File
"/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/scap-security-guide/0.1.44+gitAUTOINC+5fdfdcb2e9-r0/git/ssg/build_stig.py",
line 41, in add_references
index = rule.getchildren().index(ref)
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb')
| -rw-r--r-- | meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb b/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb index f35d769..6e7180f 100644 --- a/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb +++ b/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_git.bb | |||
| @@ -4,6 +4,9 @@ SRCREV = "5fdfdcb2e95afbd86ace555beca5d20cbf1043ed" | |||
| 4 | SRC_URI = "git://github.com/akuster/scap-security-guide.git;branch=oe-0.1.44; \ | 4 | SRC_URI = "git://github.com/akuster/scap-security-guide.git;branch=oe-0.1.44; \ |
| 5 | file://0001-Fix-XML-parsing-of-the-remediation-functions-file.patch \ | 5 | file://0001-Fix-XML-parsing-of-the-remediation-functions-file.patch \ |
| 6 | file://0002-Fixed-the-broken-fix-when-greedy-regex-ate-the-whole.patch \ | 6 | file://0002-Fixed-the-broken-fix-when-greedy-regex-ate-the-whole.patch \ |
| 7 | file://0001-fix-deprecated-instance-of-element.getchildren.patch \ | ||
| 8 | file://0002-fix-deprecated-getiterator-function.patch \ | ||
| 9 | file://0003-fix-remaining-getchildren-and-getiterator-functions.patch \ | ||
| 7 | " | 10 | " |
| 8 | PV = "0.1.44+git${SRCPV}" | 11 | PV = "0.1.44+git${SRCPV}" |
| 9 | 12 | ||
