Mister IT Guru
2011-Jan-13 10:25 UTC
[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?
At the risk of sounding like an newbie, is is possible to build the RPMS for all architectures on the same box at the same time? I would really like to automate this, so that I can keep track of the RPMS's and build them into my own future repo. (That's another project, I'm sure I'll come to the list for that one!) -- The Solo System Admin - Follow me - I follow you http://solosysad.blogspot.com/ Latest Entry - Smooth Sailing with CentOS -- Mister IT Guru At Gmx Dot Com
mahmoud mansy
2011-Jan-13 10:39 UTC
[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?
i think u can do that with virtuals? On Thu, Jan 13, 2011 at 12:25 PM, Mister IT Guru <misteritguru at gmx.com>wrote:> At the risk of sounding like an newbie, is is possible to build the RPMS > for all architectures on the same box at the same time? I would really > like to automate this, so that I can keep track of the RPMS's and build > them into my own future repo. (That's another project, I'm sure I'll > come to the list for that one!) > > -- > The Solo System Admin - Follow me - I follow you > http://solosysad.blogspot.com/ > Latest Entry - Smooth Sailing with CentOS > -- > Mister IT Guru At Gmx Dot Com > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110113/18def64e/attachment-0002.html>
JohnS
2011-Jan-13 12:12 UTC
[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?
On Thu, 2011-01-13 at 10:25 +0000, Mister IT Guru wrote:> At the risk of sounding like an newbie, is is possible to build the RPMS > for all architectures on the same box at the same time?That would be dependent upon your build environment and how you set it up. As in a mock based chroot or a Non-Root build system along with cross-compiler tools etc. Takes a lot of planing to go along with it also. For the 3 arches you want they could all be done under mock in a x86_64 environment. Under Non-Root x86_64 Multilib arch machine can be done also with great care in how you choose your devel packages. Automation could be done with a wrapper script setup, really easy to do. Sometimes you just can not automate every part of it so I would not expect that. You would need to do manual checks on the outcome of the srpm and the binary or build a unit test framework. John
Nico Kadel-Garcia
2011-Jan-13 12:26 UTC
[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?
On Thu, Jan 13, 2011 at 5:25 AM, Mister IT Guru <misteritguru at gmx.com> wrote:> At the risk of sounding like an newbie, is is possible to build the RPMS > for all architectures on the same box at the same time? I would really > like to automate this, so that I can keep track of the RPMS's and build > them into my own future repo. (That's another project, I'm sure I'll > come to the list for that one!)*IF* your box is an x86_64 box, you can do it. This is usually done with "mock", by using chroot cages with specific layouts and automatic deployment of relevant libraries.
Kwan Lowe
2011-Jan-13 13:20 UTC
[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?
On Thu, Jan 13, 2011 at 5:25 AM, Mister IT Guru <misteritguru at gmx.com> wrote:> At the risk of sounding like an newbie, is is possible to build the RPMS > for all architectures on the same box at the same time? I would really > like to automate this, so that I can keep track of the RPMS's and build > them into my own future repo. (That's another project, I'm sure I'll > come to the list for that one!) >Shouldn't be any problems doing it. With the right environment variables you can build any architecture on any other. I.e., I've built ARM and MIPS under x86 before. Tricky, but certainly doable.
Rajagopal Swaminathan
2011-Jan-13 17:12 UTC
[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?
Greetings, On 1/13/11, Mister IT Guru <misteritguru at gmx.com> wrote:> At the risk of sounding like an newbie, is is possible to build the RPMS > for all architectures on the same box at the same time?Not sure, but check out q-emu which emulates many cpu arch . And add a dash of kvm -qcow lvm disk magic and voila! we have a multi-arch build cloud Just thinking... Regards, Rajagopal