* [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
* Re: [devel] Аргументы макросов rpm
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-16 16:45 ` [devel] Аргументы макросов rpm Dmitry V. Levin
1 sibling, 1 reply; 6+ messages in thread
From: Sergey V Turchin @ 2008-01-16 13:43 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
On Wednesday 16 January 2008, Alexey I. Froloff wrote:
[...]
> %ruby_build_std --ruby-path=%_bindir/ruby --without-ext
>
> Получаем:
>
> + ruby -rvendor-specific setup.rb config '%*'
> config: unknown option %*
Меня тоже интересует, можно ли без кавычек такие параметры
указывать?
[...]
P.S.
Так же интересно, можно ли внутри макроса строки переносить?
--
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] Аргументы макросов rpm
2008-01-16 12:03 [devel] Аргументы макросов rpm Alexey I. Froloff
2008-01-16 13:43 ` Sergey V Turchin
@ 2008-01-16 16:45 ` Dmitry V. Levin
2008-01-16 17:45 ` Alexey I. Froloff
1 sibling, 1 reply; 6+ messages in thread
From: Dmitry V. Levin @ 2008-01-16 16:45 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
On Wed, Jan 16, 2008 at 03:03:28PM +0300, Alexey I. Froloff wrote:
> Есть макрос следующего содержания:
[...]
> %ruby_build_std --ruby-path=%_bindir/ruby --without-ext
[...]
> %ruby_build_std ruby-path=%_bindir/ruby without-ext
[...]
> %ruby_build_std '--ruby-path=%_bindir/ruby' '--without-ext'
Сперва читаем /usr/share/doc/rpm-4.0.4/manual/macros,
потом уточняем вопрос.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] Аргументы макросов rpm
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
0 siblings, 1 reply; 6+ messages in thread
From: Dmitry V. Levin @ 2008-01-16 16:47 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
On Wed, Jan 16, 2008 at 04:43:05PM +0300, Sergey V Turchin wrote:
> On Wednesday 16 January 2008, Alexey I. Froloff wrote:
>
> [...]
> > %ruby_build_std --ruby-path=%_bindir/ruby --without-ext
> >
> > Получаем:
> >
> > + ruby -rvendor-specific setup.rb config '%*'
> > config: unknown option %*
> Меня тоже интересует, можно ли без кавычек такие параметры
> указывать?
>
> [...]
>
> P.S.
> Так же интересно, можно ли внутри макроса строки переносить?
Можно, в выводе от 'rpm --showrc' много примеров.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] Аргументы макросов rpm
2008-01-16 16:45 ` [devel] Аргументы макросов rpm Dmitry V. Levin
@ 2008-01-16 17:45 ` Alexey I. Froloff
0 siblings, 0 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2008-01-16 17:45 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
* Dmitry V. Levin <ldv@> [080116 19:50]:
> Сперва читаем /usr/share/doc/rpm-4.0.4/manual/macros,
> потом уточняем вопрос.
Понял. getopt(3). Я подумаю и вернусь ;-)
--
Regards,
Sir Raorn.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [devel] [SOLVED] перенос строк внутри макроса (was: Re: Аргументы макросов rpm)
2008-01-16 16:47 ` Dmitry V. Levin
@ 2008-01-17 13:10 ` Sergey V Turchin
0 siblings, 0 replies; 6+ messages in thread
From: Sergey V Turchin @ 2008-01-17 13:10 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
On Wednesday 16 January 2008, Dmitry V. Levin wrote:
[...]
> > P.S.
> > Так же интересно, можно ли внутри макроса строки переносить?
> Можно, в выводе от 'rpm --showrc' много примеров.
После сравнения с macros.d получилось с \\\
Я про перенос одной строки на несколько для удобства чтения глазами.
--
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 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