ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] rpm macros
@ 2006-09-10 18:59 Alexey Tourbin
  2006-09-11  4:00 ` Alexey Tourbin
  0 siblings, 1 reply; 30+ messages in thread
From: Alexey Tourbin @ 2006-09-10 18:59 UTC (permalink / raw)
  To: devel

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

Вопрос по brainfuck^W rpm macros.

Я хочу один раз подменить __find_requires и __find_provides, отдав в
качестве аргумента новому значению текущее значение:

%fpc_global()	%{?!fpc_%1:%{expand:%%global %1 %2 %%%1%%global fpc_%1 %2}}
%fpc_macro	%([ -x %_rpmlibdir/fpc2.req ])%{fpc_global __find_requires %_rpmlibdir/fpc2.req}%{fpc_global __find_provides %_rpmlibdir/fpc2.prov}
%fpc_dir	%fpc_macro%_libdir/fpc2
%fpc_make	make RELEASE=1 CREATESMART=1 LINKSMART=1 FPCDIR=%fpc_dir

К сожалению аргументы накапливаются в цикле:

$ rpm --eval $'%fpc_dir\n%fpc_make\n%__find_requires'           
/usr/lib/fpc2
make RELEASE=1 CREATESMART=1 LINKSMART=1 FPCDIR=/usr/lib/fpc2
/usr/lib/rpm/fpc2.req /usr/lib/rpm/fpc2.req /usr/lib/rpm/find-requires
$

Что я делаю не так?  Как сделать правильно?

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

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

* Re: [devel] rpm macros
  2006-09-10 18:59 [devel] rpm macros Alexey Tourbin
@ 2006-09-11  4:00 ` Alexey Tourbin
  2006-11-05 21:21   ` [devel] spt/spt3 Денис Смирнов
  0 siblings, 1 reply; 30+ messages in thread
From: Alexey Tourbin @ 2006-09-11  4:00 UTC (permalink / raw)
  To: devel

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

On Sun, Sep 10, 2006 at 10:59:13PM +0400, Alexey Tourbin wrote:
> Вопрос по brainfuck^W rpm macros.
> 
> Я хочу один раз подменить __find_requires и __find_provides, отдав в
> качестве аргумента новому значению текущее значение:
> 
> %fpc_global()	%{?!fpc_%1:%{expand:%%global %1 %2 %%%1%%global fpc_%1 %2}}

%fpc_global()	%{expand:%%{?!fpc_%1:%%global %1 %2 %%%1%%global fpc_%1 %2}}

Так работает.  По-видимому имя переменной в ?! не может содержать ещё
одну меременную, примерно как в шелле.  Значт, нужен ещё один eval.

> %fpc_macro	%([ -x %_rpmlibdir/fpc2.req ])%{fpc_global __find_requires %_rpmlibdir/fpc2.req}%{fpc_global __find_provides %_rpmlibdir/fpc2.prov}
> %fpc_dir	%fpc_macro%_libdir/fpc2
> %fpc_make	make RELEASE=1 CREATESMART=1 LINKSMART=1 FPCDIR=%fpc_dir
> 
> К сожалению аргументы накапливаются в цикле:
> 
> $ rpm --eval $'%fpc_dir\n%fpc_make\n%__find_requires'           
> /usr/lib/fpc2
> make RELEASE=1 CREATESMART=1 LINKSMART=1 FPCDIR=/usr/lib/fpc2
> /usr/lib/rpm/fpc2.req /usr/lib/rpm/fpc2.req /usr/lib/rpm/find-requires
> $

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

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

* [devel] spt/spt3
  2006-09-11  4:00 ` Alexey Tourbin
@ 2006-11-05 21:21   ` Денис Смирнов
  2006-11-05 21:36     ` Dmitry V. Levin
  0 siblings, 1 reply; 30+ messages in thread
From: Денис Смирнов @ 2006-11-05 21:21 UTC (permalink / raw)
  To: devel

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

Есть ценное предложение spt-строителям.

spt штука большая, и не всем может подходить для своих целей. Но у всех
дистрибутивостроительных велосипедов, работающих поверх hasher'а есть море
общего кода.

Предлагаю этот код вынести в отдельные маленькие утилиты, которые бы
использовались spt, spt3 и самодельными велосипедами.

Собственно если кто-то из работающих над spt/spt3 согласиться потратить
свое время на то чтобы посмотреть что у меня получиться, и попинать -- я
это сделаю.

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
Чтобы "заткнуть дыру", я "пошел на сделку с совестью" и отключил тесты.
		-- at in devel@

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

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

* Re: [devel] spt/spt3
  2006-11-05 21:21   ` [devel] spt/spt3 Денис Смирнов
@ 2006-11-05 21:36     ` Dmitry V. Levin
  2006-11-06  5:37       ` Hihin Ruslan
  2006-11-06 16:03       ` Денис Смирнов
  0 siblings, 2 replies; 30+ messages in thread
From: Dmitry V. Levin @ 2006-11-05 21:36 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Mon, Nov 06, 2006 at 12:21:20AM +0300, Денис Смирнов wrote:
> Есть ценное предложение spt-строителям.
> 
> spt штука большая, и не всем может подходить для своих целей. Но у всех
> дистрибутивостроительных велосипедов, работающих поверх hasher'а есть море
> общего кода.
> 
> Предлагаю этот код вынести в отдельные маленькие утилиты, которые бы
> использовались spt, spt3 и самодельными велосипедами.
> 
> Собственно если кто-то из работающих над spt/spt3 согласиться потратить
> свое время на то чтобы посмотреть что у меня получиться, и попинать -- я
> это сделаю.

Как-то раз я был свидетелем того, как все известные мне действующие
spt-строители (~4 чел.) собрались в одной комнате, чтобы обсудить будущее spt.
Оказалось, что приоритеты развития spt у них отличаются, и у меня не сложилось
ощущение того, что они договорились по принципиальным вопросам.

Может быть они сами выскажутся...


-- 
ldv

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

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

* Re: [devel] spt/spt3
  2006-11-05 21:36     ` Dmitry V. Levin
@ 2006-11-06  5:37       ` Hihin Ruslan
  2006-11-06 16:03       ` Денис Смирнов
  1 sibling, 0 replies; 30+ messages in thread
From:  @ 2006-11-06  5:37 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-05 21:36     ` Dmitry V. Levin
  2006-11-06  5:37       ` Hihin Ruslan
@ 2006-11-06 16:03       ` Денис Смирнов
  2006-11-07  8:14         ` Konstantin A. Lepikhov
  1 sibling, 1 reply; 30+ messages in thread
From:  @ 2006-11-06 16:03 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-06 16:03       ` Денис Смирнов
@ 2006-11-07  8:14         ` Konstantin A. Lepikhov
  2006-11-07  8:33           ` Денис Смирнов
  2006-11-07 10:17           ` [devel] spt/spt3 Mikhail Yakshin
  0 siblings, 2 replies; 30+ messages in thread
From:  @ 2006-11-07  8:14 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07  8:14         ` Konstantin A. Lepikhov
@ 2006-11-07  8:33           ` Денис Смирнов
  2006-11-07  8:36             ` Konstantin A. Lepikhov
  2006-11-07 10:17           ` [devel] spt/spt3 Mikhail Yakshin
  1 sibling, 1 reply; 30+ messages in thread
From:  @ 2006-11-07  8:33 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07  8:33           ` Денис Смирнов
@ 2006-11-07  8:36             ` Konstantin A. Lepikhov
  2006-11-07  9:25               ` [devel] double chroot Alex V. Myltsev
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07  8:36 UTC (permalink / raw)




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

* Re: [devel] double chroot
  2006-11-07  8:36             ` Konstantin A. Lepikhov
@ 2006-11-07  9:25               ` Alex V. Myltsev
  2006-11-07 20:31                 ` Денис Смирнов
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07  9:25 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07  8:14         ` Konstantin A. Lepikhov
  2006-11-07  8:33           ` Денис Смирнов
@ 2006-11-07 10:17           ` Mikhail Yakshin
  2006-11-07 10:36             ` Konstantin A. Lepikhov
  1 sibling, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 10:17 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 10:17           ` [devel] spt/spt3 Mikhail Yakshin
@ 2006-11-07 10:36             ` Konstantin A. Lepikhov
  2006-11-07 11:29               ` Mikhail Yakshin
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 10:36 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 10:36             ` Konstantin A. Lepikhov
@ 2006-11-07 11:29               ` Mikhail Yakshin
  2006-11-07 11:44                 ` Konstantin A. Lepikhov
                                   ` (3 more replies)
  0 siblings, 4 replies; 30+ messages in thread
From:  @ 2006-11-07 11:29 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 11:29               ` Mikhail Yakshin
@ 2006-11-07 11:44                 ` Konstantin A. Lepikhov
  2006-11-07 12:41                 ` Sergey Vlasov
                                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 30+ messages in thread
From:  @ 2006-11-07 11:44 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 11:29               ` Mikhail Yakshin
  2006-11-07 11:44                 ` Konstantin A. Lepikhov
@ 2006-11-07 12:41                 ` Sergey Vlasov
  2006-11-07 13:01                   ` Konstantin A. Lepikhov
  2006-11-07 20:34                 ` [devel] spt/spt3 Денис Смирнов
  2006-11-07 22:17                 ` Dmitry V. Levin
  3 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 12:41 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 12:41                 ` Sergey Vlasov
@ 2006-11-07 13:01                   ` Konstantin A. Lepikhov
  2006-11-07 13:08                     ` Dmitry V. Levin
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 13:01 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 13:01                   ` Konstantin A. Lepikhov
@ 2006-11-07 13:08                     ` Dmitry V. Levin
  2006-11-07 13:40                       ` [devel] vzctl Slava Dubrovskiy
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 13:08 UTC (permalink / raw)




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

* Re: [devel] vzctl
  2006-11-07 13:08                     ` Dmitry V. Levin
@ 2006-11-07 13:40                       ` Slava Dubrovskiy
  2006-11-07 15:17                         ` Dmitry V. Levin
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 13:40 UTC (permalink / raw)




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

* Re: [devel] vzctl
  2006-11-07 13:40                       ` [devel] vzctl Slava Dubrovskiy
@ 2006-11-07 15:17                         ` Dmitry V. Levin
  0 siblings, 0 replies; 30+ messages in thread
From:  @ 2006-11-07 15:17 UTC (permalink / raw)




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

* Re: [devel] double chroot
  2006-11-07  9:25               ` [devel] double chroot Alex V. Myltsev
@ 2006-11-07 20:31                 ` Денис Смирнов
  2006-11-07 21:32                   ` [devel] [JT] " Alex V. Myltsev
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 20:31 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 11:29               ` Mikhail Yakshin
  2006-11-07 11:44                 ` Konstantin A. Lepikhov
  2006-11-07 12:41                 ` Sergey Vlasov
@ 2006-11-07 20:34                 ` Денис Смирнов
  2006-11-07 22:09                   ` Dmitry V. Levin
  2006-11-07 22:17                 ` Dmitry V. Levin
  3 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 20:34 UTC (permalink / raw)




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

* Re: [devel] [JT] double chroot
  2006-11-07 20:31                 ` Денис Смирнов
@ 2006-11-07 21:32                   ` Alex V. Myltsev
  2006-11-07 23:24                     ` Денис Смирнов
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 21:32 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 20:34                 ` [devel] spt/spt3 Денис Смирнов
@ 2006-11-07 22:09                   ` Dmitry V. Levin
  2006-12-09  9:29                     ` Hihin Ruslan
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 22:09 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 11:29               ` Mikhail Yakshin
                                   ` (2 preceding siblings ...)
  2006-11-07 20:34                 ` [devel] spt/spt3 Денис Смирнов
@ 2006-11-07 22:17                 ` Dmitry V. Levin
  3 siblings, 0 replies; 30+ messages in thread
From:  @ 2006-11-07 22:17 UTC (permalink / raw)




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

* Re: [devel] [JT] double chroot
  2006-11-07 21:32                   ` [devel] [JT] " Alex V. Myltsev
@ 2006-11-07 23:24                     ` Денис Смирнов
  2006-11-08  5:55                       ` Alex V. Myltsev
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-11-07 23:24 UTC (permalink / raw)




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

* Re: [devel] [JT] double chroot
  2006-11-07 23:24                     ` Денис Смирнов
@ 2006-11-08  5:55                       ` Alex V. Myltsev
  0 siblings, 0 replies; 30+ messages in thread
From:  @ 2006-11-08  5:55 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-11-07 22:09                   ` Dmitry V. Levin
@ 2006-12-09  9:29                     ` Hihin Ruslan
  2006-12-10  0:54                       ` Mikhail Yakshin
  0 siblings, 1 reply; 30+ messages in thread
From:  @ 2006-12-09  9:29 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-12-09  9:29                     ` Hihin Ruslan
@ 2006-12-10  0:54                       ` Mikhail Yakshin
  2006-12-10  6:21                         ` Hihin Ruslan
  2006-12-10  9:28                         ` Konstantin A. Lepikhov
  0 siblings, 2 replies; 30+ messages in thread
From:  @ 2006-12-10  0:54 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-12-10  0:54                       ` Mikhail Yakshin
@ 2006-12-10  6:21                         ` Hihin Ruslan
  2006-12-10  9:28                         ` Konstantin A. Lepikhov
  1 sibling, 0 replies; 30+ messages in thread
From:  @ 2006-12-10  6:21 UTC (permalink / raw)




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

* Re: [devel] spt/spt3
  2006-12-10  0:54                       ` Mikhail Yakshin
  2006-12-10  6:21                         ` Hihin Ruslan
@ 2006-12-10  9:28                         ` Konstantin A. Lepikhov
  1 sibling, 0 replies; 30+ messages in thread
From:  @ 2006-12-10  9:28 UTC (permalink / raw)




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

end of thread, other threads:[~2006-12-10  9:28 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-10 18:59 [devel] rpm macros Alexey Tourbin
2006-09-11  4:00 ` Alexey Tourbin
2006-11-05 21:21   ` [devel] spt/spt3 Денис Смирнов
2006-11-05 21:36     ` Dmitry V. Levin
2006-11-06  5:37       ` Hihin Ruslan
2006-11-06 16:03       ` Денис Смирнов
2006-11-07  8:14         ` Konstantin A. Lepikhov
2006-11-07  8:33           ` Денис Смирнов
2006-11-07  8:36             ` Konstantin A. Lepikhov
2006-11-07  9:25               ` [devel] double chroot Alex V. Myltsev
2006-11-07 20:31                 ` Денис Смирнов
2006-11-07 21:32                   ` [devel] [JT] " Alex V. Myltsev
2006-11-07 23:24                     ` Денис Смирнов
2006-11-08  5:55                       ` Alex V. Myltsev
2006-11-07 10:17           ` [devel] spt/spt3 Mikhail Yakshin
2006-11-07 10:36             ` Konstantin A. Lepikhov
2006-11-07 11:29               ` Mikhail Yakshin
2006-11-07 11:44                 ` Konstantin A. Lepikhov
2006-11-07 12:41                 ` Sergey Vlasov
2006-11-07 13:01                   ` Konstantin A. Lepikhov
2006-11-07 13:08                     ` Dmitry V. Levin
2006-11-07 13:40                       ` [devel] vzctl Slava Dubrovskiy
2006-11-07 15:17                         ` Dmitry V. Levin
2006-11-07 20:34                 ` [devel] spt/spt3 Денис Смирнов
2006-11-07 22:09                   ` Dmitry V. Levin
2006-12-09  9:29                     ` Hihin Ruslan
2006-12-10  0:54                       ` Mikhail Yakshin
2006-12-10  6:21                         ` Hihin Ruslan
2006-12-10  9:28                         ` Konstantin A. Lepikhov
2006-11-07 22:17                 ` 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