ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Аргументы макросов rpm
@ 2008-01-16 12:03 Alexey I. Froloff
  2008-01-16 13:43 ` Sergey V Turchin
  2008-01-16 16:45 ` [devel] Аргументы макросов rpm Dmitry V. Levin
  0 siblings, 2 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2008-01-16 12:03 UTC (permalink / raw)
  To: ALT Devel discussion list

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

Есть макрос следующего содержания:

%ruby_build_std() \
%ruby_config %* \
%ruby_build \
%nil

Пишем:

%build
%ruby_build_std

Всё нормально.


Пишем:

%build
%ruby_build_std --ruby-path=%_bindir/ruby --without-ext

Получаем:

+ ruby -rvendor-specific setup.rb config '%*'
config: unknown option %*
Try 'ruby setup.rb --help' for detailed usage.
error: Bad exit status from /var/tmp/rpm-tmp.88018 (%build)


RPM build errors:
    Unknown option ? in ruby_build_std()
    Macro %* not found
    Bad exit status from /var/tmp/rpm-tmp.88018 (%build)


Пишем:

%build
%ruby_build_std ruby-path=%_bindir/ruby without-ext

Получаем, как и ожидалось:

+ ruby -rvendor-specific setup.rb config ruby-path=/usr/bin/ruby without-ext
config: unknown option ruby-path=/usr/bin/ruby
Try 'ruby setup.rb --help' for detailed usage.
error: Bad exit status from /var/tmp/rpm-tmp.75120 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.75120 (%build)


Пишем:

%build
%ruby_build_std '--ruby-path=%_bindir/ruby' '--without-ext'

И всё магическим образом работает:

+ ruby -rvendor-specific setup.rb config --ruby-path=/usr/bin/ruby --without-ext
---> lib
...


Кто неправ?

-- 
Regards,
Sir Raorn.

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

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

end of thread, other threads:[~2008-01-17 13:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-16 12:03 [devel] Аргументы макросов rpm Alexey I. Froloff
2008-01-16 13:43 ` Sergey V Turchin
2008-01-16 16:47   ` Dmitry V. Levin
2008-01-17 13:10     ` [devel] [SOLVED] перенос строк внутри макроса (was: Re: Аргументы макросов rpm) Sergey V Turchin
2008-01-16 16:45 ` [devel] Аргументы макросов rpm Dmitry V. Levin
2008-01-16 17:45   ` Alexey I. Froloff

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