diff options
| author | Alex Stewart <alex.stewart@ni.com> | 2020-12-16 14:00:56 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-20 00:03:04 +0000 |
| commit | fae7b0ddba4836d7b1b1d642bd4514ceab50ca09 (patch) | |
| tree | bf3b207927faabce2a347c4ed33a5b2d354d1aa0 /meta/recipes-devtools/opkg/opkg_0.4.4.bb | |
| parent | 8c4e5c046625daa64501a968c17670bee8ccb9aa (diff) | |
| download | poky-fae7b0ddba4836d7b1b1d642bd4514ceab50ca09.tar.gz | |
opkg: upgrade to version 0.4.4
Include an upstream patch for 0.4.4 which fixes a test framework error
that occurs on host systems with symlinked /tmp directories (like OE).
(From OE-Core rev: 8064abb6664e16c6e0c63df3a466661f9b5b0d10)
Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg_0.4.4.bb')
| -rw-r--r-- | meta/recipes-devtools/opkg/opkg_0.4.4.bb | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg_0.4.4.bb b/meta/recipes-devtools/opkg/opkg_0.4.4.bb new file mode 100644 index 0000000000..f8034ca5fa --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg_0.4.4.bb | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | SUMMARY = "Open Package Manager" | ||
| 2 | SUMMARY_libopkg = "Open Package Manager library" | ||
| 3 | SECTION = "base" | ||
| 4 | HOMEPAGE = "http://code.google.com/p/opkg/" | ||
| 5 | BUGTRACKER = "http://code.google.com/p/opkg/issues/list" | ||
| 6 | LICENSE = "GPLv2+" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
| 8 | file://src/opkg.c;beginline=4;endline=18;md5=d6200b0f2b41dee278aa5fad333eecae" | ||
| 9 | |||
| 10 | DEPENDS = "libarchive" | ||
| 11 | |||
| 12 | PE = "1" | ||
| 13 | |||
| 14 | SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz \ | ||
| 15 | file://opkg.conf \ | ||
| 16 | file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \ | ||
| 17 | file://0001-tests-let-the-OS-negotiate-relative-package-dirs.patch \ | ||
| 18 | file://run-ptest \ | ||
| 19 | " | ||
| 20 | |||
| 21 | SRC_URI[md5sum] = "345900c1d4747d58455867f9fe88ca43" | ||
| 22 | SRC_URI[sha256sum] = "2217acc58b8eb31300631ebae75e222ebc700c9c1cf6408088705d19a472c839" | ||
| 23 | |||
| 24 | # This needs to be before ptest inherit, otherwise all ptest files end packaged | ||
| 25 | # in libopkg package if OPKGLIBDIR == libdir, because default | ||
| 26 | # PTEST_PATH ?= "${libdir}/${BPN}/ptest" | ||
| 27 | PACKAGES =+ "libopkg" | ||
| 28 | |||
| 29 | inherit autotools pkgconfig ptest | ||
| 30 | |||
| 31 | target_localstatedir := "${localstatedir}" | ||
| 32 | OPKGLIBDIR ??= "${target_localstatedir}/lib" | ||
| 33 | |||
| 34 | PACKAGECONFIG ??= "libsolv" | ||
| 35 | |||
| 36 | PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\ | ||
| 37 | gnupg gpgme libgpg-error,\ | ||
| 38 | ${@ "gnupg" if ("native" in d.getVar("PN")) else "gnupg-gpg"}\ | ||
| 39 | " | ||
| 40 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" | ||
| 41 | PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl openssl" | ||
| 42 | PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" | ||
| 43 | PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256" | ||
| 44 | PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv" | ||
| 45 | |||
| 46 | EXTRA_OECONF += " --disable-pathfinder" | ||
| 47 | EXTRA_OECONF_class-native = "--localstatedir=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}" | ||
| 48 | |||
| 49 | do_install_append () { | ||
| 50 | install -d ${D}${sysconfdir}/opkg | ||
| 51 | install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf | ||
| 52 | echo "option lists_dir ${OPKGLIBDIR}/opkg/lists" >>${D}${sysconfdir}/opkg/opkg.conf | ||
| 53 | |||
| 54 | # We need to create the lock directory | ||
| 55 | install -d ${D}${OPKGLIBDIR}/opkg | ||
| 56 | } | ||
| 57 | |||
| 58 | do_install_ptest () { | ||
| 59 | sed -i -e '/@echo $^/d' ${D}${PTEST_PATH}/tests/Makefile | ||
| 60 | sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0" ];then echo "FAIL:"$^;else echo "PASS:"$^;fi' ${D}${PTEST_PATH}/tests/Makefile | ||
| 61 | } | ||
| 62 | |||
| 63 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive" | ||
| 64 | RDEPENDS_${PN}_class-native = "" | ||
| 65 | RDEPENDS_${PN}_class-nativesdk = "" | ||
| 66 | RDEPENDS_${PN}-ptest += "make binutils python3-core python3-compression" | ||
| 67 | RREPLACES_${PN} = "opkg-nogpg opkg-collateral" | ||
| 68 | RCONFLICTS_${PN} = "opkg-collateral" | ||
| 69 | RPROVIDES_${PN} = "opkg-collateral" | ||
| 70 | |||
| 71 | FILES_libopkg = "${libdir}/*.so.* ${OPKGLIBDIR}/opkg/" | ||
| 72 | |||
| 73 | BBCLASSEXTEND = "native nativesdk" | ||
| 74 | |||
| 75 | CONFFILES_${PN} = "${sysconfdir}/opkg/opkg.conf" | ||
