From: Alexey Tourbin <at@altlinux.ru> To: ALT Devel discussion list <devel@altlinux.ru> Subject: [devel] Re: %NotRequires/%NotProvides RPM macros Date: Wed, 26 May 2004 16:14:48 +0400 Message-ID: <20040526121448.GH19515@solemn.turbinal.org> (raw) In-Reply-To: <20040526105123.GF25560@basalt.office.altlinux.org> [-- Attachment #1: Type: text/plain, Size: 1638 bytes --] On Wed, May 26, 2004 at 02:51:23PM +0400, Dmitry V. Levin wrote: > > %NotRequires perl(warnings.pm) libz.so.1 > > %NotProvides perl(PerlIO/gzip.pm) > - имена странные Для сравнения. В MDK нужно писать: %define _requires_exceptions 'perl(warnings.pm)' libz.so.1 В PLD нужно писать: %define _noautoreq 'perl(warnings.pm)' libz.so.1 По сравнению с MDK/PLD суть моих предложений в следующем: - удобнее писать не %define, а использовать готовый макрос, семантика которого очевидна из названия - удобнее использовать shell patterns, а не `grep -v' - удобнее использовать автоматическое кворитрование аргументов, передаваемых скрипту Т.е. получается больше похоже на тэги Requires и Provides, что кажется мне более естественным. > - так на shellе не пишут: > strings=`"$@"` > echo "$strings" | while read string; do Я уже запутался, в каком порядке происходят substitutions, word splitting и т.д., как это связано с субшеллами, backticks, embedded newlines и т.п. Заодно узнал, что в bash субшелл порождается для _правой_ части пайпа, а левая часть пайпа остается работать в текущем шелле. (В zsh это работает с точностью до наоборот.) Поэтому в bourne shell не работает такой очевидный, казалось бы, код: echo "$strings" | while read string; do match= echo "$patterns" | while read pattern; do if [ -z "${string##$pattern}" ]; then match=1 break fi done if [ -z "$match" ]; then echo "$string" fi done Т.е. match=1 устанавливается в дочернем процессе, а по команде break субшелл радостно прекращает свою работу. Чево только не узнаешь. :) > -- > ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-05-26 12:14 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-05-25 23:21 [devel] " Alexey Tourbin 2004-05-26 8:03 ` Andrey Orlov 2004-05-26 10:51 ` Dmitry V. Levin 2004-05-26 12:14 ` Alexey Tourbin [this message] 2004-05-27 8:45 ` [devel] " Michael Shigorin 2004-05-27 9:01 ` Alexey Tourbin 2004-05-27 9:21 ` Michael Shigorin 2004-05-27 9:33 ` Alexey Tourbin 2004-05-27 10:28 ` Andrei Bulava 2004-05-27 10:42 ` Dmitry V. Levin 2004-05-27 14:09 ` Michael Shigorin 2005-09-29 20:18 ` Dmitry V. Levin 2005-09-29 22:54 ` [devel] " Andrei Bulava 2005-09-30 6:17 ` [devel] " Michael Shigorin 2005-09-30 9:00 ` Aleksey Avdeev 2005-09-30 9:13 ` Michael Shigorin 2004-05-27 17:04 ` Alexey Tourbin 2004-05-27 7:35 ` [devel] " Maxim Tyurin
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=20040526121448.GH19515@solemn.turbinal.org \ --to=at@altlinux.ru \ --cc=devel@altlinux.ru \ /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