Created attachment 394456 [details] build.log running compile_translations Traceback (most recent call last): File "setup.py", line 708, in <module> data_files = data, File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 68, in run _build.run(self) File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 624, in run oldlang = os.environ['LANG'] File "/usr/lib64/python2.7/UserDict.py", line 23, in __getitem__ raise KeyError(key) KeyError: 'LANG' * ERROR: net-misc/wicd-1.7.3::gentoo failed (compile phase): * (no error message) # emerge --info wicd Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2-asneeded, glibc-2.20-r1, 3.14.27 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.14.27-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9600_@_2.80GHz-with-gentoo-2.2 KiB Mem: 4038600 total, 1688324 free KiB Swap: 987992 total, 691340 free Timestamp of tree: Tue, 20 Jan 2015 19:00:02 +0000 sh bash 4.3_p33 ld GNU ld (Gentoo 2.25 p1.4) 2.25 app-shells/bash: 4.3_p33::poly-c dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.1-r4 dev-lang/python: 2.7.9-r1, 3.3.5-r1, 3.4.2 dev-util/cmake: 2.8.12.2-r2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r4, 1.10.3-r1, 1.11.6-r1, 1.14.1, 1.15 sys-devel/binutils: 2.25_pre::poly-c sys-devel/gcc: 4.9.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.5 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.18 (virtual/os-headers) sys-libs/glibc: 2.20-r1 Repositories: gentoo poly-c kde-sunset Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=core2 -O2 -pipe" 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 /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ConsoleKit /etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/polkit-1 /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/usb_modeswitch.d /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml" CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --binpkg-respect-use=n --verbose-slot-rebuilds=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified 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://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/poly-c /var/lib/layman/kde-sunset" SYNC="rsync://192.168.0.254/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gdbm gif glamor gmp gnutls gtk iconv idn inotify jpeg jpeg2k kde kipi lame lcms libnotify lzma mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png ppds qt3support qt4 quicktime readline rtmp schroedinger sdl session slang spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev unicode upower usb vcd vdpau vorbis vpx wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" 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="evdev joystick synaptics" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" Unset: CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= net-misc/wicd-1.7.2.4-r3 was built with the following: USE="X -ambiance -autostart -doc gtk (-ioctl) libnotify -mac4lin ncurses nls -pm-utils" PYTHON_TARGETS="-python2_6 python2_7"
Have you set a locale, in particular "LANG"? I think the build process assumes that LANG is set, maybe we should work around this?
I have the same problem i test regenerate my locale and i test LANG="us" emerge wicd or LANG="fr" emerge wicd and i have the same result. Thanks
(In reply to grlowvichka from comment #2) > I have the same problem i test regenerate my locale and i test LANG="us" > emerge wicd or LANG="fr" emerge wicd and i have the same result. Thanks LANG="us" and LANG="fr" are not proper values for this variable. Portage should even give you a warning right when it starts: # LANG="us" emerge -1 wicd setlocale: unsupported locale setting Even with this, however, the build works for me. Still can't reproduce your problem. Have you set your locale according to https://wiki.gentoo.org/wiki/Localization/HOWTO What does eselect locale list or eselect locale show show you?
(In reply to Thomas Kahle from comment #1) > Have you set a locale, in particular "LANG"? > I think the build process assumes that LANG is set, maybe we should work > around this? LANG is unset for user root on the affected machine. Setting LANG to "en_US.UTF-8" makes the error disappear. But I think upstream should not blindly rely on LANG being set.
(In reply to Lars Wendler (Polynomial-C) from comment #4) > (In reply to Thomas Kahle from comment #1) > > Have you set a locale, in particular "LANG"? > > I think the build process assumes that LANG is set, maybe we should work > > around this? > > LANG is unset for user root on the affected machine. Setting LANG to > "en_US.UTF-8" makes the error disappear. But I think upstream should not > blindly rely on LANG being set. Mysterious. To test, I added the following to the ebuild pkg_setup() { eval unset ${!LC_*} LANG } It still does not fail for me. Could you experiment with setting LANG in pkg_setup and see if it works then? Maybe we have not found the true reason yet. Also note that the error is in code that is shipped with python (distutils) not wicd per se. Maybe we should cc python team?
(In reply to Thomas Kahle from comment #3) > (In reply to grlowvichka from comment #2) > > I have the same problem i test regenerate my locale and i test LANG="us" > > emerge wicd or LANG="fr" emerge wicd and i have the same result. Thanks > > LANG="us" and LANG="fr" are not proper values for this variable. Portage > should even give you a warning right when it starts: > > # LANG="us" emerge -1 wicd > setlocale: unsupported locale setting > > Even with this, however, the build works for me. Still can't reproduce your > problem. Have you set your locale according to > > https://wiki.gentoo.org/wiki/Localization/HOWTO > > What does > > eselect locale list > or > eselect locale show > > show you? My result: eselect locale list Available targets for the LANG variable: [1] C [2] POSIX [3] en_US.utf8 [4] fr_FR.utf8 [5] fr_FR.UTF-8 * [ ] (free form) eselect locale show LANG variable in profile: fr_FR.UTF-8 The problem is the french languege .. I test this night change fr en us. thanks
I have the same problem... eselect locale set 3 Setting LANG to en_US.utf8 ... Run ". /etc/profile" to update the variable in your shell. funtoostation grlowvichka # env-update && source /etc/profile >>> Regenerating /etc/ld.so.cache... funtoostation grlowvichka # emerge wicd These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild U ] net-misc/wicd-1.7.3 [1.7.2.4-r3] USE="X ncurses nls pm-utils -ambiance -doc -gnome-shell% -gtk (-ioctl) -libnotify -mac4lin" PYTHON_TARGETS="python2_7" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB !!! The following installed packages are masked: - virtual/jre-1.6.0-r1::gentoo (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) net-misc/wicd-1.7.3 >>> Failed to emerge net-misc/wicd-1.7.3 >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.45, 0.18, 0.08 * Messages for package net-misc/wicd-1.7.3: * ERROR: net-misc/wicd-1.7.3 failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 4636: Called distutils-r1_src_install * environment, line 1502: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install' * environment, line 354: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 4054: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3168: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3166: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 819: Called distutils-r1_run_phase 'distutils-r1_python_install' * environment, line 1471: Called distutils-r1_python_install * environment, line 1398: Called esetup.py 'install' '--root=/var/tmp/portage/net-misc/wicd-1.7.3/image//_python2.7' * environment, line 1952: Called die * The specific snippet of code: * "${@}" || die * * If you need support, post the output of `emerge --info '=net-misc/wicd-1.7.3'`, * the complete build log and the output of `emerge -pqv '=net-misc/wicd-1.7.3'`. * The complete build log is located at '/var/tmp/portage/net-misc/wicd-1.7.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/wicd-1.7.3/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/wicd-1.7.3/work/wicd-1.7.3' * S: '/var/tmp/portage/net-misc/wicd-1.7.3/work/wicd-1.7.3' * * The following package has failed to build or install: * * (net-misc/wicd-1.7.3::gentoo, ebuild scheduled for merge)
I am also hitting this issue. I've found a patch for that here https://suigintou.weedy.ca/trac/gentoo-overlay/browser/net-misc/wicd/files/wicd-9999-undefined-LANG.patch
(In reply to Piotr Karbowski from comment #8) > I am also hitting this issue. I've found a patch for that here > https://suigintou.weedy.ca/trac/gentoo-overlay/browser/net-misc/wicd/files/ > wicd-9999-undefined-LANG.patch This patch clarifies something. The .get method returns nothing instead of throwing an exception. I applied the patch. Please reopen if there are still problems. Thanks everybody.