From: Ildar Mulyukov <ildar@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] макрос %subst_enable_to / %subst_with_to
Date: Wed, 17 Feb 2010 17:44:56 +0600
Message-ID: <1266407096.29798.1@ildar.innovations.kz> (raw)
In-Reply-To: <20100217112752.GC4161@ender.fondinvestrk.ru> (from ender@altlinux.org on Wed Feb 17 17:27:54 2010)
On 17.02.2010 17:27:54, Afanasov Dmitry wrote:
> On Wed, Feb 17, 2010 at 04:22:01PM +0500, Andrey Rahmatullin wrote:
> > On Wed, Feb 17, 2010 at 05:17:12PM +0600, Ildar Mulyukov wrote:
> > > Коллеги,
> > > интересует история макроса %subst_enable_to.
> > Что это и как работает?
> используется, например, в mplayer:
> %define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}}
> %%{expand:%%{?_disable_%{1}:--disable-%{2}}}
>
> вызов:
> %{subst_enable_to radio_v4l1 radio-v4l}
>
> оно там исторически, я сам всё по старинке:
> %{?_enable_feature:--enable-feature} :)
Хочу заметить, что это не то же самое (а Вы и не писали, что это то же
самое):
последний вариант никогда не скажет --disable, а %subst_enable_to -
скажет.
Короче говоря, имея не работающий во всех случаях %subst_enable,
хотелось бы хотя бы другой макрос, который работает.
--
Ildar
next prev parent reply other threads:[~2010-02-17 11:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 11:17 Ildar Mulyukov
2010-02-17 11:22 ` Andrey Rahmatullin
2010-02-17 11:27 ` Afanasov Dmitry
2010-02-17 11:44 ` Ildar Mulyukov [this message]
2010-02-17 12:23 ` Afanasov Dmitry
2010-02-17 15:37 ` Dmitry V. Levin
2010-02-18 3:56 ` Ildar Mulyukov
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=1266407096.29798.1@ildar.innovations.kz \
--to=ildar@altlinux.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