rpmlint icon indicating copy to clipboard operation
rpmlint copied to clipboard

rpmdiff reports changed size but unchanged checksum

Open pavlix opened this issue 8 years ago • 4 comments

Maybe I just misunderstood something but how can rpmdiff report difference in size and not difference in checksum for so many files?

$ rpmdiff -i T /var/tmp/build-root/standard-x86_64/home/abuild/rpmbuild/RPMS/x86_64/coreutils-8.25-0.x86_64.rpm binaries/coreutils-8.25-4.1.x86_64.rpm 
removed     PROVIDES coreutils(x86-64) = 8.25-0
added       PROVIDES coreutils(x86-64) = 8.25-4.1
..5........ /usr/bin/arch
..5........ /usr/bin/dir
..5........ /usr/bin/ls
..5........ /usr/bin/uname
..5........ /usr/bin/vdir
S.......... /usr/lib64/coreutils
S.......... /usr/share/doc/packages/coreutils
S.......... /usr/share/locale/be/LC_TIME
S.......... /usr/share/locale/bg/LC_TIME
S.......... /usr/share/locale/ca/LC_TIME
S.......... /usr/share/locale/cs/LC_TIME
S.......... /usr/share/locale/da/LC_TIME
S.......... /usr/share/locale/de/LC_TIME
S.......... /usr/share/locale/el/LC_TIME
S.......... /usr/share/locale/eo/LC_TIME
S.......... /usr/share/locale/es/LC_TIME
S.......... /usr/share/locale/et/LC_TIME
S.......... /usr/share/locale/eu/LC_TIME
S.......... /usr/share/locale/fi/LC_TIME
S.......... /usr/share/locale/fr/LC_TIME
S.......... /usr/share/locale/ga/LC_TIME
S.......... /usr/share/locale/gl/LC_TIME
S.......... /usr/share/locale/hr/LC_TIME
S.......... /usr/share/locale/hu/LC_TIME
S.......... /usr/share/locale/ia/LC_TIME
S.......... /usr/share/locale/id/LC_TIME
S.......... /usr/share/locale/it/LC_TIME
S.......... /usr/share/locale/ja/LC_TIME
S.......... /usr/share/locale/kk/LC_TIME
S.......... /usr/share/locale/ko/LC_TIME
S.......... /usr/share/locale/lt/LC_TIME
S.......... /usr/share/locale/nb/LC_TIME
S.......... /usr/share/locale/nl/LC_TIME
S.......... /usr/share/locale/pl/LC_TIME
S.......... /usr/share/locale/pt/LC_TIME
S.......... /usr/share/locale/pt_BR/LC_TIME
S.......... /usr/share/locale/ro/LC_TIME
S.......... /usr/share/locale/ru/LC_TIME
S.......... /usr/share/locale/sk/LC_TIME
S.......... /usr/share/locale/sl/LC_TIME
S.......... /usr/share/locale/sr/LC_TIME
S.......... /usr/share/locale/sv/LC_TIME
S.......... /usr/share/locale/tr/LC_TIME
S.......... /usr/share/locale/uk/LC_TIME
S.......... /usr/share/locale/vi/LC_TIME
S.......... /usr/share/locale/zh_CN/LC_TIME
S.......... /usr/share/locale/zh_TW/LC_TIME

pavlix avatar Nov 17 '16 20:11 pavlix

I don't know offhand, nor could I manage to reproduce in a quick test. If you have the rpms for which this happens somewhere available for download, I can have a closer look.

scop avatar Nov 21 '16 15:11 scop

So these are directories, right? I've seen that on some.filesystems already as they report not the normal blocksize for disk usage

dirkmueller avatar Nov 21 '16 15:11 dirkmueller

@scop Given the information from @dirkmueller I guess I don't need to upload them...

@dirkmueller Does it mean the RPMs store the size of directories even though it's of zero significance? Should that be changed or should rpmdiff just ignore it?

pavlix avatar Nov 22 '16 21:11 pavlix

Another question is whether it shoudln't at least mark directories so that you know what types of objects it compares.

pavlix avatar Nov 22 '16 21:11 pavlix