ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] глюкавый rpm (incoming i586 reject: python-2.4.4-alt9)
Date: Fri, 23 Mar 2007 20:38:08 +0300
Message-ID: <20070323173808.GI6007@solemn.turbinal> (raw)
In-Reply-To: <20070323154831.48DE527FCA@hint1.office.altlinux.org>

[-- 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 --]

       reply	other threads:[~2007-03-23 17:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-23 17:38 ` Alexey Tourbin [this message]
2007-03-23 17:46   ` Alexey Tourbin
2007-03-23 18:14     ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070323173808.GI6007@solemn.turbinal \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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