diff options
| author | Armin Kuster <akuster@mvista.com> | 2017-11-21 12:01:33 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-02 11:25:32 +0000 |
| commit | 4ab75023ff4be058995630fecdc1fd4a11118607 (patch) | |
| tree | b0b7ebd5ee22b46dfe47a444aebcb73cd586b89f /meta/recipes-support/nettle/nettle_3.4.bb | |
| parent | 452fa2df2f2d12e8675925cb04dc4ad9311667a1 (diff) | |
| download | poky-4ab75023ff4be058995630fecdc1fd4a11118607.tar.gz | |
nettle: update to 3.4 and cleanup
merge .inc
forward ported two patches to work with 3.4
for more info see:
http://lists.gnu.org/archive/html/info-gnu/2017-11/msg00007.html
Change SRC_URI to use GNU download instead of liu.se, which interacts badly with
wget 1.19.2 and downloads uncompressed tarballs (RB).
(From OE-Core rev: 0b5d971a4e8e6904d2f4641fd5f3647d23ff4fa0)
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
XX nettle: update SRC_URI
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nettle/nettle_3.4.bb')
| -rw-r--r-- | meta/recipes-support/nettle/nettle_3.4.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-support/nettle/nettle_3.4.bb b/meta/recipes-support/nettle/nettle_3.4.bb new file mode 100644 index 0000000000..e88dba3989 --- /dev/null +++ b/meta/recipes-support/nettle/nettle_3.4.bb | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | SUMMARY = "A low level cryptographic library" | ||
| 2 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/" | ||
| 3 | SECTION = "libs" | ||
| 4 | LICENSE = "LGPLv3+ | GPLv2+" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
| 7 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 8 | file://serpent-decrypt.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e \ | ||
| 9 | file://serpent-set-key.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e" | ||
| 10 | |||
| 11 | DEPENDS += "gmp" | ||
| 12 | |||
| 13 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ | ||
| 14 | file://Add-target-to-only-build-tests-not-run-them.patch \ | ||
| 15 | file://run-ptest \ | ||
| 16 | file://check-header-files-of-openssl-only-if-enable_.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRC_URI_append_class-target = "\ | ||
| 20 | file://dlopen-test.patch \ | ||
| 21 | " | ||
| 22 | |||
| 23 | SRC_URI[md5sum] = "dc0f13028264992f58e67b4e8915f53d" | ||
| 24 | SRC_URI[sha256sum] = "ae7a42df026550b85daca8389b6a60ba6313b0567f374392e54918588a411e94" | ||
| 25 | |||
| 26 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" | ||
| 27 | |||
| 28 | inherit autotools ptest | ||
| 29 | |||
| 30 | EXTRA_OECONF = "--disable-openssl" | ||
| 31 | |||
| 32 | do_configure_prepend() { | ||
| 33 | if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then | ||
| 34 | cp ${S}/aclocal.m4 ${S}/acinclude.m4 | ||
| 35 | fi | ||
| 36 | } | ||
| 37 | |||
| 38 | do_compile_ptest() { | ||
| 39 | oe_runmake buildtest | ||
| 40 | } | ||
| 41 | |||
| 42 | do_install_ptest() { | ||
| 43 | install -d ${D}${PTEST_PATH}/testsuite/ | ||
| 44 | install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ | ||
| 45 | install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ | ||
| 46 | # tools can be found in PATH, not in ../tools/ | ||
| 47 | sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test | ||
| 48 | install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ | ||
| 49 | } | ||
| 50 | |||
| 51 | BBCLASSEXTEND = "native nativesdk" | ||
