because of wrong path during chroot build ie. this error: ---------------------- mockbuild/usr/lib/debug/usr/lib/libIBM_DnsProviderTooling.so.0.0.0.debug matches Binary file /var/tmp/sblim-1-47.el5-root-mockbuild/usr/lib/debug/usr/lib/libRaToolsSmb.so.0.0.0.debug matches Binary file /var/tmp/sblim-1-47.el5-root-mockbuild/usr/lib/debug/usr/lib/libRaToolsDhcp.so.0.0.0.debug matches Binary file /var/tmp/sblim-1-47.el5-root-mockbuild/usr/lib/debug/usr/lib/libIBM_SmbProviderTooling.so.0.0.0.debug matches Found '/var/tmp/sblim-1-47.el5-root-mockbuild' in installed files; aborting ----------------------
Supported way to rebuild a package in RHEL5 is the use of rpmbuild (which I just tested and works fine with latest SBLIM srpm). As far as I know, also mock isn't supported package and it's only part of EPEL.
i'm just test it with: rpmbuild --rebuild sblim-1-47.el5.src.rpm and got the same result on rhel-5.6: -------------------------- Found '/var/tmp/sblim-1-47.el5-root-robot' in installed files; aborting error: Bad exit status from /var/tmp/rpm-tmp.36772 (%install) --------------------------
Created attachment 480494 [details] rpmbuild output I'm unable to reproduce you problem. # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga) # uname -a Linux ibm-x3655-01.ovirt.rhts.eng.bos.redhat.com 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux # sha256sum sblim-1-47.el5.src.rpm 5ceaf7a5ed4728f1d7eb8d078d924462bb3af81f40ad646769bab2f2e3c4b44f sblim-1-47.el5.src.rpm # rpm -q rpm-build rpm-build-4.4.2.3-22.el5 #rpmbuild --rebuild sblim-1-47.el5.src.rpm &> rpmbuild.log rpmbuild output is attached, the rebuild is successful. Am I missing something?
first of all could you try to build as non root user? imho it's a minimum requirement even at rh, that the package should have to build as non root user. from you build log i'm sure you build as root. and i also sure that you can't build as a non root user (ie. the build will fail).
Created attachment 481387 [details] rpmbuild output - regular user $ uname -a Linux nec-em8.rhts.eng.bos.redhat.com 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux The rest is the same as in previous build (rpmbuild version etc.), this one was successful under regular user. Output attached.
Created attachment 481596 [details] my log so i attach my build log. the only modification i was made to the log to be easier to compare the two files: - replace my username with tuser - remove all .el5 from the log (it seems on your system do not set the %dist variable somehow). the real differences is that your system do _not_ run /usr/lib/rpm/check-buildroot after the build. i don't know why since it's part of rpm-build-4.4.2.3-22.el5 which you also use. and this's the script which find this problem and cause i'm not able to build the rpm. after examine this script it's possible to turn off this script by QA_SKIP_BUILD_ROOT, but imho that's not the real solution.
Adding rpm maintainer to the CC, maybe he knows where's the problem?
do you have redhat-rpm-config installed?
(In reply to comment #8) > do you have redhat-rpm-config installed? Yes, redhat-rpm-config-8.0.45-32.el5.
It looks like this bug had the component incorrectly changed, due to a Bugzilla bug. See bug 693396.
so fix the package back to rpm. exactly the same thing happened with tetex-3.0-33.8.el5_5.6.src.rpm as with sblim.
This isn't a packaging issue, not an rpm bug. Running check-buildroot isn't part of rpm default configuration but if you used rpmdev-setuptree script to create your packaging environment, that adds some extra checks to ~/.rpmmacros: %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot The actual issue here is that sblim apparently has references to the buildroot path in its files, this is typically a rather severe bug.
This is a specific problem caused by having all SBLIM stuff in one source package along with the fact, that there are build dependencies between packages. I'm closing this, because it can be workarounded by not running check-buildroot and there's probably nothing we can do with it. The issue is not present in RHEL6 - there are all SBLIM packages shipped separately.