Bug 1384947

Summary: Can't rebuild devtoolset-6-gdb.src.rpm without devtoolset-6-build.rpm installed
Product: Red Hat Developer Toolset Reporter: Martin Cermak <mcermak>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Arjun Shankar <ashankar>
Severity: low Docs Contact:
Priority: low    
Version: DTS 6.0 RHEL 6CC: ashankar, jan.kratochvil, kanderso, mcermak, mnewsome, ohudlick, palves
Target Milestone: alpha   
Target Release: 6.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-7.12-26.fc25 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: 1373824 Environment:
Last Closed: 2017-04-26 09:47:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1373824    
Bug Blocks:    

Description Martin Cermak 2016-10-14 12:12:12 UTC
On RHEL6, rebuild of devtoolset-6-gdb-7.12-24.el6.src.rpm fails thusly:

=======
11674-+ ln -s -r /usr/src/redhat/BUILDROOT/gdb-7.12-24.el6.x86_64/usr/libexec/gdb /usr/src/redhat/BUILDROOT/gdb-7.12-24.el6.x86_64/usr/bin/gdb
11675-ln: invalid option -- 'r'
11676-Try `ln --help' for more information.
11677:error: Bad exit status from /var/tmp/rpm-tmp.aiG3x3 (%install)
=======

No biggie, might be worth fixing for dts-6.1 though. On rhel-6 we have coreutils-8.4-43.el6.x86_64.

Comment 1 Jan Kratochvil 2016-10-14 12:27:37 UTC
I did hit this problem but then I realized I do not have devtoolset-6-build.rpm installed.  I do not know what devtoolset-6-gdb.src should really try to build without devtoolset-6-build, it tries to make a /usr/bin/gdb replacement but this spec-build-code-path is not really tested/supported.

Comment 2 Martin Cermak 2016-10-14 12:35:36 UTC
Exactly, just wanted to add this note.  Sometimes it is convenient to build base rhel package out of a scl srpm, but not a standard thing definitely.  Up to your consideration.

Comment 3 Jan Kratochvil 2016-10-14 12:57:25 UTC
OK, I can fix it. It can make it in if there will be a DTS-6.0 respin.

Comment 7 errata-xmlrpc 2017-04-26 09:47:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1151