[CentOS] /bin/su wont work inside a chroot?

Jason Pyeron jpyeron at pdinc.us
Sun Aug 1 20:46:54 UTC 2010


> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of JohnS
> Sent: Sunday, August 01, 2010 16:18
> To: CentOS mailing list
> Subject: Re: [CentOS] /bin/su wont work inside a chroot?
> 
> 
> On Sun, 2010-08-01 at 16:00 -0400, Jason Pyeron wrote:
> 
> > > Nasty things happen when you build rpms like that.  
> > > See www.owlriver.com , Russ has an article there about it [1].
> > 
> > Agreed. I am hacking together a solution to put in to our 
> mockbuilder. 
> > Needed to have a working subversion 1.6.x in our yum repo by Monday 
> > morning (client deliverable). I have goten everything to work until 
> > subversions make test launches apache as root.... It just 
> produced the 
> > 1st mod_dav_svn-1.6.12 rpm as I was typing this email.
> > 
> > Give me ten minutes I will publish the src.rpms...
> ---
> I would be very skeptical as launching apache as root.  Would 

I did not and could not lauch apache as root, that is why I recompiled the
chroot so I could use my build env as a non-root user.

> like to see that specfile though, you can su in the specfile 
> it self to switch to another user or daemon.  I have an rpm 
> that does just that.
> 

Specfiles herein:

http://client.pdinc.us/subversion-1.6.12-yumrepo/


Please rip them apart.

Known issues:

1. python2.3 does not provide /usr/bin/python (breaks yum until you fix the #!
line)
2. subversion has issues with swig at the moment and no attempt to make the perl
or python parts.
3. subversion makes no attempt to use bdb.
4. the binary subversion-tools rpm depends on the unbilt subversion-perl rpm.
5. subversion build test are slow!

-Jason


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.





More information about the CentOS mailing list