From: Alexey Morozov <alex@idisys.iae.nsk.su> To: ALT Devel discussion list <devel@altlinux.ru> Subject: [devel] Странная бага в rpm Date: Mon, 29 Mar 2004 00:35:53 +0700 Message-ID: <20040328173553.GA28784@pyro.hopawar.private.net> (raw) [-- Attachment #1.1: Type: text/plain, Size: 635 bytes --] Такое ощущение что я (точнее, мы с Андреем Орловым) набрели на "Ужасную Багу" (TM) в rpm и его макроязыке (эх, говорила мне мама использовать dpkg :-)): итак демонстрация проблемы в аттачменте. Файлик rpmtest следует положить в /etc/rpm/macros.d/ Спеки test.spec и test1.spec отличаются одной единственной вещью: В test.spec явно задана архитектура сборки (через BuildArch), а в test1.spec эта строчка закомментирована. Для проведения теста достаточно последовательно сказать rpm -bp test1.spec rpm -bp test.spec и затем сравнить выводы этих команд. alex@pyro ~/RPM/SPECS $ rpm -q rpm rpm-4.0.4-alt36 alex@pyro ~/RPM/SPECS $ _ [-- Attachment #1.2: rpmtest --] [-- Type: text/plain, Size: 179 bytes --] %test_rpm_lang() \ %{expand: %%{?__rpm_test_variable: %%global __rpm_result_variable "ОШИБКА RPM!!!"}} \ %{expand: %%{!?__rpm_test_variable: %%global __rpm_test_variable %%nil}} [-- Attachment #1.3: test.spec --] [-- Type: text/plain, Size: 302 bytes --] Version: 0.1 Release: alt1 %test_rpm_lang Name: test Summary: A test spec License: GPL Group: Test BuildArch: noarch %description This is a test spec %prep echo %__rpm_result_variable %build %install %files %changelog * Sun Mar 28 2004 Alexey Morozov <morozov@altlinux.org> - Initial build. [-- Attachment #1.4: test1.spec --] [-- Type: text/plain, Size: 303 bytes --] Version: 0.1 Release: alt1 %test_rpm_lang Name: test Summary: A test spec License: GPL Group: Test #BuildArch: noarch %description This is a test spec %prep echo %__rpm_result_variable %build %install %files %changelog * Sun Mar 28 2004 Alexey Morozov <morozov@altlinux.org> - Initial build. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-03-28 17:35 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-28 17:35 Alexey Morozov [this message] 2004-03-28 17:52 ` Dmitry V. Levin
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=20040328173553.GA28784@pyro.hopawar.private.net \ --to=alex@idisys.iae.nsk.su \ --cc=devel@altlinux.ru \ /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