Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282505 - sys-apps/portage-2.2_rc39: UnicodeDecodeError in portage.xpak.xpak_mem
Summary: sys-apps/portage-2.2_rc39: UnicodeDecodeError in portage.xpak.xpak_mem
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 282542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-23 21:38 UTC by Peter Alfredsen (RETIRED)
Modified: 2010-07-15 08:24 UTC (History)
2 users (show)

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


Attachments
fix the UnicodeDecodeError (xpak_unicode.patch,3.18 KB, patch)
2009-08-24 01:30 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2009-08-23 21:38:12 UTC
When trying to update with fixpackages in FEATURES, portage bails out when trying to convert the xfce-* package moves.

Log of event/workaround:

loki linux # emerge --info


Performing Global Updates: /usr/portage/profiles/updates/3Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
...................
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1049, in emerge_main
    if portage._global_updates(trees, mtimedb["updates"]):
  File "/usr/lib64/portage/pym/portage/__init__.py", line 8572, in _global_updates
    moves = bindb.move_ent(update_cmd)
  File "/usr/lib64/portage/pym/portage/dbapi/bintree.py", line 273, in move_ent
    mytbz2.recompose_mem(portage.xpak.xpak_mem(mydata))
  File "/usr/lib64/portage/pym/portage/xpak.py", line 108, in xpak_mem
    dataglob=dataglob+newglob
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa8 in position 10: ordinal not in range(128)
loki linux # nano /usr/portage/profiles/updates/3Q-2009 
loki linux # rm -rf /usr/portage/packages/xfce-*
loki linux # emerge --info


Performing Global Updates: /usr/portage/profiles/updates/3Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
...................
@#####*****

Portage 2.2_rc39 (default/linux/amd64/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.5 x86_64)
=================================================================
System uname: Linux-2.6.30.5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 23 Aug 2009 20:45:03 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -pipe -Wall -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -pipe -Wall -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixlafiles fixpackages installsources multilib-strict parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://gentoo.osuosl.org/ http://gentoo.oregonstate.edu"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en da"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="--best"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/dirtyepic /home/pa/loki_overlay /home/pa/dotnet-overlay /home/pa/poppler-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aiglx aim alsa amarok amd64 archive authdaemond avahi bash-completion berkdb bidi bzip2 cairo cdda cddb cdparanoia cdr cdrtools cgi cjk cleartype cli consolekit cpudetection cracklib crypt css cups curl dbus dirac directfb djbfft djvu dri dts dvd dvdr dvdread encode evdev exif fam fastcgi fbcon ffmpeg firefox flac fontconfig fortran ftp gadu gif glib gnome gnutls gphoto2 gpm graphviz gstreamer gtk hal hbci iconv icq icu idea ieee1394 imagemagick imap imlib isdnlog jabber java javascript jbig jpeg jpeg2k kdeenablefinal lcd libnotify logitech-mouse logrotate lzma lzo mad matroska mbox metric mikmod mime mmx mmxext mng mono moznopango mp3 mp4 mpeg mplayer msn mudflap multilib musepack ncurses network-cron nls nocd nptl nptlonly objc objc++ objc-gc offensive ogg openal openexr opengl openmp oscar pam pcre pdf perl php png pop ppds pppd python qt3support qt4 quicktime readline reflection rle sasl schroedinger sdl sensord session shorten slang smime sms soup speex spell spl sse sse2 ssl ssse3 svg sysfs t1lib tcpd texteffect theora threads tiff translator truetype unicode usb vcd vorbis wavpack wmf wxwindows x264 xanim xcb xface xfce xine xml xmlrpc xorg xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en da" USERLAND="GNU" VIDEO_CARDS="vesa i810 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2009-08-24 01:30:00 UTC
Created attachment 202098 [details, diff]
fix the UnicodeDecodeError

If this patch is saved as /tmp/xpak_unicode.patch, then it can be applied as follows:

  cd /usr/lib/portage
  patch -p0 < /tmp/xpak_unicode.patch
Comment 2 Zac Medico gentoo-dev 2009-08-24 06:29:15 UTC
This is fixed in 2.2_rc40.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-24 11:53:39 UTC
*** Bug 282542 has been marked as a duplicate of this bug. ***