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

2010-10-29 Thread Joe Flowers
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 install 32-bit software on a 32-bit SuSE machine. Any ideas o

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

Re: Creating an RPM to install a daemon

2010-10-29 Thread devzero2000
On Thu, Oct 28, 2010 at 5:10 PM, Joe Flowers wrote: > Hello Everyone, > > I am trying to create an RPM that will install a daemon "correctly", but > I'm not sure if or where I should put the command: > > chkconfig --level 345 /etc/rc.d/mydaemon on > > > Should this line go somewhere in the Makefil

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 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 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 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 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: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: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