ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Как собирать -static пакеты?
@ 2004-12-17 12:05 Grigory Batalov
  2004-12-17 12:13 ` Dmitry V. Levin
  2004-12-17 21:42 ` Mikhail Zabaluev
  0 siblings, 2 replies; 4+ messages in thread
From: Grigory Batalov @ 2004-12-17 12:05 UTC (permalink / raw)
  To: devel

Здравствуйте!

Посоветуйте, как правильно (не) собирать -devel-static пакеты?
Я нашёл два варианта:

---
%if_with static
%files devel-static
...
%endif
---
rpmbuild -bb --with static --target i586 mycool.spec

или

---
%if_enabled static
%files devel-static
...
%endif
---
rpmbuild -bb --enable static --target i586 mycool.spec

Какой из них (или другой) правильнее?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Как собирать -static пакеты?
  2004-12-17 12:05 [devel] Как собирать -static пакеты? Grigory Batalov
@ 2004-12-17 12:13 ` Dmitry V. Levin
  2004-12-17 21:42 ` Mikhail Zabaluev
  1 sibling, 0 replies; 4+ messages in thread
From: Dmitry V. Levin @ 2004-12-17 12:13 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 281 bytes --]

Hi,

On Fri, Dec 17, 2004 at 03:05:14PM +0300, Grigory Batalov wrote:
> Посоветуйте, как правильно (не) собирать -devel-static пакеты?

%def_disable static
[...]
%configure %{subst_enable static}
[...]
%if_enabled static
%files devel-static
[...]
%endif


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Как собирать -static пакеты?
  2004-12-17 12:05 [devel] Как собирать -static пакеты? Grigory Batalov
  2004-12-17 12:13 ` Dmitry V. Levin
@ 2004-12-17 21:42 ` Mikhail Zabaluev
  2004-12-18 18:41   ` Dmitry V. Levin
  1 sibling, 1 reply; 4+ messages in thread
From: Mikhail Zabaluev @ 2004-12-17 21:42 UTC (permalink / raw)
  To: ALT Devel discussion list

В Птн, 17/12/2004 в 15:05 +0300, Grigory Batalov пишет:
> Посоветуйте, как правильно (не) собирать -devel-static пакеты?
> Я нашёл два варианта:
> 
> ---
> %if_with static
> %files devel-static
> ...
> %endif
> ---
> rpmbuild -bb --with static --target i586 mycool.spec
> 
> или
> 
> ---
> %if_enabled static
> %files devel-static
> ...
> %endif
> ---
> rpmbuild -bb --enable static --target i586 mycool.spec
> 
> Какой из них (или другой) правильнее?

Здесь правила те же, что и в configure: enable для внутренних фич, with
для включения/выключения внешних связей, обычно чреватых зависимостями.
static внутренняя фича, поэтому enabled.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Как собирать -static пакеты?
  2004-12-17 21:42 ` Mikhail Zabaluev
@ 2004-12-18 18:41   ` Dmitry V. Levin
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry V. Levin @ 2004-12-18 18:41 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 400 bytes --]

On Sat, Dec 18, 2004 at 12:42:53AM +0300, Mikhail Zabaluev wrote:
> Здесь правила те же, что и в configure: enable для внутренних фич, with
> для включения/выключения внешних связей, обычно чреватых зависимостями.
> static внутренняя фича, поэтому enabled.

Обычно выбор with/enable зависит от того, что нужно передать %configure.
Т.е. %{subst_with foo} или %{subst_enable foo}.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-18 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 12:05 [devel] Как собирать -static пакеты? Grigory Batalov
2004-12-17 12:13 ` Dmitry V. Levin
2004-12-17 21:42 ` Mikhail Zabaluev
2004-12-18 18:41   ` Dmitry V. Levin

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