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 > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 09-17-2012, 07:41 AM
Alan Hourihane
 
Default portage error with 2.2.01.21003

Hi, Just emerged portage-2.2.01.21003 and now when emerging packages at
the end I get this....

Traceback (most recent call last):
File "/usr/bin/emerge", line 47, in <module>
retval = emerge_main()
File "/j/usr/lib/portage/pym/_emerge/main.py", line 2058, in emerge_main
trees, mtimedb, retval)
File "/j/usr/lib/portage/pym/_emerge/main.py", line 393, in post_emerge
infodirs, info_mtimes, retval)
File "/j/usr/lib/portage/pym/_emerge/main.py", line 185, in
chk_updated_info_files
myso = portage.subprocess_getstatusoutput(
AttributeError: 'module' object has no attribute
'subprocess_getstatusoutput'

Just digging in now, but thought I'd report if others have already seen.

Thanks,

Alan.
 
Old 09-17-2012, 08:14 AM
Alan Hourihane
 
Default portage error with 2.2.01.21003

On 09/17/12 08:41, Alan Hourihane wrote:
> Hi, Just emerged portage-2.2.01.21003 and now when emerging packages at
> the end I get this....
>
> Traceback (most recent call last):
> File "/usr/bin/emerge", line 47, in <module>
> retval = emerge_main()
> File "/j/usr/lib/portage/pym/_emerge/main.py", line 2058, in emerge_main
> trees, mtimedb, retval)
> File "/j/usr/lib/portage/pym/_emerge/main.py", line 393, in post_emerge
> infodirs, info_mtimes, retval)
> File "/j/usr/lib/portage/pym/_emerge/main.py", line 185, in
> chk_updated_info_files
> myso = portage.subprocess_getstatusoutput(
> AttributeError: 'module' object has no attribute
> 'subprocess_getstatusoutput'
>
> Just digging in now, but thought I'd report if others have already seen.
>

Yes, this function no longer exists and there seems to be a large hunk of
code missing compared to mainline gentoo around this region of code.

Alan.
 
Old 09-19-2012, 06:53 PM
Alan Hourihane
 
Default portage error with 2.2.01.21003

On 09/17/12 09:14, Alan Hourihane wrote:
> On 09/17/12 08:41, Alan Hourihane wrote:
>> Hi, Just emerged portage-2.2.01.21003 and now when emerging packages at
>> the end I get this....
>>
>> Traceback (most recent call last):
>> File "/usr/bin/emerge", line 47, in <module>
>> retval = emerge_main()
>> File "/j/usr/lib/portage/pym/_emerge/main.py", line 2058, in emerge_main
>> trees, mtimedb, retval)
>> File "/j/usr/lib/portage/pym/_emerge/main.py", line 393, in post_emerge
>> infodirs, info_mtimes, retval)
>> File "/j/usr/lib/portage/pym/_emerge/main.py", line 185, in
>> chk_updated_info_files
>> myso = portage.subprocess_getstatusoutput(
>> AttributeError: 'module' object has no attribute
>> 'subprocess_getstatusoutput'
>>
>> Just digging in now, but thought I'd report if others have already seen.
>>
> Yes, this function no longer exists and there seems to be a large hunk of
> code missing compared to mainline gentoo around this region of code.
>
>

Anyone else see this ?

Alan.
 
Old 09-21-2012, 08:42 AM
Alan Hourihane
 
Default portage error with 2.2.01.21003

On 09/19/12 19:53, Alan Hourihane wrote:
> On 09/17/12 09:14, Alan Hourihane wrote:
>> On 09/17/12 08:41, Alan Hourihane wrote:
>>> Hi, Just emerged portage-2.2.01.21003 and now when emerging packages at
>>> the end I get this....
>>>
>>> Traceback (most recent call last):
>>> File "/usr/bin/emerge", line 47, in <module>
>>> retval = emerge_main()
>>> File "/j/usr/lib/portage/pym/_emerge/main.py", line 2058, in emerge_main
>>> trees, mtimedb, retval)
>>> File "/j/usr/lib/portage/pym/_emerge/main.py", line 393, in post_emerge
>>> infodirs, info_mtimes, retval)
>>> File "/j/usr/lib/portage/pym/_emerge/main.py", line 185, in
>>> chk_updated_info_files
>>> myso = portage.subprocess_getstatusoutput(
>>> AttributeError: 'module' object has no attribute
>>> 'subprocess_getstatusoutput'
>>>
>>> Just digging in now, but thought I'd report if others have already seen.
>>>
>> Yes, this function no longer exists and there seems to be a large hunk of
>> code missing compared to mainline gentoo around this region of code.
>>
>>
> Anyone else see this ?
>

Patch attached for _emerge/main.py

Alan.
 
Old 09-21-2012, 09:20 AM
Fabian Groffen
 
Default portage error with 2.2.01.21003

On 21-09-2012 09:42:10 +0100, Alan Hourihane wrote:
> >>> Just digging in now, but thought I'd report if others have already seen.
> >>>
> >> Yes, this function no longer exists and there seems to be a large hunk of
> >> code missing compared to mainline gentoo around this region of code.
> >>
> > Anyone else see this ?
>
> Patch attached for _emerge/main.py

Thanks!

Hmm, so the problem here is install-info not being available? Does it
have to use subprocess.Popen instead of the portage wrapper thing?


> --- _emerge/main.py 2012-09-20 18:52:38.000000000 +0100
> +++ /tmp/main.py 2012-09-20 18:27:38.000000000 +0100
> @@ -182,9 +182,19 @@
> raise
> del e
> processed_count += 1
> - myso = portage.subprocess_getstatusoutput(
> - "LANG=C LANGUAGE=C %s/usr/bin/install-info "
> - "--dir-file=%s/dir %s/%s" % (EPREFIX, inforoot, inforoot, x))[1]
> + try:
> + proc = subprocess.Popen(
> + ['%s/usr/bin/install-info'
> + '--dir-file=%s' % (EPREFIX, os.path.join(inforoot, "dir")),
> + os.path.join(inforoot, x)],
> + env=dict(os.environ, LANG="C", LANGUAGE="C"),
> + stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
> + except OSError:
> + myso = None
> + else:
> + myso = _unicode_decode(
> + proc.communicate()[0]).rstrip("
")
> + proc.wait()
> existsstr="already exists, for file `"
> if myso:
> if re.search(existsstr,myso):


--
Fabian Groffen
Gentoo on a different level
 
Old 09-21-2012, 12:47 PM
Alan Hourihane
 
Default portage error with 2.2.01.21003

On 09/21/12 10:20, Fabian Groffen wrote:
> On 21-09-2012 09:42:10 +0100, Alan Hourihane wrote:
>>>>> Just digging in now, but thought I'd report if others have already seen.
>>>>>
>>>> Yes, this function no longer exists and there seems to be a large hunk of
>>>> code missing compared to mainline gentoo around this region of code.
>>>>
>>> Anyone else see this ?
>> Patch attached for _emerge/main.py
> Thanks!
>
> Hmm, so the problem here is install-info not being available? Does it
> have to use subprocess.Popen instead of the portage wrapper thing?
>

The function portage.subprocess_getstatusoutput() doesn't exist anymore.
And the patch does what mainline portage now does, with the EPREFIX
modification.

Alan.
 

Thread Tools




All times are GMT. The time now is 10:08 AM.

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