Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread Jeff Johnson
On Oct 29, 2010, at 10:53 AM, devzero2000 wrote: > > Sure. It was only an little observation. Sorry if not strictly related. > > NP. Getting pseudo wired into rpmio, and/or using mount -bind, or just handling the +/- chroot prefix directly in RPM (all the wrapped syscall intercepts exist fo

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread devzero2000
On Fri, Oct 29, 2010 at 4:20 PM, Jeff Johnson wrote: > > On Oct 29, 2010, at 10:11 AM, devzero2000 wrote: > > On Fri, Oct 29, 2010 at 4:03 PM, Jeff Johnson wrote: > >> That does need root access to execute chrott(2). >> > Or you can use pam_chroot > http://www.debian.org/doc/manuals/securing-d

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread Jeff Johnson
On Oct 29, 2010, at 10:11 AM, devzero2000 wrote: > On Fri, Oct 29, 2010 at 4:03 PM, Jeff Johnson wrote: > That does need root access to execute chrott(2). > Or you can use pam_chroot > http://www.debian.org/doc/manuals/securing-debian-howto/ap-chroot-ssh-env.en.html > without being a root user

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread devzero2000
On Fri, Oct 29, 2010 at 4:03 PM, Jeff Johnson wrote: > That does need root access to execute chrott(2). > Or you can use pam_chroot http://www.debian.org/doc/manuals/securing-debian-howto/ap-chroot-ssh-env.en.htmlwithout being a root user. Regards > > 73 de Jeff > __

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread Jeff Johnson
On Oct 29, 2010, at 9:07 AM, Joe Flowers wrote: > Hello again, > > I would like to be able to create a 32-bit RPM (with no 64-bit library > dependencies) on a 64-bit machine. > > I have a 64-bit, SuSE development machine, and I would like to create an RPM > on this 64-bit machine that will in

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread R P Herrold
On Fri, 29 Oct 2010, Matthew Dawkins wrote: On Fri, Oct 29, 2010 at 7:07 AM, Joe Flowers wrote: Joe, I use a 32bit chroot to build all my 32bit rpms along side the 64bit rpms. You will also need to use something like "linux32 rpmbuild -ba pkgname.spec" to trick some packages that check uname.

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread devzero2000
It depends if your package use autoconf,automake,libtool or not. BTW, the "standard" way is setarch i386 rpmbuild --target=i386 --rebuild pippo.src.rpm, or better use an automated tool that do this as mock, for examplehttp://fedoraproject.org/wiki/Projects/Mock.

Re: Building a 32-bit RPM on a 64-bit machine?

2010-10-29 Thread Matthew Dawkins
On Fri, Oct 29, 2010 at 7:07 AM, Joe Flowers wrote: > Hello again, > > I would like to be able to create a 32-bit RPM (with no 64-bit library > dependencies) on a 64-bit machine. > > I have a 64-bit, SuSE development machine, and I would like to create an > RPM on this 64-bit machine that will ins