ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Re: php5-dbx-5.0.5-alt0.cvs20050729: rebuild failed
  @ 2005-10-10  6:51 ` Alexey I. Froloff
  2005-10-10  7:47   ` Alexey Gladkov
  2005-10-10  7:56   ` [devel] " Andrei Bulava
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey I. Froloff @ 2005-10-10  6:51 UTC (permalink / raw)
  To: devel

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

* QA Team Robot <qa@> [051010 02:49]:
> error: Macro %VERSION not found
>   1<   (empty)
>   0< Version:	
> error: line 4: Version:	
/etc/rpm/macros.d/php:
%php_version     %(rpmquery --qf='%{VERSION}' php5-devel)
%php_release     %(rpmquery --qf='%{RELEASE}' php5-devel)

Должно быть

%php_version     %(rpmquery --qf='%%{VERSION}' php5-devel)
%php_release     %(rpmquery --qf='%%{RELEASE}' php5-devel)

-- 
Regards, Sir Raorn.
-------------------
90% наших текущих пользователей - из зоны .ru.
Остальные 10% - читают руководства ;-)
		-- rider in devel@

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

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

* Re: [devel] Re: php5-dbx-5.0.5-alt0.cvs20050729: rebuild failed
  2005-10-10  6:51 ` [devel] Re: php5-dbx-5.0.5-alt0.cvs20050729: rebuild failed Alexey I. Froloff
@ 2005-10-10  7:47   ` Alexey Gladkov
  2005-10-10  7:56   ` [devel] " Andrei Bulava
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Gladkov @ 2005-10-10  7:47 UTC (permalink / raw)
  To: ALT Devel discussion list

Alexey I. Froloff пишет:
> /etc/rpm/macros.d/php:
> %php_version     %(rpmquery --qf='%{VERSION}' php5-devel)
> %php_release     %(rpmquery --qf='%{RELEASE}' php5-devel)
> 
> Должно быть
> 
> %php_version     %(rpmquery --qf='%%{VERSION}' php5-devel)
> %php_release     %(rpmquery --qf='%%{RELEASE}' php5-devel)

тогда уж должно быть как

%php_version %rpm_check_field -p php5-devel VERSION
%php_release %rpm_check_field -p php5-devel RELEASE

или так

%php_version %get_version php5-devel
%php_release %get_release php5-devel

кстати, вот пример

$ grep -lr '%php_\(version\|release\)' /usr/lib/rpm/*
/usr/lib/rpm/athlon-alt-linux/macros
/usr/lib/rpm/athlon-linux/macros
/usr/lib/rpm/i386-alt-linux/macros
/usr/lib/rpm/i386-linux/macros
/usr/lib/rpm/i486-alt-linux/macros
/usr/lib/rpm/i486-linux/macros
/usr/lib/rpm/i586-alt-linux/macros
/usr/lib/rpm/i586-linux/macros
/usr/lib/rpm/i686-alt-linux/macros
/usr/lib/rpm/i686-linux/macros
/usr/lib/rpm/k6-alt-linux/macros
/usr/lib/rpm/k6-linux/macros
/usr/lib/rpm/noarch-alt-linux/macros
/usr/lib/rpm/noarch-linux/macros
/usr/lib/rpm/pentium4-alt-linux/macros
/usr/lib/rpm/pentium4-linux/macros

давно лицезрею данные макросы.

-- 
Rgrds, legion


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

* Re: [devel] php5-dbx-5.0.5-alt0.cvs20050729: rebuild failed
  2005-10-10  6:51 ` [devel] Re: php5-dbx-5.0.5-alt0.cvs20050729: rebuild failed Alexey I. Froloff
  2005-10-10  7:47   ` Alexey Gladkov
@ 2005-10-10  7:56   ` Andrei Bulava
  1 sibling, 0 replies; 3+ messages in thread
From: Andrei Bulava @ 2005-10-10  7:56 UTC (permalink / raw)
  To: ALT Devel discussion list

Alexey I. Froloff wrote:
> * QA Team Robot <qa@> [051010 02:49]:
> 
>>error: Macro %VERSION not found
>>  1<   (empty)
>>  0< Version:	
>>error: line 4: Version:	
> 
> /etc/rpm/macros.d/php:
> %php_version     %(rpmquery --qf='%{VERSION}' php5-devel)
> %php_release     %(rpmquery --qf='%{RELEASE}' php5-devel)
> 
> Должно быть
> 
> %php_version     %(rpmquery --qf='%%{VERSION}' php5-devel)
> %php_release     %(rpmquery --qf='%%{RELEASE}' php5-devel)

Может, лучше прислушаться к нижеследующему?

> On Mon, Oct 10, 2005 at 01:40:34AM +0400, Dmitry V. Levin wrote:
> 
>>> Статистика такая: 190 из 355 непересобравшихся пакетов содержат ошибки
>>> типа "error: Macro %foo not found".  Большинство этих ошибок повторяются,
>>> т.е. они типовые.
> 
> 
> Как минимум следующие ошибки произошли из-за кривизны самодельных
> макросов, эмулирующих %get_version/%get_release/%get_serial:
> 
> php5-dbx-5.0.5-alt0.cvs20050729:error: Macro %VERSION not found

-- 
// AB1002-UANIC



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

end of thread, other threads:[~2005-10-10  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10  6:51 ` [devel] Re: php5-dbx-5.0.5-alt0.cvs20050729: rebuild failed Alexey I. Froloff
2005-10-10  7:47   ` Alexey Gladkov
2005-10-10  7:56   ` [devel] " Andrei Bulava

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