Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | LICENSE = "GPL-3.0-or-later" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 3 | |
| 4 | require diffutils.inc |
| 5 | |
| 6 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \ |
| 7 | file://run-ptest \ |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 8 | file://0001-Skip-strip-trailing-cr-test-case.patch \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 9 | file://0001-mcontext-is-not-a-standard-layout-so-glibc-and-musl-.patch \ |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 10 | " |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 11 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 12 | SRC_URI[sha256sum] = "a6bdd7d1b31266d11c4f4de6c1b748d4607ab0231af5188fc2533d0ae2438fec" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | |
| 14 | EXTRA_OECONF += "ac_cv_path_PR_PROGRAM=${bindir}/pr --without-libsigsegv-prefix" |
| 15 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 16 | # latest gnulib is no longer able to handle this - I dare not try to fix that maze of abstractions and generators |
| 17 | CFLAGS:mingw32 = " -DSA_RESTART=0" |
| 18 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | # Fix "Argument list too long" error when len(TMPDIR) = 410 |
| 20 | acpaths = "-I ./m4" |
| 21 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 22 | EXTRA_OEMAKE:append:mingw32 = " LIBS='-lbcrypt'" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | inherit ptest |
| 24 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | RDEPENDS:${PN}-ptest += "make perl" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 26 | |
| 27 | do_install_ptest() { |
| 28 | t=${D}${PTEST_PATH} |
| 29 | install -D ${S}/build-aux/test-driver $t/build-aux/test-driver |
| 30 | cp -r ${S}/tests $t/ |
| 31 | install ${B}/tests/Makefile $t/tests/ |
| 32 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 33 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 34 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
| 35 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 36 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
| 37 | -e 's|^Makefile:|_Makefile:|' \ |
| 38 | -e 's|bash|sh|' \ |
| 39 | -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \ |
| 40 | -e 's|^srcdir = \(.*\)|srcdir = .|' \ |
| 41 | -e 's|"`$(built_programs)`"|diff|' \ |
| 42 | -e 's|gawk|awk|g' \ |
| 43 | -i $t/tests/Makefile |
| 44 | } |