Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | LICENSE = "GPLv3+" |
| 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://0001-Unset-need_charset_alias-when-building-for-musl.patch \ |
| 8 | file://run-ptest \ |
| 9 | " |
| 10 | SRC_URI_append_libc-glibc = " file://0001-explicitly-disable-replacing-getopt.patch" |
| 11 | |
| 12 | SRC_URI[md5sum] = "07cf286672ced26fba54cd0313bdc071" |
| 13 | SRC_URI[sha256sum] = "d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6" |
| 14 | |
| 15 | EXTRA_OECONF += "ac_cv_path_PR_PROGRAM=${bindir}/pr --without-libsigsegv-prefix" |
| 16 | |
| 17 | # Fix "Argument list too long" error when len(TMPDIR) = 410 |
| 18 | acpaths = "-I ./m4" |
| 19 | |
| 20 | inherit ptest |
| 21 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | RDEPENDS_${PN}-ptest += "make" |
| 23 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | do_install_ptest() { |
| 25 | t=${D}${PTEST_PATH} |
| 26 | install -D ${S}/build-aux/test-driver $t/build-aux/test-driver |
| 27 | cp -r ${S}/tests $t/ |
| 28 | install ${B}/tests/Makefile $t/tests/ |
| 29 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 30 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 31 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
| 32 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 33 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
| 34 | -e 's|^Makefile:|_Makefile:|' \ |
| 35 | -e 's|bash|sh|' \ |
| 36 | -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \ |
| 37 | -e 's|^srcdir = \(.*\)|srcdir = .|' \ |
| 38 | -e 's|"`$(built_programs)`"|diff|' \ |
| 39 | -e 's|gawk|awk|g' \ |
| 40 | -i $t/tests/Makefile |
| 41 | } |