Bug 1960792

Summary: rpmbuild fails at the test stage
Product: [Fedora] Fedora Reporter: Paweł <pmarciniak>
Component: coreutilsAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: admiller, jamartis, jarodwilson, kdudka, kzak, ooprala, ovasik, p, sebastian.kisela, svashisht
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: coreutils-8.32-26.fc35 coreutils-8.32-26.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-19 01:22:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paweł 2021-05-14 22:19:10 UTC
Description of problem:
When building a package, one of the tests fails

Version-Release number of selected component (if applicable):
coreutils-8.32-24.fc34.src.rpm

How reproducible:
rpmbuild -bb coreutils.spec
or 
rpmbuild --rebuild coreutils-8.32-24.fc34.src.rpm

Actual results:
Building a package ends with a failure.

FAIL: tests/ls/stat-free-color.sh

============================================================================
Testsuite summary for GNU coreutils 8.32
============================================================================
# TOTAL: 626
# PASS:  515
# SKIP:  110
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0


Additional info:

FAIL: tests/ls/stat-free-color
==============================

++ initial_cwd_=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate gt-stat-free-color.sh.XXXX
+++ case $# in
+++ destdir_=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate
+++ template_=gt-stat-free-color.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
+++ case $d in
+++ :
+++ test -d /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
++++ ls -dgo /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
+++ perms='drwx------. 2 40 May 14 23:40 /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl'
+++ case $perms in
+++ :
+++ echo /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
+++ return
++ test_dir_=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
++ cd /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/./src
+ case $abs_path_dir_ in
+ PATH=/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/./src:/home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/src:/usr/lib64/qt-3.3/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
+ create_exe_shims_ /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ ls
+ require_built_ ls
+ skip_=no
+ for i in "$@"
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in $*
+ env ls --version
ls (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ require_strace_ stat
+ test 1 = 1
+ strace -V
+ strace -qe stat echo
+ strace -o log-help ls --help
++ wc -l
+ n_lines_help=90
+ rm -f log-help
+ test 90 = 0
+ test 90 = 1
+ require_dirent_d_type_
+ python
+ python /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/../tests/d_type-check
+ stats=stat
+ other_stats='statx lstat stat64 lstat64 newfstatat fstatat64'
+ for stat in $other_stats
+ strace -qe statx true
+ stats=stat,statx
+ for stat in $other_stats
+ strace -qe lstat true
+ stats=stat,statx,lstat
+ for stat in $other_stats
+ strace -qe stat64 true
+ stats=stat,statx,lstat,stat64
+ for stat in $other_stats
+ strace -qe lstat64 true
+ stats=stat,statx,lstat,stat64,lstat64
+ for stat in $other_stats
+ strace -qe newfstatat true
+ stats=stat,statx,lstat,stat64,lstat64,newfstatat
+ for stat in $other_stats
+ strace -qe fstatat64 true
+ stats=stat,statx,lstat,stat64,lstat64,newfstatat,fstatat64
+ cat
++ dircolors -b color-without-stat
+ eval 'LS_COLORS='\''rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'\'';' export LS_COLORS
++ LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'
++ export LS_COLORS
+ mkdir d
+ strace -q -o log1 -e stat,statx,lstat,stat64,lstat64,newfstatat,fstatat64 ls --color=always d
++ wc -l
++ grep -vF +++ log1
+ n_stat1=8
+ test 8 = 0
+ mkdir d/subdir
+ touch d/regf
+ ln d/regf d/hlink
+ ln -s regf d/slink
+ ln -s nowhere d/dangle
+ strace -q -o log2 -e stat,statx,lstat,stat64,lstat64,newfstatat,fstatat64 ls --color=always d
dangle
hlink
regf
slink
subdir
++ grep -vF +++ log2
++ wc -l
+ n_stat2=9
+ test 8 = 9
+ fail=1
+ head -n30 log1 log2
==> log1 <==
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=161568, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=171392, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=41056, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1905528, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=614584, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=25152, ...}, AT_EMPTY_PATH) = 0
statx(AT_FDCWD, "d", AT_STATX_SYNC_AS_STAT, STATX_MODE, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0755, stx_size=40, ...}) = 0
newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=40, ...}, AT_EMPTY_PATH) = 0
+++ exited with 0 +++

==> log2 <==
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=161568, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=171392, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=41056, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1905528, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=614584, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=25152, ...}, AT_EMPTY_PATH) = 0
statx(AT_FDCWD, "d", AT_STATX_SYNC_AS_STAT, STATX_MODE, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0755, stx_size=140, ...}) = 0
newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=140, ...}, AT_EMPTY_PATH) = 0
newfstatat(1, "", {st_mode=S_IFREG|0644, st_size=4505, ...}, AT_EMPTY_PATH) = 0
+++ exited with 0 +++
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate
+ chmod -R u+rwx /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
+ rm -rf /home/pawel/rpmbuild/BUILD/coreutils-8.32/separate/gt-stat-free-color.sh.IbCl
+ exit 1
FAIL tests/ls/stat-free-color.sh (exit status: 1)

Comment 1 Pádraig Brady 2021-05-14 23:09:16 UTC
Should be fixed by https://github.com/coreutils/coreutils/commit/b709109
(add a .patch suffix to download)

Comment 2 Paweł 2021-05-15 06:33:13 UTC
(In reply to Pádraig Brady from comment #1)
> Should be fixed by https://github.com/coreutils/coreutils/commit/b709109

Thank you. I've added patch to the spec file and now builds without a problem.

Comment 3 Kamil Dudka 2021-05-15 16:10:33 UTC
Thank you for reporting it!  I will pick the fix from upstream.

Comment 5 Fedora Update System 2021-05-17 18:40:05 UTC
FEDORA-2021-635af78510 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-635af78510

Comment 6 Fedora Update System 2021-05-18 01:58:42 UTC
FEDORA-2021-635af78510 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-635af78510`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-635af78510

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-05-19 01:22:03 UTC
FEDORA-2021-635af78510 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.