Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Traditional Unix macro processor" |
| 2 | HOMEPAGE = "https://www.gnu.org/software/m4/m4.html" |
| 3 | DESCRIPTION = "GNU m4 is an implementation of the traditional Unix macro processor. It is mostly SVR4 \ |
| 4 | compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). \ |
| 5 | GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc." |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 7 | inherit autotools texinfo ptest |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | |
| 9 | SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \ |
| 10 | file://ac_config_links.patch \ |
Khem Raj | 0eeb9cd | 2018-08-06 15:57:00 -0700 | [diff] [blame] | 11 | file://m4-1.4.18-glibc-change-work-around.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | " |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 13 | SRC_URI_append_class-target = " file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ |
| 14 | file://run-ptest \ |
| 15 | file://serial-tests-config.patch \ |
| 16 | file://0001-test-getopt-posix-fix.patch \ |
| 17 | " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | |
| 19 | SRC_URI[md5sum] = "a077779db287adf4e12a035029002d28" |
| 20 | SRC_URI[sha256sum] = "ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | |
| 22 | LICENSE = "GPLv3" |
| 23 | |
| 24 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\ |
| 25 | file://examples/COPYING;md5=4031593b2166d6c47cae282d944a7ede" |
| 26 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | # Fix "Argument list too long" error when len(TMPDIR) = 410 |
| 28 | acpaths = "-I ./m4" |
| 29 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 30 | EXTRA_OECONF += "--without-libsigsegv-prefix" |
| 31 | |
| 32 | EXTRA_OEMAKE += "'infodir=${infodir}'" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 33 | |
| 34 | do_compile_ptest() { |
| 35 | cd ${B}/tests |
| 36 | sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile |
| 37 | oe_runmake buildtest-TESTS |
| 38 | } |
| 39 | |
| 40 | do_install_ptest() { |
| 41 | cp -r ${B}/tests ${D}${PTEST_PATH} |
| 42 | cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 43 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile |
| 44 | sed -i -e "s;LOCALE_FR='fr_FR';LOCALE_FR='fr_FR.iso88591';g" \ |
| 45 | -e "s;LOCALE_FR_UTF8='none';LOCALE_FR_UTF8='fr_FR.utf8';g" ${D}${PTEST_PATH}/tests/Makefile |
| 46 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} |
| 47 | cp ${S}/build-aux/update-copyright ${D}${PTEST_PATH}/tests/ |
| 48 | sed -i 's;update-copyright;./update-copyright;g' ${D}${PTEST_PATH}/tests/test-update-copyright.sh |
| 49 | chmod 0755 ${D}${PTEST_PATH}/tests/test-mbrtowc-w32-1.sh ${D}${PTEST_PATH}/tests/test-spawn-pipe-main \ |
| 50 | ${D}${PTEST_PATH}/tests/test-spawn-pipe-child ${D}${PTEST_PATH}/tests/test-version-etc \ |
| 51 | ${D}${PTEST_PATH}/tests/test-xalloc-die |
| 52 | } |
| 53 | |
Brad Bishop | 393846f | 2019-05-20 12:24:11 -0400 | [diff] [blame] | 54 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 55 | RDEPENDS_${PN}-ptest += "make coreutils diffutils" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 56 | RDEPENDS_${PN}-ptest_append_libc-glibc = "\ |
| 57 | locale-base-fr-fr.iso-8859-1 \ |
| 58 | " |
| 59 | |
| 60 | INSANE_SKIP_${PN}-ptest += "ldflags" |
| 61 | INSANE_SKIP_${PN}-ptest += "rpaths" |
| 62 | |