ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] %find_lang test and policy
Date: Sat, 27 Feb 2010 00:46:03 +0200
Message-ID: <20100226224603.GA28685@dad.imath.kiev.ua> (raw)
In-Reply-To: <20100226222638.GA24310@wo.int.altlinux.org>

On Sat, Feb 27, 2010 at 01:26:38AM +0300, Dmitry V. Levin wrote:
> On Fri, Feb 26, 2010 at 10:07:51PM +0200, Igor Vlasenko wrote:
> > Уважаемые коллеги,
> > по заказу Юрия Седунова пишу новый тест repocop 
> > на выявление непомеченных как %lang(..)
> > локально-зависимых файлов.
> > 
> > Обоснование теста вынесено с ОсобенностиСборкиПакетов
> > в отдельную страницу 
> > http://www.altlinux.org/FindLangPolicy
> > чтобы лучше документировать,
> > а так же чтобы формально принять как полиси 
> > (фактически оно действует).
> > 
> > Прошу принять как полиси.
> > 
> > Уже только по поводу не помеченных 
> > /usr/share/locale/* 
> > под ругань будущего теста попадает 476 пакетов,
> 
> 476 пакетов -- это очень много.  

Если исключить en_US, en_GB, связанные с текущей реализацией
%find_lang, останется 87:
select count(distinct pkgid) from rpm_files where filename glob '/usr/share/locale/*' AND filelang = '' AND filename not glob '/usr/share/locale/en*';
87

Это уже скорее всего записи в спеке вида 
%_datadir/locale/*/*.po 
 
> > Т.е. /usr/share/locale/en_GB/LC_MESSAGES/freeciv.mo
> > не помечен как %lang(en_GB).
> > С чем это связанно?
> Я проверил, freeciv/po/en_GB.po содержит перевод с AmE на BrE.
> Однако %find_lang обучен не вешать %lang(en).

ок, отмечу на
http://www.altlinux.org/FindLangPolicy

> Скорее всего, это значит, что надо искать
> какой-то другой подход.  Например, реализовать в rpm-build дополнительный
> функционал по автоматическому навешиванию правильного %lang на файлы
> специального вида.

Ок, тогда не буду торопиться,
жду вашего решения.

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



  reply	other threads:[~2010-02-26 22:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26 20:07 Igor Vlasenko
2010-02-26 22:26 ` Dmitry V. Levin
2010-02-26 22:46   ` Igor Vlasenko [this message]
2010-02-26 23:35   ` Igor Vlasenko
2010-02-28 15:43     ` Aleksey Avdeev
2010-02-28 15:57       ` Andrey Rahmatullin
2010-02-28 16:07       ` Michael Shigorin
2010-02-26 23:40   ` Igor Vlasenko
2010-02-27  7:09 ` Sergei Epiphanov
2010-02-27 12:41   ` Igor Vlasenko
2010-03-01 14:07     ` Victor Forsiuk
2010-03-01 15:12       ` Igor Vlasenko
2010-03-19 15:58           ` Igor Vlasenko
2010-03-19 16:19           ` Sergey V Turchin
2010-03-02  6:06       ` Slava Semushin
2010-03-14 17:22 ` Igor Vlasenko

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=20100226224603.GA28685@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --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