FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 03-13-2009, 06:21 AM
陈鲍孜
 
Default epel mock-0.9.14 problem

hello, I was trying mock-0.9.14 in EPEL on CentOS 5.2. It seems*it has got*something wrong. Since there is no buildsys-build package in CentOS repository, it reports the error "Could not find useradd in chroot, maybe the install failed?". So I add those buildsys-build, buildsys-macro and rpmdevtools packages into the repository, and it results:



ERROR: Command failed:
*# /usr/bin/yum --installroot /var/lib/mock/centos/root/* install buildsys-build
Traceback (most recent call last):
* File "/usr/bin/yum", line 29, in ?
*** yummain.user_main(sys.argv[1:], exit_code=True)

* File "/usr/share/yum-cli/yummain.py", line 229, in user_main
*** errcode = main(args)
* File "/usr/share/yum-cli/yummain.py", line 145, in main
*** (result, resultmsgs) = base.buildTransaction()

* File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 647, in buildTransaction
*** (rescode, restring) = self.resolveDeps()
* File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 696, in resolveDeps

*** CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
* File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 779, in _resolveRequires
*** thisneeds = self._checkInstall(txmbr)

* File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 851, in _checkInstall
*** provs = self.tsInfo.getProvides(*req)
* File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 432, in getProvides

*** result.update(self.getNewProvides(name, flag, version))
* File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 414, in getNewProvides
*** for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():

* File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 300, in getProvides
*** return self._computeAggregateDictResult("getProvides", name, flags, version)
* File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 470, in _computeAggregateDictResult

*** sackResult = apply(method, args)
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 861, in getProvides
*** return self._search("provides", name, flags, version)
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc

*** return func(*args, **kwargs)
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 837, in _search
*** for pkg in self.searchFiles(name, strict=True):
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc

*** return func(*args, **kwargs)
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586, in searchFiles
*** self._sql_pkgKey2po(rep, cur, pkgs)
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470, in _sql_pkgKey2po

*** pkg = self._packageByKey(repo, ob['pkgKey'])
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413, in _packageByKey
*** po = self.pc(repo, cur.fetchone())
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in __init__

*** self._read_db_obj(db_obj)
* File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in _read_db_obj
*** setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object



--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 
Old 03-13-2009, 10:14 AM
Jitesh Shah
 
Default epel mock-0.9.14 problem

I suppose the "useradd" binary is in shadow-utils package? Try including
the shadow-utils package in the build group.

Jitesh


On Fri, 2009-03-13 at 15:21 +0800, 陈鲍* wrote:
> hello, I was trying mock-0.9.14 in EPEL on CentOS 5.2. It seems it has
> got something wrong. Since there is no buildsys-build package in
> CentOS repository, it reports the error "Could not find useradd in
> chroot, maybe the install failed?". So I add those buildsys-build,
> buildsys-macro and rpmdevtools packages into the repository, and it
> results:
>
> ERROR: Command failed:
> # /usr/bin/yum --installroot /var/lib/mock/centos/root/ install
> buildsys-build
> Traceback (most recent call last):
> File "/usr/bin/yum", line 29, in ?
> yummain.user_main(sys.argv[1:], exit_code=True)
> File "/usr/share/yum-cli/yummain.py", line 229, in user_main
> errcode = main(args)
> File "/usr/share/yum-cli/yummain.py", line 145, in main
> (result, resultmsgs) = base.buildTransaction()
> File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 647,
> in buildTransaction
> (rescode, restring) = self.resolveDeps()
> File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 696,
> in resolveDeps
> CheckDeps, checkinstalls, checkremoves, missing =
> self._resolveRequires(errors)
> File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 779,
> in _resolveRequires
> thisneeds = self._checkInstall(txmbr)
> File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 851,
> in _checkInstall
> provs = self.tsInfo.getProvides(*req)
> File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line
> 432, in getProvides
> result.update(self.getNewProvides(name, flag, version))
> File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line
> 414, in getNewProvides
> for pkg, hits in self.pkgSack.getProvides(name, flag,
> version).iteritems():
> File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line
> 300, in getProvides
> return self._computeAggregateDictResult("getProvides", name,
> flags, version)
> File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line
> 470, in _computeAggregateDictResult
> sackResult = apply(method, args)
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 861,
> in getProvides
> return self._search("provides", name, flags, version)
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43,
> in newFunc
> return func(*args, **kwargs)
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 837,
> in _search
> for pkg in self.searchFiles(name, strict=True):
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43,
> in newFunc
> return func(*args, **kwargs)
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586,
> in searchFiles
> self._sql_pkgKey2po(rep, cur, pkgs)
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470,
> in _sql_pkgKey2po
> pkg = self._packageByKey(repo, ob['pkgKey'])
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413,
> in _packageByKey
> po = self.pc(repo, cur.fetchone())
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68,
> in __init__
> self._read_db_obj(db_obj)
> File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94,
> in _read_db_obj
> setattr(self, item, _share_data(db_obj[item]))
> TypeError: unsubscriptable object
>
>
> --
> Fedora-buildsys-list mailing list
> Fedora-buildsys-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 
Old 03-13-2009, 01:45 PM
陈鲍孜
 
Default epel mock-0.9.14 problem

I finally made it. Besides there must be an buildsys-build packages in the repo, the error comes from the wrong mock configuration, which do not have the [base] repo name. After add the [base] repo into 'yum.conf' options, everything goes well. But it seem that the repo name [base] is not necessary when I use yum outside mock.


On Fri, Mar 13, 2009 at 7:14 PM, Jitesh Shah <jiteshs@marvell.com> wrote:

I suppose the "useradd" binary is in shadow-utils package? Try including

the shadow-utils package in the build group.



Jitesh





On Fri, 2009-03-13 at 15:21 +0800, 陈鲍* wrote:

> hello, I was trying mock-0.9.14 in EPEL on CentOS 5.2. It seems it has

> got something wrong. Since there is no buildsys-build package in

> CentOS repository, it reports the error "Could not find useradd in

> chroot, maybe the install failed?". So I add those buildsys-build,

> buildsys-macro and rpmdevtools packages into the repository, and it

> results:

>

> ERROR: Command failed:

> *# /usr/bin/yum --installroot /var/lib/mock/centos/root/ *install

> buildsys-build

> Traceback (most recent call last):

> * File "/usr/bin/yum", line 29, in ?

> * * yummain.user_main(sys.argv[1:], exit_code=True)

> * File "/usr/share/yum-cli/yummain.py", line 229, in user_main

> * * errcode = main(args)

> * File "/usr/share/yum-cli/yummain.py", line 145, in main

> * * (result, resultmsgs) = base.buildTransaction()

> * File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 647,

> in buildTransaction

> * * (rescode, restring) = self.resolveDeps()

> * File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 696,

> in resolveDeps

> * * CheckDeps, checkinstalls, checkremoves, missing =

> self._resolveRequires(errors)

> * File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 779,

> in _resolveRequires

> * * thisneeds = self._checkInstall(txmbr)

> * File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 851,

> in _checkInstall

> * * provs = self.tsInfo.getProvides(*req)

> * File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line

> 432, in getProvides

> * * result.update(self.getNewProvides(name, flag, version))

> * File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line

> 414, in getNewProvides

> * * for pkg, hits in self.pkgSack.getProvides(name, flag,

> version).iteritems():

> * File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line

> 300, in getProvides

> * * return self._computeAggregateDictResult("getProvides", name,

> flags, version)

> * File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line

> 470, in _computeAggregateDictResult

> * * sackResult = apply(method, args)

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 861,

> in getProvides

> * * return self._search("provides", name, flags, version)

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43,

> in newFunc

> * * return func(*args, **kwargs)

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 837,

> in _search

> * * for pkg in self.searchFiles(name, strict=True):

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43,

> in newFunc

> * * return func(*args, **kwargs)

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586,

> in searchFiles

> * * self._sql_pkgKey2po(rep, cur, pkgs)

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470,

> in _sql_pkgKey2po

> * * pkg = self._packageByKey(repo, ob['pkgKey'])

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413,

> in _packageByKey

> * * po = self.pc(repo, cur.fetchone())

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68,

> in __init__

> * * self._read_db_obj(db_obj)

> * File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94,

> in _read_db_obj

> * * setattr(self, item, _share_data(db_obj[item]))

> TypeError: unsubscriptable object

>

>

> --

> Fedora-buildsys-list mailing list

> Fedora-buildsys-list@redhat.com

> https://www.redhat.com/mailman/listinfo/fedora-buildsys-list



--

Fedora-buildsys-list mailing list

Fedora-buildsys-list@redhat.com

https://www.redhat.com/mailman/listinfo/fedora-buildsys-list



--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 

Thread Tools




All times are GMT. The time now is 07:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org