mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-05 11:04:40 +00:00
aa1707f90e
uefi-firmware-parser's pyproject.toml declares setuptools.build_meta as its
build backend, so setuptools3 is the wrong class and do_check_backend warns:
QA Issue: inherits setuptools3 but has pyproject.toml with
setuptools.build_meta, use the correct class [pep517-backend]
Unlike setup.py, pyproject-build honours the declared build requirements, so
the setuptools_scm dependency has to be provided explicitly, otherwise
do_compile fails with:
ERROR Unmet dependencies ...
setuptools-scm>=8.0
wanted: >=8.0
found: not installed
setup.py passes use_scm_version to setup(), which was silently discarded
before ("Unknown distribution option: 'use_scm_version'"), so the package used
to ship its metadata as uefi_firmware-0.0.0.dist-info. Pin the version to
${PV} so the directory is now correctly named uefi_firmware-1.16.dist-info.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
26 lines
1014 B
BlitzBasic
26 lines
1014 B
BlitzBasic
SUMMARY = "Various data structures and parsing tools for UEFI firmware."
|
|
DESCRIPTION = "This package contains Python UEFI firmware parser tool. The \
|
|
UEFI firmware parser is a simple module and set of scripts for parsing, \
|
|
extracting, and recreating UEFI firmware volumes. This includes parsing \
|
|
modules for BIOS, OptionROM, Intel ME and other formats too."
|
|
HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser"
|
|
LICENSE = "BSD-2-Clause AND BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://setup.py;md5=f3ddb5c3a389eada068ddcf6b89f62b2"
|
|
|
|
SRC_URI = "git://github.com/theopolis/uefi-firmware-parser;protocol=https;branch=master;tag=v${PV}"
|
|
|
|
SRCREV = "e202e576cefd1fefb3f510237bbd0aea8aedca07"
|
|
|
|
DEPENDS += "python3-setuptools-scm-native"
|
|
|
|
inherit python_setuptools_build_meta
|
|
|
|
# The tarball is built from a git tag, so let setuptools_scm use ${PV}
|
|
# instead of deriving a version from the checkout.
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}"
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-ctypes \
|
|
python3-logging \
|
|
"
|