Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290625 - sys-apps/portage-2.1.7.1 Incorrect handling non standard chars
Summary: sys-apps/portage-2.1.7.1 Incorrect handling non standard chars
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 288499
  Show dependency tree
 
Reported: 2009-10-26 20:22 UTC by Marcin Mirosław
Modified: 2010-09-04 08:42 UTC (History)
0 users

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


Attachments
manually encode output to stdout in python3 (python3_unicode.patch,4.16 KB, patch)
2009-10-26 22:28 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2009-10-26 20:22:27 UTC
I've tried to show changelog ffmpeg :

# emerge -pvl ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild     U ] media-video/ffmpeg-0.5_p20373 [0.5_p19928] USE="3dnow 3dnowext custom-cflags encode hardcoded-tables ipv6 mmx mmxext mp3 ssse3 theora threads vorbis xvid zlib -X -alsa (-altivec) -bindist -cpudetection -debug -dirac -doc -faac -faad -gsm -ieee1394 -jack -jpeg2k -network -opencore-amr -oss -pic% -schroedinger -sdl -speex -test -v4l -v4l2 -vdpau -x264" VIDEO_CARDS="-nvidia" 3,016 kB

Total: 1 package (1 upgrade), Size of downloads: 3,016 kB

Traceback (most recent call last):
  File "/usr/bin/emerge", line 42, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/main.py", line 1277, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/actions.py", line 406, in action_build
    favorites=favorites)
  File "/usr/lib/portage/pym/_emerge/depgraph.py", line 4584, in display
    noiselevel=-1)
  File "/usr/lib/portage/pym/portage/util.py", line 79, in writemsg_stdout
    writemsg(mystr, noiselevel=noiselevel, fd=sys.stdout)
  File "/usr/lib/portage/pym/portage/util.py", line 74, in writemsg
    fd.write(mystr)
  File "/usr/lib/python3.1/encodings/iso8859_2.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xf2' in position 393: character maps to <undefined>

Probably thi line from changelog trigers that problem:"
  22 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> ffmpeg-0.5-r1.ebuild:
  Fix media-libs/x264 depend wrt #290080, thanks to Diego E. 'Flameeyes'
  Pettenò for reporting.
"

Reproducible: Always
Comment 1 Marcin Mirosław 2009-10-26 20:33:15 UTC
emerge --info:

Portage 2.1.7.1 (default/linux/x86/10.0/server, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r3-i686-AMD_Duron-tm-with-gentoo-2.0.1
Timestamp of tree: Mon, 26 Oct 2009 20:00:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mfpmath=sse -fpeel-loops -pipe -ftracer -floop-block -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-strip-mine"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /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=native -mfpmath=sse -fpeel-loops -pipe -ftracer -floop-block -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-strip-mine"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL.ISO-8859-2"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
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/vmware /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 7zip acl acpi activefilter adns aio apache2 ares automount bash-completion bcmath berkdb bittorrent bzip2 caps cgi chdir chroot clamav clamdtop cli contentcache cracklib crypt curl custom-cflags daemon dhcp dnsdb domainkeys dri embedded exif exiscan exiscan-acl extras fam ffmpeg flac fortran ftp gd gdbm gif gmp gnutls gpm graphite hash iconv idn imagemagick iproute2 ipv6 isdnlog javascript jpeg justify logrotate logwatch lzo maildir mhash mmap mmx modules mouse mp3 mp4 mpeg mudflap mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses netpbm network-cron nls nntp nptl nptlonly ogg openmp openssh pam pcre perl png pop3d posix pppd prelude profile python python3 quotas readline reflection rle samba session sharedmem shorten slang smp sockets spamassassin spell spf spl sqlite3 srs sse ssl stats subtitles svg swat sysfs syslog theora threads tiff timestats tokenizer tordns tos transcode truetype unicode unzip urandom usb uudeview vcd vhosts vim-pager vim-syntax visibility vorbis wifi x86 xattr xfs xml xmlreader xmlrpc xmlwriter xorg xsl xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="sis"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Zac Medico gentoo-dev 2009-10-26 22:28:34 UTC
Created attachment 208372 [details, diff]
manually encode output to stdout in python3

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

  cd /usr/lib/portage
  patch -p0 < /tmp/python3_unicode.patch
Comment 3 Marcin Mirosław 2009-10-26 22:38:48 UTC
This patch fixes bug for me.
# emerge -pvl ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild     U ] media-video/ffmpeg-0.5_p20373 [0.5_p19928] USE="3dnow 3dnowext custom-cflags encode hardcoded-tables ipv6 mmx mmxext mp3 ssse3 theora threads vorbis xvid zlib -X -alsa (-altivec) -bindist -cpudetection -debug -dirac -doc -faac -faad -gsm -ieee1394 -jack -jpeg2k -network -opencore-amr -oss -pic% -schroedinger -sdl -speex -test -v4l -v4l2 -vdpau -x264" VIDEO_CARDS="-nvidia" 3,016 kB

Total: 1 package (1 upgrade), Size of downloads: 3,016 kB

*ffmpeg-0.5_p20373

  26 Oct 2009; Alexis Ballier <aballier@gentoo.org>
  +ffmpeg-0.5_p20373.ebuild:
  Bump a new snapshot

  22 Oct 2009; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999-r1.ebuild:
  bump deps on x264

  22 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> ffmpeg-0.5-r1.ebuild:
  Fix media-libs/x264 depend wrt #290080, thanks to Diego E. 'Flameeyes'
  Pettenò for reporting.
[snip]
Comment 4 Zac Medico gentoo-dev 2009-10-31 04:40:17 UTC
>=debugedit-4.4.6-r2
Comment 5 Zac Medico gentoo-dev 2009-10-31 04:42:26 UTC
This is fixed in 2.1.7.2 and 2.2_rc47.