Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
(In reply to 1014938109 from comment #0) > Description of problem: > When i use rpmbuild to build findutils of 4.7.0 as root, the test failed, FAIL: sv-bug-54171.old-O3, FAIL: sv-bug-54171.new-O3, If i change to non-root user, the building succeded. > > Version-Release number of selected component (if applicable): > > > How reproducible: > > > Steps to Reproduce: > 1.[root@localhost findutils]# rpmbuild -ba findutils.spec > 2. > 3. > > Actual results: > === find Summary === # of expected passes 943 # of unexpected failures 2 # of untested testcases 2 find (GNU findutils) 4.7.0 make[3]: *** [Makefile:1942: check-DEJAGNU] Error 1 make[3]: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite' make[2]: *** [Makefile:2017: check-am] Error 2 make[2]: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite' make[1]: *** [Makefile:2008: check-recursive] Error 1 make[1]: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build/find' make: *** [Makefile:2109: check-recursive] Error 1 make: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build' error: Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check) > > Expected results: > Building success. > > Additional info:
(In reply to 1014938109 from comment #1) > (In reply to 1014938109 from comment #0) > > Description of problem: > > When i use rpmbuild to build findutils of 4.7.0 as root, the test failed, > FAIL: sv-bug-54171.old-O3, > FAIL: sv-bug-54171.new-O3, > If i change to non-root user, the building succeded. > > > > Version-Release number of selected component (if applicable): > > > > > > How reproducible: > > > > > > Steps to Reproduce: > > 1.[root@localhost findutils]# rpmbuild -ba findutils.spec > > 2. > > 3. > > > > Actual results: > > === find Summary === > > # of expected passes 943 > # of unexpected failures 2 > # of untested testcases 2 > find (GNU findutils) 4.7.0 > make[3]: *** [Makefile:1942: check-DEJAGNU] Error 1 > make[3]: Leaving directory > '/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite' > make[2]: *** [Makefile:2017: check-am] Error 2 > make[2]: Leaving directory > '/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite' > make[1]: *** [Makefile:2008: check-recursive] Error 1 > make[1]: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build/find' > make: *** [Makefile:2109: check-recursive] Error 1 > make: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build' > error: Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check) > > > > > Expected results: > > Building success. > > > > Additional info: Running ../../../find/testsuite/find.posix/sv-bug-54171.exp ... FAIL: sv-bug-54171.old-O3, FAIL: sv-bug-54171.new-O3,
Why do you run the build as root in the first place? This not recommended for several reasons. For example coreutils, which is very similar to findutils, refuses to build unless you export FORCE_UNSAFE_CONFIGURE=1.
(In reply to Kamil Dudka from comment #3) > Why do you run the build as root in the first place? > > This not recommended for several reasons. For example coreutils, which is > very similar to findutils, refuses to build unless you export > FORCE_UNSAFE_CONFIGURE=1. Thank you for you apply. I used to login as root, so i find the problem by accident. And i want to know why root could caused the failure, i haven't seen any limitation on this.
find.posix/sv-bug-54171 expects find -depth to return non-zero exit code when it encounters an unreadable directory. The problem is that a directory with permissions 0311 is not really unreadable when find runs with root privileges.
upstream commit: https://git.savannah.gnu.org/cgit/findutils.git/commit/?id=2f9fff9e1
dist-git commit: https://src.fedoraproject.org/rpms/findutils/c/9f5b30bd