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.
Created attachment 217570 [details] Build log Build log attached.
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>
Should probably mention that fuzzers/fusil-libc-printf is the "offender"
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...
(In reply to comment #4) s/news entry/news item/
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?
C/POSIX locales are not supported.