From 63250c3ba81d06acdfa4b3acad460b0e80f0f077 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 13 Mar 2024 16:49:52 +0800 Subject: dnf-plugin-tui: upgrade 1.3 -> 1.4 Changelog: fix the bug of syntax error when poky updated to scarthgap. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../dnf-plugin-tui/dnf-plugin-tui_1.4.bb | 46 +++++++++++++++++++++ .../dnf-plugin-tui/dnf-plugin-tui_git.bb | 47 ---------------------- 2 files changed, 46 insertions(+), 47 deletions(-) create mode 100644 meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_1.4.bb delete mode 100644 meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb (limited to 'meta-oe') diff --git a/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_1.4.bb b/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_1.4.bb new file mode 100644 index 0000000000..479b98d44d --- /dev/null +++ b/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_1.4.bb @@ -0,0 +1,46 @@ +SUMMARY = "A text-based user interface plugin of dnf for user to manage packages. " +LICENSE = "GPL-2.0-only" + +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://github.com/ubinux/dnf-plugin-tui.git;branch=master;protocol=https" +SRCREV = "ad48d934c54ab01026634c90f47f151f148b8147" + +SRC_URI:append:class-target = " file://oe-remote.repo.sample" + +inherit setuptools3-base + +S = "${WORKDIR}/git" + +do_install:append() { + install -d ${D}${datadir}/dnf + install -m 0755 ${S}/samples/* ${D}${datadir}/dnf + install -d ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins/mkimg + install -m 0755 ${S}/dnf-plugins/mkimg/* ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins/mkimg + for file in $(ls ${S}/dnf-plugins/ | grep -v mkimg); do + install -m 0755 ${S}/dnf-plugins/$file ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins + done +} + +do_install:append:class-target() { + install -d ${D}${sysconfdir}/yum.repos.d + install -m 0644 ${WORKDIR}/oe-remote.repo.sample ${D}${sysconfdir}/yum.repos.d +} + +do_install:append:class-nativesdk() { + install -d -p ${D}/${SDKPATH}/postinst-intercepts + cp -r ${COREBASE}/scripts/postinst-intercepts/* ${D}/${SDKPATH}/postinst-intercepts/ + sed -i -e 's/STAGING_DIR_NATIVE/NATIVE_ROOT/g' ${D}/${SDKPATH}/postinst-intercepts/* +} + +FILES:${PN} += "${datadir}/dnf" +FILES:${PN} += "${SDKPATH}/postinst-intercepts" + +RDEPENDS:${PN} += " \ + bash \ + dnf \ + libnewt-python \ +" +BBCLASSEXTEND = "nativesdk" + +SKIP_RECIPE[dnf-plugin-tui] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}" diff --git a/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb b/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb deleted file mode 100644 index 8db456b99c..0000000000 --- a/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb +++ /dev/null @@ -1,47 +0,0 @@ -SUMMARY = "A text-based user interface plugin of dnf for user to manage packages. " -LICENSE = "GPL-2.0-only" - -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" - -SRC_URI = "git://github.com/ubinux/dnf-plugin-tui.git;branch=master;protocol=https" -SRCREV = "baac322a8a6d57e62c703f6ed523152baec18b4f" -PV = "1.3" - -SRC_URI:append:class-target = " file://oe-remote.repo.sample" - -inherit setuptools3-base - -S = "${WORKDIR}/git" - -do_install:append() { - install -d ${D}${datadir}/dnf - install -m 0755 ${S}/samples/* ${D}${datadir}/dnf - install -d ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins/mkimg - install -m 0755 ${S}/dnf-plugins/mkimg/* ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins/mkimg - for file in $(ls ${S}/dnf-plugins/ | grep -v mkimg); do - install -m 0755 ${S}/dnf-plugins/$file ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins - done -} - -do_install:append:class-target() { - install -d ${D}${sysconfdir}/yum.repos.d - install -m 0644 ${WORKDIR}/oe-remote.repo.sample ${D}${sysconfdir}/yum.repos.d -} - -do_install:append:class-nativesdk() { - install -d -p ${D}/${SDKPATH}/postinst-intercepts - cp -r ${COREBASE}/scripts/postinst-intercepts/* ${D}/${SDKPATH}/postinst-intercepts/ - sed -i -e 's/STAGING_DIR_NATIVE/NATIVE_ROOT/g' ${D}/${SDKPATH}/postinst-intercepts/* -} - -FILES:${PN} += "${datadir}/dnf" -FILES:${PN} += "${SDKPATH}/postinst-intercepts" - -RDEPENDS:${PN} += " \ - bash \ - dnf \ - libnewt-python \ -" -BBCLASSEXTEND = "nativesdk" - -SKIP_RECIPE[dnf-plugin-tui] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}" -- cgit v1.2.3-54-g00ecf