ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@immo.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Cc: "Dmitry V. Levin" <ldv@altlinux.org>
Subject: [devel] Q: rpm, sandman и _allow_undefined_macros
Date: Tue, 25 Oct 2005 13:53:17 +0400
Message-ID: <20051025095317.GM26680@immo.ru> (raw)


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

             reply	other threads:[~2005-10-25  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25  9:53 Alexey I. Froloff [this message]
2005-10-25 10:59 ` 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=20051025095317.GM26680@immo.ru \
    --to=raorn@immo.ru \
    --cc=devel@lists.altlinux.org \
    --cc=ldv@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