My test / development host runs CentOS-5.x x86_64. There I have successfully created an rpm for GiT-1.6.1-1 for x86_64. Now I would like to build the same rpm package for CentOS-5.x i386, but on the x86_64 machine. Is this even possible? If so, are there any resources that someone can refer me too that explains how? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
James B. Byrne wrote:> My test / development host runs CentOS-5.x x86_64. There I have > successfully created an rpm for GiT-1.6.1-1 for x86_64. Now I would > like to build the same rpm package for CentOS-5.x i386, but on the > x86_64 machine. > > Is this even possible? If so, are there any resources that someone > can refer me too that explains how? > >Yes. In fact, I suspect the i386 rpm's for CentOS are built on x86_64 The easy way - rpmbuild --target="i386" foo.spec You will need all the 32-bit devel libraries. The proper way would be to install mock (the version in EPEL is best) and use that.
On 03/31/09 09:44, James B. Byrne enlightened us:> My test / development host runs CentOS-5.x x86_64. There I have > successfully created an rpm for GiT-1.6.1-1 for x86_64. Now I would > like to build the same rpm package for CentOS-5.x i386, but on the > x86_64 machine. > > Is this even possible? If so, are there any resources that someone > can refer me too that explains how? >https://fedoraproject.org/wiki/Projects/Mock -- Matt Hyclak Systems and Operations Office of Information Technology Ohio University (740) 593-1222 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090331/e687e298/attachment-0003.sig>
On Tue, Mar 31, 2009, James B. Byrne wrote:>My test / development host runs CentOS-5.x x86_64. There I have >successfully created an rpm for GiT-1.6.1-1 for x86_64. Now I would >like to build the same rpm package for CentOS-5.x i386, but on the >x86_64 machine. > >Is this even possible? If so, are there any resources that someone >can refer me too that explains how?We do this sort of thing using the free VMware server with VMs for the appropriate 32-bit Linux, Solaris, FreeBSD, etc. VMs are particularly useful in development as it is very easy to take a snapshot, experiment, and revert back to the snapshot if things go Horribly Wrong(tm). Bill -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 I have no reason to suppose that he, who would take away my Liberty, would not when he had me in his Power, take away everything else. John Locke
Thanks for the pointers on cross building rpms. I have downloaded mock from epel and will take a look at that shortly. For the moment however, I am working on a straight x86_64 build of ruby-1.9.1-1 and I am running into this error: checking for nroff... /usr/bin/nroff creating config.h configure: creating ./config.status config.status: creating Makefile + %make /var/tmp/rpm-tmp.57843: line 58: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.57843 (%build) I cannot fathom what the foreground call is supposed to accomplish or why it is happening. Can anyone nudge me towards an online reference where I might discover how to interpret this? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3