Subject: Re: [vserver] Building on CentOS 6.2
From: Phil Daws <uxbod@splatnix.net>
Date: Mon, 30 Jan 2012 16:39:44 +0000 (GMT)

I finally have a complete patch set that applies cleanly but when I try and build a
brand new vserver I get the following error:

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 276, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 129, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 434, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 111, in _getTsInfo
    self._tsInfo.setDatabases(self.rpmdb, pkgSack)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 890, in <lambda>
    rpmdb = property(fget=lambda self: self._getRpmDB(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 544, in _getRpmDB
    persistdir=self.conf.persistdir)
  File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 218, in __init__
    version_path = os.path.normpath(cachedir + '/version')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Is there anybody who wishes to try and help resolve this with me please ? Would love
to get it working on CentOS 6.
-- 
Thanks, Phil

----- Original Message -----
> With thanks to Herbert I have the correct 'diff' command now :) The
> problem is I have tried to create the patch diff for yum-3.2.29 and
> most are applying nicely apart from the first one on cli.py which
> you can see at http://pastebin.com/LXzpHJ6k
> 
> When I apply it I get the following error:
> 
> patching file cli.py
> Hunk #1 FAILED at 1531.
> Hunk #2 succeeded at 1578 (offset 184 lines).
> 1 out of 2 hunks FAILED -- saving rejects to file cli.py.rej
> 
> Any ideas what could be causing the problem please as I cannot see it
> :(
> --
> Thanks, Phil
> 
> ----- Original Message -----
> > Any help with this would be gratefully appreciated please :)
> > --
> > Thanks, Phil
> > 
> > ----- Original Message -----
> > > Hi,
> > > 
> > > I am trying to roll my own patch based on 3.2.27 but what 'diff'
> > > options should I use so that I am able to submit it back to you
> > > in
> > > the correct format ?
> > > --
> > > Thanks, Phil
> > > 
> > > ----- Original Message -----
> > > > Thanks Herbert.
> > > > 
> > > > Does anybody have a yum chroot patch for CentOS 6.2 ? The yum
> > > > version
> > > > is:
> > > > 
> > > > Installed: yum-3.2.29-22.el6.centos.noarch at 2012-01-16 15:07
> > > > 
> > > > and on
> > > > http://svn.linux-vserver.org/svn/util-vserver/trunk/contrib/
> > > > 
> > > > is only 3.2.27 or should I attempt to create my own from the
> > > > 3.2.27
> > > > one ?
> > > > --
> > > > Thanks, Phil
> > > > 
> > > > ----- Original Message -----
> > > > > On Tue, Jan 17, 2012 at 11:31:52AM +0000, --[ UxBoD ]--
> > > > > wrote:
> > > > > > Hello all,
> > > > > 
> > > > > > I have successfully built vs2.3.2.1 against the 3.0.16
> > > > > > kernel
> > > > > > and have now turned my attention to util-vserver.
> > > > > > I presume one should use the latest pre-release version ?
> > > > > 
> > > > > correct, 0.30.216-pre3004 is probably your best bet.
> > > > > 
> > > > > HTH,
> > > > > Herbert
> > > > > 
> > > > > > --
> > > > > > Thanks, Phil
> > > > > 
> > > > > 
> > > > 
> > > 
> > 
>