On Mon, 2009-04-13 at 18:36 -0700, Roderick A. Anderson wrote: > John Alberts wrote: > > Just thought I would update everyone on my progress on getting yum > > working with CentOS 5.3 for vserver. > > I'm sorry to say, the yum 3.2.4 chroot patch does not work on the yum > > 3.2.19-18 rpm. I've never attempted to patch a source tarball and I > > don't know python, but I've spent quite a few hours trying to create a > > patch that will work. There are quite a few differences between the > > versions. Although I was able to create a patch and get a newly built > > rpm installed, I haven't been able to get a working yum. There's > > always some python errors, so I guess my patching skills really suck. > > I may work on this a bit more, but for now, unfortunately, I have > > other things I need to work on. > > > > John > > I just build yum-3.2.19-18.noarch.rpm. > > I don't have a system right now to test it on. If anyone wants to give > it a whirl let me know. I'll email the RPM or if someone has a good > drop point. > > > Otherwise here is the process I used. > > Following (loosely) the instructions at http://linux-vserver.org/Yum-patch > > 1. Downloaded (wget) the src rpm from > > ftp://ftp.pbone.net/mirror/ftp.centos.org/5.3/os/SRPMS/yum-3.2.19-18.el5.centos.src.rpm > > > into /usr/src/redhat/SRPMS > > 2. rpm -i yum-3.2.19-18.el5.centos.src.rpm > > 3. cd /usr/src/SORUCES > > 4. Download (wget) the patch from > > http://svn.linux-vserver.org/svn/util-vserver/trunk/contrib/yum-3.2.19-chroot.patch > > 5. cd /usr/src/redhat/SPEC > > 6. vim yum.spec > and added a line "Patch4: yum-3.2.19-chroot.patch" > right after "Patch3: yum-ia64-multilib.patch (line 20) > and a line "%patch4 -p1" > right after "%patch3 -p1" (line 106) > > 7. rpmbuild -ba yum.spec > > > There was one small hitch. To build on my non-Vserver, very yum/repo > abused, recently updated to CentOS 5.3 workstation I had to install > intltool to get the build to work. > > > \\||/ > Rod I can test it tonight! I was just getting ready to figure out how to build it from SRPMS. I'd love to not have to do that. Send it my way and I'll give it a go! - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan@opensourcedevel.com http://www.spiritualoutreach.com Making Christianity intelligible to secular society