mirror of
https://git.yoctoproject.org/poky
synced 2026-03-15 03:39:42 +01:00
We patch Python's distutils modules to access STAGING_INCDIR/LIBDIR, so when they are not set, scripts that utilize distutils (e.g. python-config) fail. Several recipes need to export those manually to prevent such failures, so let's do that in the class instead. PYTHON variable is exported because otherwise autotools' python.m4 macro will pick up its own internal default, which may not be the version that we want. glib recipe in particular was previously using Python 2.x during build due to python.m4 defaulting to it - now it's using Python 3.x, and so needs a small fix in deletion of *.pyc files. (From OE-Core rev: c1e0eb62f2d89b10b187016200018830b1c77945) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
33 lines
1.3 KiB
BlitzBasic
33 lines
1.3 KiB
BlitzBasic
SUMMARY = "user and group account administration library"
|
|
DESCRIPTION = "The libuser library implements a standardized interface for manipulating and administering user \
|
|
and group accounts"
|
|
HOMEPAGE = "https://fedorahosted.org/libuser/"
|
|
BUGTRACKER = "https://fedorahosted.org/libuser/newticket"
|
|
|
|
LICENSE = "LGPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
|
|
file://lib/user.h;endline=19;md5=76b301f63c39fa992062395efbdc9558 \
|
|
file://samples/testuser.c;endline=19;md5=3b87fa660fa3f4a6bb31d624afe30ba1"
|
|
|
|
SECTION = "base"
|
|
|
|
SRC_URI = "https://fedorahosted.org/releases/l/i/libuser/libuser-${PV}.tar.xz \
|
|
file://0001-Check-for-issetugid.patch \
|
|
file://0002-remove-unused-execinfo.h.patch \
|
|
file://0001-modules-files.c-parse_field-fix-string-formating-in-.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "63e5e5c551e99dc5302b40b80bd6d4f2"
|
|
SRC_URI[sha256sum] = "a58ff4fabb01a25043b142185a33eeea961109dd60d4b40b6a9df4fa3cace20b"
|
|
|
|
DEPENDS = "popt libpam glib-2.0 docbook-utils-native linuxdoc-tools-native python3"
|
|
|
|
inherit autotools gettext python3native python3-dir pkgconfig
|
|
|
|
EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
|
|
|
|
PACKAGES += "${PN}-python "
|
|
|
|
FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
|
|
|