* [devel] Q: rpm, sandman и _allow_undefined_macros
@ 2005-10-25 9:53 Alexey I. Froloff
2005-10-25 10:59 ` Dmitry V. Levin
0 siblings, 1 reply; 2+ messages in thread
From: Alexey I. Froloff @ 2005-10-25 9:53 UTC (permalink / raw)
To: ALT Devel discussion list; +Cc: Dmitry V. Levin
[-- Attachment #1.1: Type: text/plain, Size: 568 bytes --]
Собирая seahorse таки стукнулся от проблему с нераскрытием
макросов в sandman'ской минимальной buildsystem.
Исправление этого потребовало добавления --define _allow... ровно
в одном месте - в вызов rpm -bE в pre-commit hook'е.
Можно rpm научить выставлять этот _allow... по умолчанию при
вызове rpm -bE ? Примерный патч приложен...
--
Regards, Alexey I. Froloff
AIF5-RIPN, AIF5-RIPE
-------------------------------------------
Inform-Mobil, Ltd. System Administrator
http://www.inform-mobil.ru/
Tel: +7(095)504-4709, Fax: +7(095)513-1006
[-- Attachment #1.2: rpm-4_0-4.0.4-preprocess-allow-undefined.patch --]
[-- Type: text/plain, Size: 755 bytes --]
diff -urN rpm-4_0-4.0.4-orig/build/parseSpec.c rpm-4_0-4.0.4/build/parseSpec.c
--- rpm-4_0-4.0.4-orig/build/parseSpec.c 2005-10-13 03:55:57 +0400
+++ rpm-4_0-4.0.4/build/parseSpec.c 2005-10-25 13:51:34 +0400
@@ -676,7 +676,7 @@
/*@-infloops@*/ /* LCL: parsePart is modified @*/
while (parsePart < PART_LAST && parsePart != PART_NONE) {
rpmBuiltinMacroLookup saved_lookup = rpmSetBuiltinMacroLookup(NULL);
- int saved_lookup_failed = rpmSetBuiltinMacroLookupFailedOK(rpmExpandNumeric("%{?_allow_undefined_macros}"));
+ int saved_lookup_failed = rpmSetBuiltinMacroLookupFailedOK(rpmExpandNumeric("%{?_allow_undefined_macros}") || preprocess);
switch (parsePart) {
case PART_PREAMBLE:
rpmSetBuiltinMacroLookup(is_builtin_preamble_tag);
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] Q: rpm, sandman и _allow_undefined_macros
2005-10-25 9:53 [devel] Q: rpm, sandman и _allow_undefined_macros Alexey I. Froloff
@ 2005-10-25 10:59 ` Dmitry V. Levin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2005-10-25 10:59 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 471 bytes --]
On Tue, Oct 25, 2005 at 01:53:17PM +0400, Alexey I. Froloff wrote:
> Собирая seahorse таки стукнулся от проблему с нераскрытием
> макросов в sandman'ской минимальной buildsystem.
>
> Исправление этого потребовало добавления --define _allow... ровно
> в одном месте - в вызов rpm -bE в pre-commit hook'е.
>
> Можно rpm научить выставлять этот _allow... по умолчанию при
> вызове rpm -bE ? Примерный патч приложен...
Логично. За патч спасибо.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-25 10:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-25 9:53 [devel] Q: rpm, sandman и _allow_undefined_macros Alexey I. Froloff
2005-10-25 10:59 ` Dmitry V. Levin
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