diffutils_3.6.bb 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. LICENSE = "GPLv3+"
  2. LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
  3. require diffutils.inc
  4. SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \
  5. file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
  6. file://run-ptest \
  7. "
  8. SRC_URI_append_libc-glibc = " file://0001-explicitly-disable-replacing-getopt.patch"
  9. SRC_URI[md5sum] = "07cf286672ced26fba54cd0313bdc071"
  10. SRC_URI[sha256sum] = "d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6"
  11. EXTRA_OECONF += "ac_cv_path_PR_PROGRAM=${bindir}/pr --without-libsigsegv-prefix"
  12. # Fix "Argument list too long" error when len(TMPDIR) = 410
  13. acpaths = "-I ./m4"
  14. inherit ptest
  15. RDEPENDS_${PN}-ptest += "make"
  16. do_install_ptest() {
  17. t=${D}${PTEST_PATH}
  18. install -D ${S}/build-aux/test-driver $t/build-aux/test-driver
  19. cp -r ${S}/tests $t/
  20. install ${B}/tests/Makefile $t/tests/
  21. sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
  22. -e 's|${DEBUG_PREFIX_MAP}||g' \
  23. -e 's:${HOSTTOOLS_DIR}/::g' \
  24. -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
  25. -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
  26. -e 's|^Makefile:|_Makefile:|' \
  27. -e 's|bash|sh|' \
  28. -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \
  29. -e 's|^srcdir = \(.*\)|srcdir = .|' \
  30. -e 's|"`$(built_programs)`"|diff|' \
  31. -e 's|gawk|awk|g' \
  32. -i $t/tests/Makefile
  33. }