Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286522 - sys-apps/portage-2.2_rc42: Disappearing ebuild causes crash
Summary: sys-apps/portage-2.2_rc42: Disappearing ebuild causes crash
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 210077 288499
  Show dependency tree
Reported: 2009-09-26 14:18 UTC by Martin von Gagern
Modified: 2009-10-11 01:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-09-26 14:18:08 UTC
Running an "emerge @preserved-rebuild" crashed for me:

>>> Emerging (47 of 132) media-video/mplayer-1.0_rc4_p20090919-r1
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/", line 1415, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/", line 457, in action_build
    retval = mergetask.merge()
  File "/usr/lib/portage/pym/_emerge/", line 824, in merge
    rval = self._merge()
  File "/usr/lib/portage/pym/_emerge/", line 1132, in _merge
  File "/usr/lib/portage/pym/_emerge/", line 1270, in _main_loop
    while self._schedule():
  File "/usr/lib/portage/pym/_emerge/", line 43, in _schedule
    return self._schedule_tasks()
  File "/usr/lib/portage/pym/_emerge/", line 1301, in _schedule_tasks
    if q.schedule():
  File "/usr/lib/portage/pym/_emerge/", line 55, in schedule
  File "/usr/lib/portage/pym/_emerge/", line 24, in start
  File "/usr/lib/portage/pym/_emerge/", line 91, in _start
    self._start_task(build, self._default_final_exit)
  File "/usr/lib/portage/pym/_emerge/", line 119, in _start_task
  File "/usr/lib/portage/pym/_emerge/", line 24, in start
  File "/usr/lib/portage/pym/_emerge/", line 66, in _start
  File "/usr/lib/portage/pym/_emerge/", line 90, in _prefetch_exit
    self._start_task(fetcher, self._fetch_exit)
  File "/usr/lib/portage/pym/_emerge/", line 119, in _start_task
  File "/usr/lib/portage/pym/_emerge/", line 24, in start
  File "/usr/lib/portage/pym/_emerge/", line 35, in _start
  File "/usr/lib/portage/pym/_emerge/", line 39, in lock
    self.settings, debug, use_cache, portdb)
  File "/usr/lib/portage/pym/portage/", line 5852, in doebuild_environment
    ebuild_path = os.path.abspath(myebuild)
  File "/usr/lib/portage/pym/portage/", line 182, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib/python2.6/", line 336, in abspath
    if not isabs(path):
  File "/usr/lib/python2.6/", line 52, in isabs
    return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'

# emerge --version
Portage 2.2_rc41 (default/linux/x86/2008.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r5 i686)

It might be that the ebuild it was about to emerge went away due to a portage tree sync in the background while this emerge process was busy with some other ebuild. A proper error message would be better than this backtrace, though.
Comment 1 Zac Medico gentoo-dev 2009-09-26 23:39:03 UTC
It's fixed in svn r14442 to produce a message like this:

  ebuild not found for 'media-video/mplayer-1.0_rc4_p20090919-r1'
Comment 2 Zac Medico gentoo-dev 2009-10-04 00:20:03 UTC
This is fixed in 2.2_rc43.
Comment 3 Zac Medico gentoo-dev 2009-10-11 01:08:50 UTC
This is fixed in 2.1.7.