diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template index b0b92639f65..782a6270a62 100644 --- a/srcpkgs/coreutils/template +++ b/srcpkgs/coreutils/template @@ -75,6 +75,31 @@ do_build() { fi make ${makejobs} } + +do_check() { + # chgrp tests fail inside a chroot + sed -i '/tests\/chgrp/d' Makefile + + # tests that fail inside a chroot + sed -i '/test-fchownat$(EXEEXT)/d' gnulib-tests/Makefile + sed -i '/test-chown$(EXEEXT)/d' gnulib-tests/Makefile + sed -i '/test-lchown$(EXEEXT)/d' gnulib-tests/Makefile + + # Requires test-chown which fails on chroot ( see above ) + sed -i '/test-chdir$(EXEEXT)/d' gnulib-tests/Makefile + + # Requires test-chdir which is disable due to test-chown failure + sed -i '/test-canonicalize$(EXEEXT)/d' gnulib-tests/Makefile + + # Requires test-canonicalize which is disable due to test-chdir being + # disable due to test-chown failure + sed -i '/test-calloc-gnu$(EXEEXT)/d' gnulib-tests/Makefile + + sed -i '/test-c-strcase.sh/d' gnulib-tests/Makefile + + make RUN_EXPENSIVE_TESTS=1 check +} + do_install() { make DESTDIR=${DESTDIR} install if [ "$CROSS_BUILD" ]; then