Summary: | app-portage/gentoolkit-0.3.1 revdep-rebuild fails with "ValueError: too many values to unpack (expected 5)" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marco Napetti <marco.napetti> |
Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, jwbraun, mgorny |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Marco Napetti
2015-12-19 11:14:02 UTC
That is a strange one. Especially since we explicitly tell scanelf to use a format with 5 items in it. We have a spot just before the line that gave you that error that checks for the line having less than 5 parts. Can you please edit that file: /usr/lib64/python3.4/site-packages/gentoolkit/revdep_rebuild/analyse.py if len(parts) < 5: logger.error("\tscan_files(); error processing lib: %s" % line) logger.error("\tscan_files(); parts = %s" % str(parts)) continue filename, sfilename, soname, needed, bits = parts Please change line 43 "if len(parts) < 5:" to "if len(parts) != 5:" then re-run and post the lines that it reports are in error. That should fix it from tracebacking for you, it will just report that line in error and continue with the rebuild. I've had empty results, but never a result that had more than 5 parts before, so didn't account for that possibility. (In reply to Brian Dolbec from comment #1) > That is a strange one. Especially since we explicitly tell scanelf to use a > format with 5 items in it. It's possible for %F to contain spaces, so that's probably it. We should probably use a different delimiter in for format string, like '%F;%f;%S;%n;%M' or something like that. yeah, that makes sense. I'll still leave it as "len(parts) != 5" to spit out anything that doesn't match the expected output. OK, I've pushed the fix for this in commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=1fbd7ec8a46c359c5ef98168156a91ba05cf6a6f Please emerge gentoolkit-9999 to test if this indeed does fix it for you. I have nothing installed in my system that can trigger this bug. I edited /usr/lib64/python3.4/site-packages/gentoolkit/revdep_rebuild/analyse.py as requested, the problem seems to be given by a bliss overlay's ebuild, media-tv/plex-media-server. The new output is pasted here: http://pastebin.com/bfyZZNSS After upgrading to =app-portage/gentoolkit-9999 the problem disappeared. Yeah, 9999 has 2 bug fixes since the 0.3.1 release. This fix which Zac pointed out the correct fix and one for the ebuild. It is safe to continue with the 9999 version until the next 0.3.x release. It will only contain bugfixes. There is no other development work being done on the code for the time being. |