Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
yum package manager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 9:09 pm    Post subject: yum package manager Reply with quote

I am trying to run 'yum update' and this is the output I get

Code:
conquistador ~ # yum update
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/urlgrabber/grabber.py", line 1522, in _progress_update
    if self._over_max_size(cur=self._amount_read-self._reget_length):
  File "/usr/lib64/python2.7/site-packages/urlgrabber/grabber.py", line 1539, in _over_max_size
    if cur > max_size + max_size*.10:
TypeError: can't multiply sequence by non-int of type 'float'

 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

Error: failure: repodata/primary.xml.gz from amahi: [Errno 256] No more mirrors to try.


Also the reason I'm trying to get yum working (because I'm sure someone is cruious) is because I want to install amahi and looks like the easiest way is to make yum work.

For reference - http://wiki.amahi.org/index.php/Self-install-existing
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 222
Location: Detroit, MI, USA

PostPosted: Tue Dec 28, 2010 9:39 pm    Post subject: Reply with quote

Looks like bug 346753.

Also, running a foreign package manager on Gentoo is bound to cause you problems; it won't know about any of the packages portage has installed.
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 9:54 pm    Post subject: Reply with quote

I have no idea how to apply the patch... What do I do first? Also yum is only getting 1 repository so it can only install/remove one program but I'm well aware how badly things can get skrewed up
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 222
Location: Detroit, MI, USA

PostPosted: Tue Dec 28, 2010 9:59 pm    Post subject: Reply with quote

The unofficial Gentoo Wiki has a pretty decent guide on setting up a local overlay and applying patches:

http://en.gentoo-wiki.com/wiki/Writing_Ebuilds
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 222
Location: Detroit, MI, USA

PostPosted: Tue Dec 28, 2010 10:02 pm    Post subject: Reply with quote

Also see these pages from the devmanual:

http://devmanual.gentoo.org/general-concepts/overlay/index.html

http://devmanual.gentoo.org/ebuild-writing/functions/src_prepare/epatch/index.html
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 10:04 pm    Post subject: Reply with quote

Thanks, I'll def take a look and see what I can get done.
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 10:16 pm    Post subject: Reply with quote

Ok I read through those links and I must be missing something because I don't see anything that looks particularly helpful to this situation. I have no .patch file which was downloaded, I have .diff files but no idea how those would be applied.
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 222
Location: Detroit, MI, USA

PostPosted: Tue Dec 28, 2010 10:19 pm    Post subject: Reply with quote

Patches and diff files are the same thing.

It is just a file name; epatch can apply them no matter what they are called.
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 10:20 pm    Post subject: Reply with quote

Ok then that takes me to my next (probably stupid) question, how do I obtain epatch? If I try typing 'epa' and press tab to autocomplete, nothing happens.
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 10:21 pm    Post subject: Reply with quote

Nevermind it was just patch, not epatch. Now I just need to find the files to patch up
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Tue Dec 28, 2010 10:25 pm    Post subject: Reply with quote

Code:
conquistador ~ # patch /patches/grabber_fix.diff /usr/lib64/python2.7/site-packages/urlgrabber/grabber.py
patch: **** Only garbage was found in the patch input.
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 222
Location: Detroit, MI, USA

PostPosted: Tue Dec 28, 2010 10:38 pm    Post subject: Reply with quote

SnackMasterX wrote:
Ok then that takes me to my next (probably stupid) question, how do I obtain epatch? If I try typing 'epa' and press tab to autocomplete, nothing happens.

To apply patches the "Gentoo way" requires that you modify the ebuild file for the package. epatch is an ebuild function provided by eutils.eclass; it only works in ebuilds.

Applying patches directly to the source code will do you little good.
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Wed Dec 29, 2010 3:11 am    Post subject: Reply with quote

Code:
conquistador ~ # ebuild /usr/portage/dev-python/urlgrabber/urlgrabber-3.9.1.ebuild digest
 * Applying grabber_fix.diff ...
/usr/portage/eclass/eutils.eclass: line 334: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
 * QA Notice: 'egrep' called in global scope: dev-python/urlgrabber-3.9.1
 * QA Notice: 'awk' called in global scope: dev-python/urlgrabber-3.9.1
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory
/usr/portage/eclass/eutils.eclass: line 280: /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out: No such file or directory

 * Failed Patch: grabber_fix.diff !
 *  ( /home/kenzie/debian/patches/grabber_fix.diff )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/dev-python/urlgrabber-3.9.1/temp/grabber_fix.diff.out

 * ERROR: dev-python/urlgrabber-3.9.1 failed:
 *   Failed Patch: grabber_fix.diff!
 *
 * Call stack:
 *                 ebuild.sh, line 1993:  Called source '/usr/portage/dev-python/urlgrabber/urlgrabber-3.9.1.ebuild'
 *   urlgrabber-3.9.1.ebuild, line   12:  Called epatch '/home/kenzie/debian/patches/grabber_fix.diff'
 *             eutils.eclass, line  412:  Called die
 * The specific snippet of code:
 *                      die "Failed Patch: ${patchname}!"
 *
 * If you need support, post the output of 'emerge --info =dev-python/urlgrabber-3.9.1',
 * the complete build log and the output of 'emerge -pqv =dev-python/urlgrabber-3.9.1'.
 * S: '/var/tmp/portage/dev-python/urlgrabber-3.9.1/work/urlgrabber-3.9.1'
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Dec 29, 2010 9:35 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software as neither amahi or yum are officially supported.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum