Description of problem: ======================== REBUILD of glusterfs-3.7.9-6.el7rhgs.src.rpm for x86_64 is failing Errata: https://errata.devel.redhat.com/advisory/23052 Rebuild failure message: http://nest.test.redhat.com/mnt/qa/scratch/dhcp-124-233/2016:23052/tps/tps-srpmtest.html Error message: ============== <start> Rebuild command: x86_64 rpmbuild --rebuild --define "dist .el7rhgs" --define '_topdir /usr/src/redhat' --target=x86_64 --rcfile /tmp/tps_rpmrc_SxS7kv:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc /mnt/redhat/brewroot/packages/glusterfs/3.7.9/6.el7rhgs/src/glusterfs-3.7.9-6.el7rhgs.src.rpm doRpmCommand: x86_64 rpmbuild --rebuild --define "dist .el7rhgs" --define '_topdir /usr/src/redhat' --target=x86_64 --rcfile /tmp/tps_rpmrc_SxS7kv:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc /mnt/redhat/brewroot/packages/glusterfs/3.7.9/6.el7rhgs/src/glusterfs-3.7.9-6.el7rhgs.src.rpm &> glusterfs-3.7.9-6.el7rhgs.src.rpm-x86_64-rebuild.log doRpmCommand-result (256): FAILED to rebuild /mnt/redhat/brewroot/packages/glusterfs/3.7.9/6.el7rhgs/src/glusterfs-3.7.9-6.el7rhgs.src.rpm -- return code 256 REBUILD: FAIL for glusterfs-3.7.9-6.el7rhgs.src.rpm BUILDLOG: glusterfs-3.7.9-6.el7rhgs.src.rpm-x86_64-rebuild.log contains full details. Reports from make and rpmbuild, with line numbers: 3861-Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libgfrpc.so.0()(64bit) libgfxdr.so.0()(64bit) libglib-2.0.so.0()(64bit) libglusterfs.so.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libuuid.so.1()(64bit) libuuid.so.1(UUID_1.0)(64bit) libz.so.1()(64bit) rtld(GNU_HASH) 3862-Processing files: glusterfs-debuginfo-3.7.9-6.el7rhgs.x86_64 3863-Provides: glusterfs-debuginfo = 3.7.9-6.el7rhgs glusterfs-debuginfo(x86-64) = 3.7.9-6.el7rhgs 3864-Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 3865-Checking for unpackaged file(s): /usr/lib/rpm/check-files /usr/src/redhat/BUILDROOT/glusterfs-3.7.9-6.el7rhgs.x86_64 3866:error: Installed (but unpackaged) file(s) found: 3867- /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyc 3868- /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyo 3869- 3870- 3871-RPM build errors: Last 20 lines of Build Log: group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root Installed (but unpackaged) file(s) found: /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyc /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyo =============== Differences in ./configure output saved to: glusterfs-3.7.9-6.el7rhgs.src.rpm-x86_64-autoconf.txt end test at Mon May 30 07:21:24 CEST 2016 on dhcp-124-233.lab.eng.brq.redhat.com TPSRESULT: REBUILD: glusterfs-3.7.9-6.el7rhgs.src.rpm for x86_64 Returning: FAIL <end> Version-Release number of selected component (if applicable): ============================================================ glusterfs-3.7.9-6. How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
I've run an rpmbuild --rebuild on a freshly installed RHEL 7.2 virtual machine on my laptop having rpm-build-4.11.3-17.el7.x86_64 installed. The RPM Build could successfully complete without any errors being reported for unpackaged files. Here's the command used to rebuild RPMs using the source RPM: $ x86_64 rpmbuild --rebuild --target=x86_64 --define 'dist .el7rhgs' /home/blr/mchangir/Downloads/glusterfs-3.7.9-7.el7rhgs.src.rpm Here's a list of the S57glusterfind-delete-post* files that got into the glusterfs-server RPM: [root@rhel7-2 ~]# rpm -qlp /root/rpmbuild/RPMS/x86_64/glusterfs-server-3.7.9-7.el7rhgs.x86_64.rpm | grep S57 /usr/libexec/glusterfs/glusterfind/S57glusterfind-delete-post.py /usr/libexec/glusterfs/glusterfind/S57glusterfind-delete-post.pyc /usr/libexec/glusterfs/glusterfind/S57glusterfind-delete-post.pyo /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py ----- My recommendation would be to reinstall the QA system with RHEL 7.2 with Gluster build dependencies and then try to rebuild.
Thinking more on it, an rpmbuild after a system reboot could be attempted once before resorting to a system reinstall.
The rebuild is now successful even *WITHOUT* a system reboot. I did the following steps to nudge the system: # cp /usr/lib/rpm/brp-python-bytecompile /root # rm /usr/lib/rpm/brp-python-bytecompile # cp /root/brp-python-bytecompile /usr/lib/rpm ... and then successfully built the RPMs with # x86_64 rpmbuild --rebuild --define "dist .el7rhgs" --define '_topdir /usr/src/redhat' --target=x86_64 /mnt/redhat/brewroot/packages/glusterfs/3.7.9/6.el7rhgs/src/glusterfs-3.7.9-6.el7rhgs.src.rpm &> glusterfs-3.7.9-6.el7rhgs.src.rpm-x86_64-rebuild.log