[Bug 1231580] possible corruption in rpm headers
https://bugzilla.suse.com/show_bug.cgi?id=1231580 https://bugzilla.suse.com/show_bug.cgi?id=1231580#c4 --- Comment #4 from Michael Schröder <mls@suse.com> --- I'm pretty sure that this happens because the files are listed twice in the file list. The log file contains: [ 8560s] warning: File listed twice: /usr/lib64/libreoffice/program/libpostgresql-sdbc-impllo.so [ 8560s] warning: File listed twice: /usr/lib64/libreoffice/program/libpostgresql-sdbclo.so [ 8560s] warning: File listed twice: /usr/lib64/libreoffice/program/services/postgresql-sdbc.rdb [ 8560s] warning: File listed twice: /usr/lib64/libreoffice/share/registry/postgresql.xcd I think that this happens if the files are hardlinked for some reason (i.e. the nlink in the inode is > 0). Basically the code checks if the next file has the same name, and if yes, it prints the "file listed twice" warning and skips the file. Later on it does the hardlink detection: if (flp->fl_nlink == 1 || !seenHardLink(&fl->files, flp, &fileid)) { totalFileSize += flp->fl_size; } Seen hardlink checks if some file before the current file has the same dev/ino. Because the file is listed twice, it will return true and not add the size! This is clearly a bug in rpm. So, my guess is that for some builds the file are hardlinked and for some others, they are not. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com