Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302425 - dev-python/fusil-1.3.2 fails to build with Python 3 and C/POSIX locale
Summary: dev-python/fusil-1.3.2 fails to build with Python 3 and C/POSIX locale
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-27 09:32 UTC by Johan Bergström
Modified: 2010-04-03 21:26 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,19.07 KB, text/plain)
2010-01-27 09:33 UTC, Johan Bergström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2010-01-27 09:32:55 UTC
Fusil 1.3.2 fails to build on Python 3.1. 

emerge --info:
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-x86_64-QEMU_Virtual_CPU_version_0.10.50-with-gentoo-1.12.13
Timestamp of tree: Tue, 26 Jan 2010 10:35:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages 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"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_exclude --exclude ChangeLog --delete-excluded"
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/bloggse /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 bzip2 cli cracklib crypt cups cxx dri fortran gdbm iconv logrotate mmx modules mudflap multilib ncurses nls nptl nptlonly nsl openmp pam pcre pppd python readline reflection spl sse sse2 ssl sysfs tcpd unicode xml 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="info mime" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Build log soon attached.
Comment 1 Johan Bergström 2010-01-27 09:33:29 UTC
Created attachment 217570 [details]
Build log

Build log attached.
Comment 2 Johan Bergström 2010-02-02 22:57:44 UTC
if i set an utf-8 locale before building, it works:

 # pwd
/var/tmp/portage/dev-python/fusil-1.3.2/work/fusil-1.3.2-3.1
# export LC_ALL="en_US.utf-8"
# python3.1 setup.py build 
running build
running build_py
creating build
creating build/lib
creating build/lib/fusil
copying fusil/mockup.py -> build/lib/fusil
copying fusil/application_logger.py -> build/lib/fusil
<snip>
copying and adjusting fuzzers/fusil-clamav -> build/scripts-3.1
copying and adjusting fuzzers/fusil-mplayer -> build/scripts-3.1
copying and adjusting fuzzers/fusil-firefox.bak -> build/scripts-3.1
copying and adjusting fuzzers/fusil-gimp.bak -> build/scripts-3.1
copying and adjusting fuzzers/fusil-libc-printf -> build/scripts-3.1
<snip>
Comment 3 Johan Bergström 2010-02-03 08:07:20 UTC
Should probably mention that fuzzers/fusil-libc-printf is the "offender"
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-04 18:55:18 UTC
Actually Python 3 rather doesn't support C/POSIX locale.
Maybe it would be sufficient to mention this fact in planned news entry for Python 3.1...
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-04 19:03:10 UTC
(In reply to comment #4)
s/news entry/news item/
Comment 6 Howard B. Golden 2010-02-27 22:21:42 UTC
Adding LC_ALL="en_US.utf-8" to /etc/paludis/bashrc allowed python3.1 to build fusil successfully.

Question: Is this the best way to deal with this? (I wonder if changing LC_ALL Paludis-wide is going to cause other problems.) Is there some alternative way to just change LC_ALL for python3.1?
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-03 21:26:18 UTC
C/POSIX locales are not supported.