From 5a5770f10bdf624b091a405a040fed12f3b8a2ba Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Wed, 8 Dec 2021 17:51:12 +0100 Subject: [PATCH] python3-pyelftools: Drop local recipe but keep patches The python3-pyelftools is now provided by upstream (or-core) but the dwarf5 patches are not yet there. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .../python/python3-pyelftools_0.27.bb | 23 ------------------- .../python/python3-pyelftools_0.27.bbappend | 11 +++++++++ 2 files changed, 11 insertions(+), 23 deletions(-) delete mode 100644 meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bb create mode 100644 meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bbappend diff --git a/meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bb b/meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bb deleted file mode 100644 index 5326f43a..00000000 --- a/meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bb +++ /dev/null @@ -1,23 +0,0 @@ -# SPDX-FileCopyrightText: Huawei Inc. -# -# SPDX-License-Identifier: Apache-2.0 -DESCRIPTION = "pyelftools is a pure-Python library for parsing and analyzing ELF files and DWARF debugging information" -HOMEPAGE = "https://github.com/eliben/pyelftools" -SECTION = "devel/python" -LICENSE = "PD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=5ce2a2b07fca326bc7c146d10105ccfc" - -# Add DWARF-5 support, based on upstream -SRC_URI_append = " \ - file://dwarf5-constants.patch \ - file://dwarf5.patch \ -" - -SRC_URI[md5sum] = "061d67c669a9b1f8d07f28c47fb6a65f" -SRC_URI[sha256sum] = "cde854e662774c5457d688ca41615f6594187ba7067af101232df889a6b7a66b" - -PYPI_PACKAGE = "pyelftools" - -inherit pypi setuptools3 - -BBCLASSEXTEND = "native" diff --git a/meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bbappend b/meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bbappend new file mode 100644 index 00000000..65f9c02b --- /dev/null +++ b/meta-oniro-core/recipes-devtools/python/python3-pyelftools_0.27.bbappend @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +# Add DWARF-5 support, based on upstream +SRC_URI:append = " \ + file://dwarf5-constants.patch \ + file://dwarf5.patch \ +" -- GitLab