Summary: | =net-misc/wicd-1.7.3: python error when running compile_translations | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Component: | Current packages | Assignee: | Thomas Kahle (RETIRED) <tomka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | grlowvichka, slashbeast |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Lars Wendler (Polynomial-C) (RETIRED)
2015-01-21 07:00:26 UTC
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. |