devtoolset-3-binutils SRPM creates different named RPM

Issues related to applications and software problems
Post Reply
shellrie
Posts: 3
Joined: 2017/11/15 13:14:09

devtoolset-3-binutils SRPM creates different named RPM

Post by shellrie » 2017/11/15 13:35:52

I'm running CentOS 6.9 on i386/i686 (32-bit) and I'm building some of the devtoolset-3 packages located in the valt.centos.org site, since the devtoolset-3 packages are not prebuilt for i386/i686.

when I run rpmbuild --rebuild devtoolset-3-binutils-2.24-18.el6.src.rpm, it successfully builds the SRPM and generates three RPM files named: binutils-2.24-18.el6.i686.rpm, binutils-debuginfo-2.24-18.el6.i686.rpm, and binutils-devel-2.24-18.el6.i686.rpm. The problem is that when I try to build other devtool-3 packages (like devtoolset-3-gcc-4.9.2-6.2.el6.src.rpm), it fails because it needs devtoolset-3-binutils >= 2.22.52.0.1 to compile.

For some reason, when I build devtoolset-3-binutils-2.24-18.el6.src.rpm it builds and names the RPM files starting with binutils-2.24 and not devtoolset-3-binutils-2.24. I've built some of the other devtoolset-3 SRPM files and they successfully build to devtoolset-3 named RPM files (for example, devtoolset-3-3.1-12.el6.src.rpm successfully built to the devtoolset-3-3.1-12.el6.i686.rpm file). I also looked at the mirror.centos.org for CentOS 6.9 for x86_64, and there are prebuilt RPMs for devtoolset-3 binutils (devtoolset-3-binutils-2.24-18.el6.x86_64.rpm). This suggests to me that there is a way to build this package for the devtoolset-3 group.

Bottom line is, how to I correctly build devtoolset-3-binutils-2.24-18.el6.src.rpm so that it creates the devtoolset-3 named RPM files? Any info/help is greatly appreciated.

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: devtoolset-3-binutils SRPM creates different named RPM

Post by chemal » 2017/11/15 18:40:33

A 32-bit rebuild of devtoolset-3 and also of all later devtoolsets can be found at Copr:

https://copr.fedorainfracloud.org/coprs ... toolset-3/

See also https://www.softwarecollections.org/en/docs/guide/.

shellrie
Posts: 3
Joined: 2017/11/15 13:14:09

Re: devtoolset-3-binutils SRPM creates different named RPM

Post by shellrie » 2017/11/15 19:30:08

Thank you chemal. Your link to the COPR repo should really help. I realized I need to learn more about the RHEL/CentOS software collections and how they are built and managed, so thanks as well for the link to the site. Take care!

shellrie
Posts: 3
Joined: 2017/11/15 13:14:09

Re: devtoolset-3-binutils SRPM creates different named RPM

Post by shellrie » 2017/11/16 19:27:14

To provide a more full answer to my own question, when you build packages that are part of a software collection you have to specify the scl name. For example, to build the devtoolset-3-binutils-2.24-18.el6.src.rpm file, I used the following to get it to build correctly for devtoolset-3:

Code: Select all

$rpmbuild --rebuild devtoolset-3-binutils-2.24-18.el6.src.rpm --define 'scl devtoolset-3'
The above command was able to build it correctly. I was leaving off the --define portion which is what was causing my issue.

Post Reply