diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2017-03-08 17:24:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 14:50:10 +0000 |
commit | 52c10b6e58adbdd8489ec2e491d742d942e0c53f (patch) | |
tree | 7b73e0d6dcd66f3760d456e0689d8990ac44d810 | |
parent | d454dc2fc17711d3efe6dbe5aca3c734f0ed158b (diff) | |
download | poky-52c10b6e58adbdd8489ec2e491d742d942e0c53f.tar.gz |
meta-selftest: add selftest-ed recipes
The oe-selftest oescripts.TestScripts.test_cleanup_workdir was using
gzip and the GPLv2 variant to test cleanup of the workdir. This broke
with the removal of GPLv2 recipes from OE-Core.
Instead of relying on recipes in OE-Core remaining static we should
ensure that meta-selftest provides recipes required for the tests to pass.
To that end we take a copy of the current GPLv2 and GPLv3 variants of ed
and include them in meta-selftest as new recipes.
We chose ed over gzip as gzip has dependencies which would require
additional GPLv2 recipes to be included in meta-selftest.
(From OE-Core rev: 2ac83239698c403bb575e6c5b19f19fcffa389ed)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb | 22 | ||||
-rw-r--r-- | meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb | 35 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb new file mode 100644 index 0000000000..8e0d1cdd8e --- /dev/null +++ b/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Line-oriented text editor -- selftest GPLv2 version" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/ed/" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=6ddd5335ef96fb858a138230af773710 \ | ||
6 | file://main.c;beginline=1;endline=17;md5=36d4b85e5ae9028e918d1cc775c2475e" | ||
7 | |||
8 | PR = "r2" | ||
9 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/ed/ed-${PV}.tar.bz2" | ||
10 | |||
11 | SRC_URI[md5sum] = "4ee21e9dcc9b5b6012c23038734e1632" | ||
12 | SRC_URI[sha256sum] = "edef2bbde0fbf0d88232782a0eded323f483a0519d6fde9a3b1809056fd35f3e" | ||
13 | |||
14 | inherit autotools texinfo | ||
15 | |||
16 | S = "${WORKDIR}/ed-${PV}" | ||
17 | |||
18 | EXTRA_OECONF = "'CC=${CC}' 'CXX=${CXX}' 'CFLAGS=${CFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}'" | ||
19 | |||
20 | CONFIGUREOPTS_remove = "--disable-dependency-tracking" | ||
21 | CONFIGUREOPTS_remove = "--disable-silent-rules" | ||
22 | EXTRA_OECONF_remove = "--disable-static" | ||
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb new file mode 100644 index 0000000000..62931c404b --- /dev/null +++ b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Line-oriented text editor -- selftest variant" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/ed/" | ||
3 | |||
4 | LICENSE = "GPLv3+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7 \ | ||
6 | file://ed.h;endline=20;md5=4e36b7a40e137f42aee718165590d125 \ | ||
7 | file://main.c;endline=17;md5=c5b8f78f115df187af76868a2aead16a" | ||
8 | |||
9 | SECTION = "base" | ||
10 | |||
11 | # LSB states that ed should be in /bin/ | ||
12 | bindir = "${base_bindir}" | ||
13 | |||
14 | SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz" | ||
15 | |||
16 | SRC_URI[md5sum] = "7f4a54fa7f366479f03654b8af645fd0" | ||
17 | SRC_URI[sha256sum] = "ffb97eb8f2a2b5a71a9b97e3872adce953aa1b8958e04c5b7bf11d556f32552a" | ||
18 | |||
19 | S = "${WORKDIR}/ed-${PV}" | ||
20 | |||
21 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
22 | |||
23 | inherit texinfo | ||
24 | |||
25 | do_configure() { | ||
26 | ${S}/configure | ||
27 | } | ||
28 | |||
29 | do_install() { | ||
30 | oe_runmake 'DESTDIR=${D}' install | ||
31 | # Info dir listing isn't interesting at this point so remove it if it exists. | ||
32 | if [ -e "${D}${infodir}/dir" ]; then | ||
33 | rm -f ${D}${infodir}/dir | ||
34 | fi | ||
35 | } | ||