--- rpm-4.4.9/Doxyfile.in.orig 2007-05-13 05:20:43.000000000 +0200
+++ rpm-4.4.9/Doxyfile.in 2007-05-22 17:41:12.107028314 +0200
-@@ -504,23 +504,6 @@
+@@ -504,7 +504,6 @@
@top_srcdir@/doc/manual/spec \
@top_srcdir@/doc/manual/triggers \
@top_srcdir@/doc/manual/tsort \
-- @top_srcdir@/file/src/apprentice.c \
-- @top_srcdir@/file/src/apptype.c \
-- @top_srcdir@/file/src/ascmagic.c \
-- @top_srcdir@/file/src/compress.c \
-- @top_srcdir@/file/src/file.c \
-- @top_srcdir@/file/src/file.h \
-- @top_srcdir@/file/src/fsmagic.c \
-- @top_srcdir@/file/src/funcs.c \
-- @top_srcdir@/file/src/is_tar.c \
-- @top_srcdir@/file/src/magic.c \
-- @top_srcdir@/file/src/magic.h \
-- @top_srcdir@/file/src/names.h \
-- @top_srcdir@/file/src/print.c \
-- @top_srcdir@/file/src/readelf.c \
-- @top_srcdir@/file/src/readelf.h \
-- @top_srcdir@/file/src/softmagic.c \
- @top_srcdir@/file/src/tar.h \
@top_srcdir@/lib/cpio.c \
@top_srcdir@/lib/cpio.h \
+++ rpm-4.3/build/parsePreamble.c 2004-02-29 15:40:58.466804704 +0100
@@ -942,6 +943,12 @@
headerCopyTags(spec->packages->header, pkg->header,
- (int_32 *)copyTagsDuringParse);
+ (uint32_t *)copyTagsDuringParse);
+ if (headerGetEntry(pkg->header, RPMTAG_EPOCH, NULL, NULL, NULL) == 0) {
+ int num = 0;
+ addMacro(spec->macros, "epoch", NULL, "0", RMIL_SPEC);
+ }
+
- if (checkForRequired(pkg->header, NVR))
- return RPMERR_BADSPEC;
+ if (checkForRequired(pkg->header, NVR) != RPMRC_OK)
+ return RPMRC_FAIL;
}
--- rpm-4.3/build/parseSpec.c.wiget Thu May 15 18:15:51 2003
+++ rpm-4.3/build/parseSpec.c Fri May 16 00:08:57 2003
-@@ -156,12 +156,16 @@
+@@ -230,12 +230,16 @@
/*@=mods@*/
/* Don't expand macros (eg. %define) in false branch of %if clause */
+ /* (first line is ommited, so if there is e.g. %date macro, it will be expanded */
+ if (!(strip & STRIP_NOEXPAND)) {
if (spec->readStack->reading &&
- expandMacros(spec, spec->macros, spec->lbuf, sizeof(spec->lbuf))) {
+ expandMacros(spec, spec->macros, spec->lbuf, spec->lbuf_len)) {
rpmlog(RPMLOG_ERR, _("line %d: %s\n"),
spec->lineNum, spec->lbuf);
return RPMRC_FAIL;
}
-+ }
++ }
spec->nextline = spec->lbuf;
}
-
+ return 0;
@@ -273,6 +277,7 @@
SKIPSPACE(s);
+ return 0;
+}
+
- int rpmfcApply(rpmfc fc)
+ rpmRC rpmfcApply(rpmfc fc)
{
rpmfcApplyTbl fcat;
@@ -888,6 +1082,26 @@
@@ -6,6 +6,7 @@
#include "system.h"
- #include <rpmio_internal.h>
+ #include <rpmio_internal.h> /* XXX FDSTAT_READ */
+#include <header_internal.h>
- #include <rpmlib.h>
+ #include <rpmcb.h> /* XXX fnpyKey */
#include <rpmmacro.h>
#include <rpmurl.h>
@@ -1403,6 +1404,19 @@