summaryrefslogtreecommitdiffstats
path: root/meta-selftest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-26 20:44:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-01 14:22:53 +0100
commitcf9c5ac2c152a7b53a1306cbde88bc3c0131028f (patch)
tree674d41ec7db0eb32d7f41cd91497f10db13902aa /meta-selftest
parent6f6a9ec39beeb41e5d3d616baddd21faca9da224 (diff)
downloadpoky-cf9c5ac2c152a7b53a1306cbde88bc3c0131028f.tar.gz
selftest-ed: Upgrade to version 1.21/1.20.2
Older versions do not compile with GCC 15. We had different versions to test GPLv3 exclusion. 1.21 compiles with gcc 15 and 1.20.2 has a CFLAGS tweak to allow it to work with gcc 15 too. 1.21 is licensed under GPL-2.0 so we need to rework some of the tests. Tweak the gplv3 test by adding a special override of LICENSE to then test the license exclusion code. Modify the archiver selftests to use the new version. Based on a patch from Khem Raj <raj.khem@gmail.com> (From OE-Core rev: 3b17355ad1ecad17d12c5eb0e6403a59ef11f7d7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
-rw-r--r--meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb23
-rw-r--r--meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb38
-rw-r--r--meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb44
-rw-r--r--meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb42
4 files changed, 86 insertions, 61 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
deleted file mode 100644
index 1a140a532f..0000000000
--- a/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb
+++ /dev/null
@@ -1,23 +0,0 @@
1SUMMARY = "Line-oriented text editor -- selftest GPL-2.0-or-later version"
2HOMEPAGE = "http://www.gnu.org/software/ed/"
3SECTION = "base"
4LICENSE = "GPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=6ddd5335ef96fb858a138230af773710 \
6 file://main.c;beginline=1;endline=17;md5=36d4b85e5ae9028e918d1cc775c2475e"
7
8SRC_URI = "${SAVANNAH_GNU_MIRROR}/ed/ed-${PV}.tar.bz2"
9
10SRC_URI[md5sum] = "4ee21e9dcc9b5b6012c23038734e1632"
11SRC_URI[sha256sum] = "edef2bbde0fbf0d88232782a0eded323f483a0519d6fde9a3b1809056fd35f3e"
12
13inherit autotools texinfo
14
15S = "${WORKDIR}/ed-${PV}"
16
17EXTRA_OECONF = "'CC=${CC}' 'CXX=${CXX}' 'CFLAGS=${CFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}'"
18
19CONFIGUREOPTS:remove = "--disable-dependency-tracking"
20CONFIGUREOPTS:remove = "--disable-silent-rules"
21EXTRA_OECONF:remove = "--disable-static"
22
23BBCLASSEXTEND = "native"
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
deleted file mode 100644
index b92740de32..0000000000
--- a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb
+++ /dev/null
@@ -1,38 +0,0 @@
1SUMMARY = "Line-oriented text editor -- selftest variant"
2HOMEPAGE = "http://www.gnu.org/software/ed/"
3
4LICENSE = "GPL-3.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7 \
6 file://ed.h;endline=20;md5=4e36b7a40e137f42aee718165590d125 \
7 file://main.c;endline=17;md5=c5b8f78f115df187af76868a2aead16a"
8
9SECTION = "base"
10
11# LSB states that ed should be in /bin/
12bindir = "${base_bindir}"
13
14SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz"
15RECIPE_NO_UPDATE_REASON = "This recipe is used in selftest and shouldn't be updated otherwise"
16
17SRC_URI[md5sum] = "7f4a54fa7f366479f03654b8af645fd0"
18SRC_URI[sha256sum] = "ffb97eb8f2a2b5a71a9b97e3872adce953aa1b8958e04c5b7bf11d556f32552a"
19
20S = "${WORKDIR}/ed-${PV}"
21
22EXTRA_OEMAKE = "-e MAKEFLAGS="
23
24inherit texinfo
25
26do_configure() {
27 ${S}/configure
28}
29
30do_install() {
31 oe_runmake 'DESTDIR=${D}' install
32 # Info dir listing isn't interesting at this point so remove it if it exists.
33 if [ -e "${D}${infodir}/dir" ]; then
34 rm -f ${D}${infodir}/dir
35 fi
36}
37
38BBCLASSEXTEND = "native"
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb
new file mode 100644
index 0000000000..d4232b72ee
--- /dev/null
+++ b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb
@@ -0,0 +1,44 @@
1SUMMARY = "Line-oriented text editor"
2HOMEPAGE = "http://www.gnu.org/software/ed/"
3DESCRIPTION = "GNU ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands."
4
5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \
7 file://ed.h;endline=20;md5=c3212b6c53b09668107420af9368c0ef \
8 file://main.c;endline=17;md5=e5d2ae5ddd1ecb87dc71702c06dd06dc \
9 "
10
11SECTION = "base"
12
13CVE_PRODUCT = "gnu:ed"
14
15# LSB states that ed should be in /bin/
16bindir = "${base_bindir}"
17
18# Upstream regularly removes previous releases from https://ftp.gnu.org/gnu/ed/
19SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz"
20UPSTREAM_CHECK_URI = "${GNU_MIRROR}/ed/"
21
22SRC_URI[sha256sum] = "65fec7318f48c2ca17f334ac0f4703defe62037bb13cc23920de077b5fa24523"
23
24S = "${WORKDIR}/ed-${PV}"
25
26EXTRA_OEMAKE = "-e MAKEFLAGS="
27
28# for gcc 15 true/false change
29CFLAGS += "-std=gnu17"
30
31inherit texinfo
32
33do_configure() {
34 ${S}/configure
35}
36
37do_install() {
38 oe_runmake 'DESTDIR=${D}' install
39 # Info dir listing isn't interesting at this point so remove it if it exists.
40 if [ -e "${D}${infodir}/dir" ]; then
41 rm -f ${D}${infodir}/dir
42 fi
43}
44BBCLASSEXTEND = "native"
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb
new file mode 100644
index 0000000000..acd1ce5907
--- /dev/null
+++ b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb
@@ -0,0 +1,42 @@
1SUMMARY = "Line-oriented text editor"
2HOMEPAGE = "http://www.gnu.org/software/ed/"
3DESCRIPTION = "GNU ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands."
4
5LICENSE = "GPL-2.0-only"
6LICENSE:gplv3test = "GPL-3.0-or-later"
7LIC_FILES_CHKSUM = "file://COPYING;md5=cca7f74ec83b7a9ce7ccd195aad471bd \
8 file://ed.h;endline=20;md5=a24e7f91c0fb83e65a746f5994762a49 \
9 file://main.c;endline=17;md5=fd6ad9f1853f123f4ae7a31d59761f09 \
10 "
11
12SECTION = "base"
13
14CVE_PRODUCT = "gnu:ed"
15
16# LSB states that ed should be in /bin/
17bindir = "${base_bindir}"
18
19# Upstream regularly removes previous releases from https://ftp.gnu.org/gnu/ed/
20SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz"
21UPSTREAM_CHECK_URI = "${GNU_MIRROR}/ed/"
22
23SRC_URI[sha256sum] = "d6d0c7192b02b0519c902a93719053e865ade5a784a3b327d93d888457b23c4b"
24
25S = "${WORKDIR}/ed-${PV}"
26
27EXTRA_OEMAKE = "-e MAKEFLAGS="
28
29inherit texinfo
30
31do_configure() {
32 ${S}/configure
33}
34
35do_install() {
36 oe_runmake 'DESTDIR=${D}' install
37 # Info dir listing isn't interesting at this point so remove it if it exists.
38 if [ -e "${D}${infodir}/dir" ]; then
39 rm -f ${D}${infodir}/dir
40 fi
41}
42BBCLASSEXTEND = "native"