Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561586 - app-misc/ca-certificates-20150426.3.20 fails to build in non-UTF8 locales: UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 5: ordinal not in range(128)
Summary: app-misc/ca-certificates-20150426.3.20 fails to build in non-UTF8 locales: Un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-26 19:29 UTC by Xavier Miller (RETIRED)
Modified: 2015-09-29 00:39 UTC (History)
5 users (show)

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


Attachments
build log (build.log,10.10 KB, text/plain)
2015-09-26 19:31 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2015-09-26 19:29:48 UTC
Traceback (most recent call last):
  File "certdata2pem.py", line 131, in <module>
    if os.path.exists(fname):
  File "/usr/lib64/python2.7/genericpath.py", line 26, in exists
    os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 5: ordinal not in range(128)
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
make: Leaving directory '/var/tmp/portage/app-misc/ca-certificates-20150426.3.20/work/ca-certificates/mozilla'
 * ERROR: app-misc/ca-certificates-20150426.3.20::gentoo failed (compile phase):
 *   emake failed

For information, no mozilla product is installed (headless home server)

Reproducible: Always




# emerge --info '=app-misc/ca-certificates-20150426.3.20::gentoo'
Portage 2.2.22 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 4.2.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.1-gentoo-x86_64-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.2
KiB Mem:     3968160 total,   2392536 free
KiB Swap:    2097148 total,   2090324 free
Timestamp of repository gentoo: Sat, 26 Sep 2015 19:00:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-gentoo-linux-gnu [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo
dev-util/cmake:           3.3.2::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.8::gentoo
sys-devel/autoconf:       2.69-r1::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 -fomit-frame-pointer -O2"
CHOST="x86_64-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 -fomit-frame-pointer -O2"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j7 -l2"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext amd64 bzip2 cdda cddb cdio cli cracklib crypt cryptsetup cups cxx dbus djvu dlna dri dvb dvd fontconfig fpx gif iconv jbig jpeg jpeg2k libcanberra libsamplerate lzma mmx mmxext modules multilib natspec ncurses nls nptl ocr openexr openmp osc pango pcre pdf png postscript qt5 raw readline samba sane scanner seccomp session sna sndfile snmp sqli sqlite sse sse2 sse4_1 sse4_2 ssl ssse3 svg tcpd te threads tiff truetype unicode upnp uxa webp wmf xinerama xosd xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio virmidi" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_BE fr_FR nl nl_BE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20 ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2015-09-26 19:31:10 UTC
Created attachment 412998 [details]
build log
Comment 2 SpanKY gentoo-dev 2015-09-27 06:11:42 UTC
you can set your locale to a proper UTF8 based one to workaround the issue
Comment 3 Xavier Miller (RETIRED) gentoo-dev 2015-09-27 06:44:12 UTC
Fixed by re-setting the locale through "eselect locale".
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2015-09-27 06:45:28 UTC
emerge --info | grep LANG
LANG="fr_BE.utf8"

where it was not set before
Comment 5 Tolga Dalman 2015-09-27 08:33:01 UTC
(In reply to Xavier Miller from comment #3)
> Fixed by re-setting the locale through "eselect locale".

Thanks, this fixed the issue for me.
Comment 6 Sven E. 2015-09-27 12:04:22 UTC
(In reply to SpanKY from comment #2)
> you can set your locale to a proper UTF8 based one to workaround the issue

And how would I do that on uclibc accordingly, since I am facing this on a uclibc system? $LANG doesn't seem to have any effect and <eselect locale list> does not yield any locale (which does not come at any surprise).
Comment 7 Jonathan Vasquez (RETIRED) gentoo-dev 2015-09-27 18:50:31 UTC
Confirming that I'm also receiving this in a chroot and that the workaround of 'eselect locale set en_US.utf8' works. However there is another bug/message received when setting locale to this:

/usr/share/eselect/libs/config.bash: line 62: local: `# LANG=': not a valid identifier
Comment 8 Joshua Kinard gentoo-dev 2015-09-28 08:35:31 UTC
This bug is biting in a catalyst run it looks, and I don't know of a way to set the locale via catalyst while it's doing stage runs.
Comment 9 Alex Brandt (RETIRED) gentoo-dev 2015-09-28 15:31:13 UTC
Also seeing this with paludis which disables locales for builds.
Comment 10 SpanKY gentoo-dev 2015-09-29 00:39:18 UTC
should be fixed by:
http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=751d0f79973aa5c2918b386e814aa3eda17df27b

tested LANG=C & LANG=en_US.UTF8 & py2.7 & py3.4