From b1eac7d0303772443a26d86a6acac361a5e08d03 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sep 18 2017 14:03:40 +0000 Subject: ignore inodes when running rpmdiff. https://koji.fedoraproject.org/koji/taskinfo?taskID=21649395 failed in the rpmdiff stage with BuildError: The following noarch package built differently on different architectures: python3-ipaserver-4.6.0-1.fc27.noarch.rpm rpmdiff output was: error: cannot open Packages index using db5 - Permission denied (13) error: cannot open Packages database in /var/lib/rpm error: cannot open Packages database in /var/lib/rpm ....N...... /usr/lib/python3.6/site-packages/ipaserver/install/__pycache__/ipa_pkinit_manage.cpython-36.opt-1.pyc ....N...... /usr/lib/python3.6/site-packages/ipaserver/install/__pycache__/ipa_pkinit_manage.cpython-36.pyc on investigation the files on aarch64 and ppc64 were using 2 inodes on x86_64, i686, armv7hl, ppc64le, and s390x using 1 inode. if I manually run the diff with --ignore S changed to N the diff passes given that we already ignore sizes we should ignore inodes used also Signed-off-by: Dennis Gilmore --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 818fe65..668b6e7 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -8369,7 +8369,7 @@ def rpmdiff(basepath, rpmlist): # embedded dates or other insignificant differences) args = ['/usr/libexec/koji-hub/rpmdiff', '--ignore', 'S', '--ignore', '5', - '--ignore', 'T', + '--ignore', 'T', '--ignore', 'N', os.path.join(basepath, first_rpm), os.path.join(basepath, other_rpm)] proc = subprocess.Popen(args,