diff options
| author | zhengruoqin <zhengrq.fnst@fujitsu.com> | 2021-12-07 08:06:25 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-08 20:22:11 +0000 |
| commit | 02f7376bb9c86262e8363262385cd506cb5ced33 (patch) | |
| tree | 6abba6bff0bed8cffd5c7ab987e3523c140e7a33 /meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb | |
| parent | bbfe982f9f1dd28af3c814097d6277616e2dcfb8 (diff) | |
| download | poky-02f7376bb9c86262e8363262385cd506cb5ced33.tar.gz | |
opkg-utils: upgrade 0.4.5 -> 0.5.0
(From OE-Core rev: a9561eeb710eee02cdf9817245882d29f797b9b0)
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb')
| -rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb new file mode 100644 index 0000000000..21678a27b2 --- /dev/null +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | SUMMARY = "Additional utilities for the opkg package manager" | ||
| 2 | SUMMARY:update-alternatives-opkg = "Utility for managing the alternatives system" | ||
| 3 | SECTION = "base" | ||
| 4 | HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils" | ||
| 5 | LICENSE = "GPLv2+" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
| 7 | file://opkg.py;beginline=2;endline=18;md5=ffa11ff3c15eb31c6a7ceaa00cc9f986" | ||
| 8 | PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'virtual/update-alternatives', '', d)}" | ||
| 9 | |||
| 10 | SRC_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/${BPN}/snapshot/${BPN}-${PV}.tar.gz \ | ||
| 11 | file://0001-update-alternatives-correctly-match-priority.patch \ | ||
| 12 | " | ||
| 13 | UPSTREAM_CHECK_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/refs/" | ||
| 14 | |||
| 15 | SRC_URI[sha256sum] = "55733c0f8ffde2bb4f9593cfd66a1f68e6a2f814e8e62f6fd78472911c818c32" | ||
| 16 | |||
| 17 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 18 | |||
| 19 | RDEPENDS:${PN} += "bash" | ||
| 20 | |||
| 21 | inherit perlnative | ||
| 22 | |||
| 23 | # For native builds we use the host Python | ||
| 24 | PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-pickle python3-compression python3-stringold" | ||
| 25 | PYTHONRDEPS:class-native = "" | ||
| 26 | |||
| 27 | PACKAGECONFIG = "python update-alternatives" | ||
| 28 | PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" | ||
| 29 | PACKAGECONFIG[update-alternatives] = ",,," | ||
| 30 | |||
| 31 | do_install() { | ||
| 32 | oe_runmake PREFIX=${prefix} DESTDIR=${D} install | ||
| 33 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then | ||
| 34 | rm -f "${D}${bindir}/update-alternatives" | ||
| 35 | fi | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install:append:class-target() { | ||
| 39 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then | ||
| 40 | grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm | ||
| 41 | fi | ||
| 42 | |||
| 43 | if [ -e "${D}${bindir}/update-alternatives" ]; then | ||
| 44 | sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g' | ||
| 45 | fi | ||
| 46 | } | ||
| 47 | |||
| 48 | # These are empty and will pull python3-dev into images where it wouldn't | ||
| 49 | # have been otherwise, so don't generate them. | ||
| 50 | PACKAGES:remove = "${PN}-dev ${PN}-staticdev" | ||
| 51 | |||
| 52 | PACKAGES =+ "update-alternatives-opkg" | ||
| 53 | FILES:update-alternatives-opkg = "${bindir}/update-alternatives" | ||
| 54 | RPROVIDES:update-alternatives-opkg = "update-alternatives update-alternatives-cworth" | ||
| 55 | RREPLACES:update-alternatives-opkg = "update-alternatives-cworth" | ||
| 56 | RCONFLICTS:update-alternatives-opkg = "update-alternatives-cworth" | ||
| 57 | |||
| 58 | pkg_postrm:update-alternatives-opkg() { | ||
| 59 | rm -rf $D${nonarch_libdir}/opkg/alternatives | ||
| 60 | rmdir $D${nonarch_libdir}/opkg || true | ||
| 61 | } | ||
| 62 | |||
| 63 | BBCLASSEXTEND = "native nativesdk" | ||
| 64 | |||
| 65 | CLEANBROKEN = "1" | ||
