Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 549826

Summary: >=sys-apps/portage-2.2.16 UnicodeDecodeError in rsync module
Product: Portage Development Reporter: Brian Dolbec <dolsen>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-t-1017380.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    
Attachments: unicode_decode patch

Description Brian Dolbec (RETIRED) gentoo-dev 2015-05-18 17:02:17 UTC
# emerge --sync 
>>> Syncing repository 'gentoo' into '/usr/portage'... 
Traceback (most recent call last): 
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module> 
    retval = emerge_main() 
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1154, in emerge_main 
    return run_action(emerge_config) 
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3061, in run_action 
    return action_sync(emerge_config) 
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 1936, in action_sync 
    retvals = syncer.auto_sync(options={'return-messages': False}) 
  File "/usr/lib64/python2.7/site-packages/portage/emaint/modules/sync/sync.py", line 94, in auto_sync 
    emaint_opts=options) 
  File "/usr/lib64/python2.7/site-packages/portage/emaint/modules/sync/sync.py", line 219, in _sync 
    returncode, message = sync_manager.sync(self.emerge_config, repo) 
  File "/usr/lib64/python2.7/site-packages/portage/sync/controller.py", line 148, in sync 
    taskmaster.run_tasks(tasks, func, status, options=task_opts) 
  File "/usr/lib64/python2.7/site-packages/portage/sync/controller.py", line 65, in run_tasks 
    result = getattr(inst, func)(**kwargs) 
  File "/usr/lib64/python2.7/site-packages/portage/sync/syncbase.py", line 125, in sync 
    return self.update() 
  File "/usr/lib64/python2.7/site-packages/portage/sync/modules/rsync/rsync.py", line 148, in update 
    "!!! getaddrinfo failed for '%s': %s\n" % (hostname, e), 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128) 

Reproducible: Always
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2015-05-18 17:10:28 UTC
Created attachment 403562 [details, diff]
unicode_decode patch
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2015-05-18 23:25:42 UTC
Released in portage-2.2.20

git commit: 7833f43bbbe7d863d6564615101fd558a9be6f1f