* [devel] глюкавый rpm (incoming i586 reject: python-2.4.4-alt9)
@ 2007-03-23 17:38 ` Alexey Tourbin
2007-03-23 17:46 ` Alexey Tourbin
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Tourbin @ 2007-03-23 17:38 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]
On Fri, Mar 23, 2007 at 06:48:31PM +0300, Upravdom Team Robot wrote:
> Dear Alexey Tourbin (AT)!
> The python-2.4.4-alt9 package has been rejected from incoming for i586
> architecture.
>
> Possible reason follows:
> error: File not found: /usr/src/tmp/python-buildroot/usr/lib/python2.4/token.pyc
> error: File not found: /usr/src/tmp/python-buildroot/usr/lib/python2.4/symbol.pyc
> error: File not found: /usr/src/tmp/python-buildroot/usr/lib/python2.4/token.pyo
> error: File not found: /usr/src/tmp/python-buildroot/usr/lib/python2.4/symbol.pyo
Глюкавый rpm.
В python.spec присутствует:
%prep
%setup -q -n Python-%version
%undefine _python_compile_skip_x
Так вот, этот undefined больше не работает, потому что макрос
_python_compile_skip_x я продублировал в /etc/rpm/macros.d/python.
Т.е. если макрос где-то продублирован, то undefined не работает!!
Доказательство.
$ cat test.spec
Name: test
Version: 1.0
Release: alt1
Summary: test
License: GPL
Group: Development/Other
%description
%prep
%undefine foo
: %foo
%build
: %foo
%install
: %foo
%files
$
Смотрим как он раскрывается.
$ rpm -bE test.spec |grep ^:
warning: Macro %foo not found
warning: Macro %foo not found
warning: Macro %foo not found
: %foo
: %foo
: %foo
$
Теперь добавляем ПЕРВОЕ определение %foo в /usr/lib/rpm/*/macros:
# echo '%foo bar' >/usr/lib/rpm/athlon-alt-linux/macros
$ rpm -bE test.spec |grep ^:
warning: Macro %foo not found
warning: Macro %foo not found
warning: Macro %foo not found
: %foo
: %foo
: %foo
$
Теперь добавляем ВТОРОЕ определение %foo в /etc/rpm/macros.d/foo:
# echo '%foo baz' >/etc/rpm/macros.d/foo
$ rpm -bE test.spec |grep ^:
: bar
: bar
: bar
$
Опа! '%undefine foo' больше не работает!!
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] глюкавый rpm (incoming i586 reject: python-2.4.4-alt9)
2007-03-23 17:38 ` [devel] глюкавый rpm (incoming i586 reject: python-2.4.4-alt9) Alexey Tourbin
@ 2007-03-23 17:46 ` Alexey Tourbin
2007-03-23 18:14 ` Alexey Tourbin
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Tourbin @ 2007-03-23 17:46 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
On Fri, Mar 23, 2007 at 08:38:08PM +0300, Alexey Tourbin wrote:
> Теперь добавляем ВТОРОЕ определение %foo в /etc/rpm/macros.d/foo:
>
> # echo '%foo baz' >/etc/rpm/macros.d/foo
> $ rpm -bE test.spec |grep ^:
> : bar
> : bar
> : bar
> $
>
> Опа! '%undefine foo' больше не работает!!
Похоже, что он пихает %define'ы в стек, а при %undefine делает pop.
Т.е. появляется предыдущее значение, как у local переменных.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] глюкавый rpm (incoming i586 reject: python-2.4.4-alt9)
2007-03-23 17:46 ` Alexey Tourbin
@ 2007-03-23 18:14 ` Alexey Tourbin
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Tourbin @ 2007-03-23 18:14 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
On Fri, Mar 23, 2007 at 08:46:11PM +0300, Alexey Tourbin wrote:
> On Fri, Mar 23, 2007 at 08:38:08PM +0300, Alexey Tourbin wrote:
> > Теперь добавляем ВТОРОЕ определение %foo в /etc/rpm/macros.d/foo:
> >
> > # echo '%foo baz' >/etc/rpm/macros.d/foo
> > $ rpm -bE test.spec |grep ^:
> > : bar
> > : bar
> > : bar
> > $
> >
> > Опа! '%undefine foo' больше не работает!!
>
> Похоже, что он пихает %define'ы в стек, а при %undefine делает pop.
> Т.е. появляется предыдущее значение, как у local переменных.
https://www.redhat.com/archives/rpm-list/2002-January/thread.html#00142
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-23 18:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23 17:38 ` [devel] глюкавый rpm (incoming i586 reject: python-2.4.4-alt9) Alexey Tourbin
2007-03-23 17:46 ` Alexey Tourbin
2007-03-23 18:14 ` Alexey Tourbin
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