summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/m4/m4-1.4.18.inc
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2019-04-23 17:43:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-25 00:05:20 +0100
commit0ab0dacc1afe3453f74b0bbc8b15229f93f1c61f (patch)
tree25b41bf352de76dce008ea4174d020366792d7ff /meta/recipes-devtools/m4/m4-1.4.18.inc
parent3772725a45bc749340530fc8dd4d674a7ca79654 (diff)
downloadpoky-0ab0dacc1afe3453f74b0bbc8b15229f93f1c61f.tar.gz
m4: add ptest support
add patch 0001-test-getopt-posix-fix.patch for fix test-getopt-posix (From OE-Core rev: 6048f6787b0b6e98f8d16710ffb68fe10c41e0a2) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/m4/m4-1.4.18.inc')
-rw-r--r--meta/recipes-devtools/m4/m4-1.4.18.inc37
1 files changed, 34 insertions, 3 deletions
diff --git a/meta/recipes-devtools/m4/m4-1.4.18.inc b/meta/recipes-devtools/m4/m4-1.4.18.inc
index a6cef6f328..f433b3f2dd 100644
--- a/meta/recipes-devtools/m4/m4-1.4.18.inc
+++ b/meta/recipes-devtools/m4/m4-1.4.18.inc
@@ -4,15 +4,18 @@ DESCRIPTION = "GNU m4 is an implementation of the traditional Unix macro process
4compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). \ 4compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). \
5GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc." 5GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc."
6 6
7inherit autotools texinfo 7inherit autotools texinfo ptest
8 8
9SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \ 9SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \
10 file://ac_config_links.patch \ 10 file://ac_config_links.patch \
11 file://remove-gets.patch \ 11 file://remove-gets.patch \
12 file://m4-1.4.18-glibc-change-work-around.patch \ 12 file://m4-1.4.18-glibc-change-work-around.patch \
13 " 13 "
14 14SRC_URI_append_class-target = " file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
15SRC_URI_append_class-target = " file://0001-Unset-need_charset_alias-when-building-for-musl.patch" 15 file://run-ptest \
16 file://serial-tests-config.patch \
17 file://0001-test-getopt-posix-fix.patch \
18 "
16 19
17SRC_URI[md5sum] = "a077779db287adf4e12a035029002d28" 20SRC_URI[md5sum] = "a077779db287adf4e12a035029002d28"
18SRC_URI[sha256sum] = "ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab" 21SRC_URI[sha256sum] = "ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab"
@@ -28,3 +31,31 @@ acpaths = "-I ./m4"
28EXTRA_OECONF += "--without-libsigsegv-prefix" 31EXTRA_OECONF += "--without-libsigsegv-prefix"
29 32
30EXTRA_OEMAKE += "'infodir=${infodir}'" 33EXTRA_OEMAKE += "'infodir=${infodir}'"
34
35do_compile_ptest() {
36 cd ${B}/tests
37 sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile
38 oe_runmake buildtest-TESTS
39}
40
41do_install_ptest() {
42 cp -r ${B}/tests ${D}${PTEST_PATH}
43 cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
44 sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile
45 sed -i -e "s;LOCALE_FR='fr_FR';LOCALE_FR='fr_FR.iso88591';g" \
46 -e "s;LOCALE_FR_UTF8='none';LOCALE_FR_UTF8='fr_FR.utf8';g" ${D}${PTEST_PATH}/tests/Makefile
47 find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {}
48 cp ${S}/build-aux/update-copyright ${D}${PTEST_PATH}/tests/
49 sed -i 's;update-copyright;./update-copyright;g' ${D}${PTEST_PATH}/tests/test-update-copyright.sh
50 chmod 0755 ${D}${PTEST_PATH}/tests/test-mbrtowc-w32-1.sh ${D}${PTEST_PATH}/tests/test-spawn-pipe-main \
51 ${D}${PTEST_PATH}/tests/test-spawn-pipe-child ${D}${PTEST_PATH}/tests/test-version-etc \
52 ${D}${PTEST_PATH}/tests/test-xalloc-die
53}
54
55RDEPENDS_${PN}-ptest_append_libc-glibc = "\
56 locale-base-fr-fr.iso-8859-1 \
57"
58
59INSANE_SKIP_${PN}-ptest += "ldflags"
60INSANE_SKIP_${PN}-ptest += "rpaths"
61