From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] U: Безусловный LC_ALL=C в /usr/lib/rpm/functions
Date: Tue, 19 Feb 2013 23:46:33 +0400
Message-ID: <5123D699.1080300@solin.spb.ru> (raw)
In-Reply-To: <20130219192536.GA23799@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 3225 bytes --]
19.02.2013 23:25, Dmitry V. Levin пишет:
> On Tue, Feb 19, 2013 at 06:02:00PM +0400, Aleksey Avdeev wrote:
>> 19.02.2013 15:04, Aleksey Avdeev пишет:
>>> 18.01.2013 15:41, REAL пишет:
>>>> привет!
>>>>
>>>> кто-нибудь может подсказать, что изменилось и как теперь с этим жить?
>>>
>>> См.
>>> <http://git.altlinux.org/people/ldv/packages/?p=rpm.git;a=commitdiff;h=279f487ca4461fc3cc29bc7eb9ea05a45abba4c1>.
>
> Я же ясно там написал: "A lot of code relies on C collation, C messages
> and so on. Do not pretend it is expected to work with a non-C locale."
> Скажите, пожалуйста, какая часть этого комментария недостаточно понятна?
Этот комментарий понятен. Но не UTF8 локаль _гарантировано_ ломает
байткомпиляцию pycairo (с чего всё и началось):
Bytecompiling python3 modules in
/usr/src/tmp/python3-module-pycairo-buildroot using /usr/bin/python3
Traceback (most recent call last):
File "/usr/lib/rpm/python3.compileall.py", line 131, in <module>
exit_status = bool(main())
File "/usr/lib/rpm/python3.compileall.py", line 128, in main
return compile_path(**dopt)
File "/usr/lib/rpm/python3.compileall.py", line 93, in compile_path
compile_all(join_prefix(prefix,item),[join_prefix(prefix,x) for x in
exclude],deep,skip_x,clean,prefix)
File "/usr/lib/rpm/python3.compileall.py", line 81, in compile_all
compile_all(p,exclude,deep-1,skip_x,clean,prefix)
File "/usr/lib/rpm/python3.compileall.py", line 81, in compile_all
compile_all(p,exclude,deep-1,skip_x,clean,prefix)
File "/usr/lib/rpm/python3.compileall.py", line 84, in compile_all
if not (skip_x and executable(p)) :
File "/usr/lib/rpm/python3.compileall.py", line 60, in executable
line = open(file).readline()
File "/usr/lib64/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 14:
ordinal not in range(128)
Как быть с этим?
Т. е. на данный момент ситуация выглядит так:
1. Локаль отличная от C зло, т. к. может взорвать некоторые скрипты.
2. У нас есть миниум 1 модуль, сборка которого взрывается, если локаль C
прибить гвоздями.
>
>>> У нас сейчас в /usr/lib/rpm/functions выставляется безусловный
>>> LC_ALL=C. Т. е. выставленное в спеке LC_ALL=en_US.UTF-8 не добирается до
>>> потребителя (/usr/bin/python3) вызываемого в скрипте
>>> /usr/lib/rpm/brp.d/096-bytecompile_python3.brp, т. к. перекрывается аж в
>>> двух вызовах /usr/lib/rpm/functions (в /usr/lib/rpm/brp-alt и самом
>>> /usr/lib/rpm/brp.d/096-bytecompile_python3.brp).
>>>
>>> Похоже, нужна ручка для запрета перекрыия правильного LC_ALL в
>>> /usr/lib/rpm/functions.
>>
>> И такая ручка у нас есть (цитирую
>> /usr/share/doc/rpm-4.0.4/README.ALT-ru_RU.UTF-8):
>>
>> Управление процессом сборки.
>> ...
>> %_build_lang:
>> значение переменных LANG, LANGUAGE и LC_ALL;
>
> Надо убрать этот %_build_lang подальше, его включение ломает скрипты,
> совсем недавно кто-то на это опять наступил.
А я сейчас (как и real@ ранее) -- наступил на слом сборки, если локаль
не UTF8... И как быть?
--
С уважением. Алексей.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 897 bytes --]
next prev parent reply other threads:[~2013-02-19 19:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 11:41 ` [devel] Fwd: python3-module-pycairo-1.10.1-alt3.git20120819: Sisyphus/x86_64 test rebuild failed REAL
2013-01-18 11:43 ` REAL
2013-01-18 11:11 ` Sergei Epiphanov
2013-01-18 12:18 ` REAL
2013-01-18 11:17 ` Dmitry V. Levin
2013-02-19 11:04 ` [devel] U: Безусловный LC_ALL=C в /usr/lib/rpm/functions (was: Fwd: python3-module-pycairo-1.10.1-alt3.git20120819: Sisyphus/x86_64 test rebuild failed) Aleksey Avdeev
2013-02-19 12:18 ` Ivan A. Melnikov
2013-02-19 12:41 ` [devel] U: Безусловный LC_ALL=C в /usr/lib/rpm/functions Aleksey Avdeev
2013-02-19 13:50 ` REAL
2013-02-19 14:02 ` Aleksey Avdeev
2013-02-19 19:25 ` Dmitry V. Levin
2013-02-19 19:46 ` Aleksey Avdeev [this message]
2013-02-19 20:02 ` Aleksey Avdeev
2013-02-20 6:25 ` Ivan A. Melnikov
2013-02-20 15:42 ` Aleksey Avdeev
2013-02-22 6:07 ` Ivan A. Melnikov
2013-02-22 7:13 ` REAL
2013-02-22 6:20 ` Ivan A. Melnikov
2013-02-22 9:12 ` Aleksey Avdeev
2013-02-22 9:32 ` Aleksey Avdeev
2013-02-22 21:47 ` Dmitry V. Levin
2013-02-22 6:21 ` Ivan A. Melnikov
2013-02-22 9:40 ` Aleksey Novodvorsky
2013-02-22 10:32 ` Aleksey Avdeev
2013-02-20 5:02 ` REAL
2013-02-20 6:11 ` Aleksey Avdeev
2013-02-21 14:16 ` [devel] U: [rpm-build-python3] LC_ALL=en_US.utf8 для python3.compileall.py (was: Безусловный LC_ALL=C в /usr/lib/rpm/functions) Aleksey Avdeev
2013-02-21 17:27 ` [devel] U: [rpm-build-python3] LC_ALL=en_US.utf8 для python3.compileall.py Aleksey Avdeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5123D699.1080300@solin.spb.ru \
--to=solo@solin.spb.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git