mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
util-linux: move to Python 3
(From OE-Core rev: 0dacdb780bce78e2c12b1ac9914a1a0194d6ff39) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8c1aa8ba5e
commit
a8d85cf116
@@ -17,7 +17,7 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=1715f5ee3e01203ca1e1e0b9ee65918c
|
|||||||
file://libmount/COPYING;md5=fb93f01d4361069c5616327705373b16 \
|
file://libmount/COPYING;md5=fb93f01d4361069c5616327705373b16 \
|
||||||
file://libblkid/COPYING;md5=fb93f01d4361069c5616327705373b16"
|
file://libblkid/COPYING;md5=fb93f01d4361069c5616327705373b16"
|
||||||
|
|
||||||
inherit autotools gettext pkgconfig systemd update-alternatives python-dir ptest bash-completion
|
inherit autotools gettext pkgconfig systemd update-alternatives python3-dir ptest bash-completion
|
||||||
DEPENDS = "zlib ncurses"
|
DEPENDS = "zlib ncurses"
|
||||||
DEPENDS_append_class-native = " lzo-native"
|
DEPENDS_append_class-native = " lzo-native"
|
||||||
DEPENDS_append_class-nativesdk = " lzo-native"
|
DEPENDS_append_class-nativesdk = " lzo-native"
|
||||||
@@ -60,14 +60,14 @@ PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_u
|
|||||||
PACKAGECONFIG[libcap-ng] = "--enable-setpriv,--disable-setpriv,libcap-ng,"
|
PACKAGECONFIG[libcap-ng] = "--enable-setpriv,--disable-setpriv,libcap-ng,"
|
||||||
|
|
||||||
# Build python bindings for libmount
|
# Build python bindings for libmount
|
||||||
PACKAGECONFIG[pylibmount] = "--with-python --enable-pylibmount,--without-python --disable-pylibmount,python"
|
PACKAGECONFIG[pylibmount] = "--with-python=3 --enable-pylibmount,--without-python --disable-pylibmount,python3"
|
||||||
|
|
||||||
# Readline support
|
# Readline support
|
||||||
PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
|
PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
|
||||||
|
|
||||||
FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*"
|
FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*"
|
||||||
|
|
||||||
FILES_${PN}-dev += "${libdir}/${PYTHON_DIR}/dist-packages/libmount/pylibmount.la"
|
FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.la"
|
||||||
|
|
||||||
FILES_util-linux-agetty = "${base_sbindir}/agetty"
|
FILES_util-linux-agetty = "${base_sbindir}/agetty"
|
||||||
FILES_util-linux-fdisk = "${base_sbindir}/fdisk.${BPN}"
|
FILES_util-linux-fdisk = "${base_sbindir}/fdisk.${BPN}"
|
||||||
@@ -89,8 +89,9 @@ FILES_util-linux-findfs = "${sbindir}/findfs"
|
|||||||
FILES_util-linux-getopt = "${base_bindir}/getopt.${BPN}"
|
FILES_util-linux-getopt = "${base_bindir}/getopt.${BPN}"
|
||||||
FILES_util-linux-runuser = "${sbindir}/runuser"
|
FILES_util-linux-runuser = "${sbindir}/runuser"
|
||||||
|
|
||||||
FILES_util-linux-pylibmount = "${libdir}/${PYTHON_DIR}/dist-packages/libmount/pylibmount.so \
|
FILES_util-linux-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \
|
||||||
${libdir}/${PYTHON_DIR}/dist-packages/libmount/__init__.*"
|
${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \
|
||||||
|
${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*"
|
||||||
FILES_util-linux-lscpu = "${bindir}/lscpu"
|
FILES_util-linux-lscpu = "${bindir}/lscpu"
|
||||||
|
|
||||||
FILES_util-linux-fsck = "${base_sbindir}/fsck*"
|
FILES_util-linux-fsck = "${base_sbindir}/fsck*"
|
||||||
|
|||||||
Reference in New Issue
Block a user