From: Anton Farygin <rider@altlinux.com>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Внутренние макросы в спеках
Date: Sat, 31 Mar 2007 14:39:02 +0400
Message-ID: <euldo9$le9$1@sea.gmane.org> (raw)
In-Reply-To: <20070330120122.GA25134@mail.gu.net>
Victor Forsyuk wrote:
> On Fri, Mar 30, 2007 at 02:14:49PM +0300, Глодин С.В. <hlodin@komo.ua> wrote:
>> Здравствуйте!
>>
>> п'ятниця, 30-бер-2007, Slava Semushin написав:
>>> Я уже давно из всех своих спеков изжил все стандартные макросы (типа
>>> %__mv, %__cp, %__install, %__mkdir_p и прочие подобные для стандартных
>>> комманд), потому что толку от них почти нет, а читабельность
>>> снижается.
>> Полный бред!
>
> Употребление таких выражений - плохая мысль. Даже если Вы совершенно уверены
> в своей правоте.
>
>> Наоборот -- эти макросы будут работать всегда, а вот /bin/mv
>> может переехать в /opt/mv (например) и что?
>
> Никогда. /bin/mv никогда в /opt/mv не переедет. :)
>
>> того, макросы могут описывать команды с дополнительными параметрами (такие
>> как %makeinstall, %configure). И что прикажете делать? В каждом спеке
>> описывать эти параметры?
>
> Речь не об отказе от макросов вообще. Речь идет о том, что не стоит
> пользоваться внутренними макросами (теми, которые начинаются с двух
> подчеркиваний :). Такие макросы как %configure, %make_build увеличивают
> читабельность, гибкость (позволяют изменять при необходимости параметры
> без переписывания спеков). %__mv и %__cp читаются хуже, пользы от их
> прописывния в спеке никакой.
>
> Кстаи вот:
> http://lists.altlinux.ru/pipermail/devel/2005-December/027129.html
От таких макросов может быть только одна польза - переопределение
системных команд при особо извращённой сборке.
Это реально может пригодится, и я этим иногда пользовался.
Rgds,
Rider
next prev parent reply other threads:[~2007-03-31 10:39 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 10:05 [sisyphus] А вот кому UML редактор Yuriy Kashirin
2007-03-30 10:15 ` Slava Semushin
2007-03-30 10:27 ` Alexey Morsov
2007-03-30 10:30 ` Slava Semushin
2007-03-30 10:41 ` Alexey Morsov
2007-03-30 11:14 ` Глодин С.В.
2007-03-30 11:18 ` Slava Semushin
2007-03-30 12:01 ` [sisyphus] Внутренние макросы в спеках Victor Forsyuk
2007-03-30 12:15 ` Глодин С.В.
2007-03-30 12:34 ` Victor Forsyuk
2007-03-30 12:54 ` Глодин С.В.
2007-04-02 2:09 ` Вадим Илларионов
2007-03-30 12:16 ` Alexey Morsov
2007-03-31 10:39 ` Anton Farygin [this message]
2007-03-30 12:41 ` [sisyphus] %__ Michael Shigorin
2007-03-30 12:57 ` Alexey Morsov
2007-03-30 13:10 ` Глодин С.В.
2007-03-30 15:25 ` Victor Forsyuk
2007-03-30 15:45 ` Глодин С.В.
2007-03-30 17:25 ` Michael Shigorin
2007-03-31 6:28 ` Глодин С.В.
2007-03-31 7:40 ` Michael Shigorin
2007-03-31 3:35 ` Хихин Руслан
2007-03-31 6:43 ` Глодин С.В.
2007-03-31 7:43 ` [sisyphus] портирование спеков Michael Shigorin
2007-04-01 5:35 ` Хихин Руслан
2007-03-30 10:36 ` [sisyphus] А вот кому UML редактор Yuriy Kashirin
2007-03-30 12:28 ` Michael Shigorin
2007-03-30 12:32 ` Yuriy Kashirin
2007-03-30 12:34 ` Alexey Morsov
2007-03-30 12:45 ` Michael Shigorin
2007-03-30 12:48 ` Stanislav Ievlev
2007-03-30 13:05 ` Igor Zubkov
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='euldo9$le9$1@sea.gmane.org' \
--to=rider@altlinux.com \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git