From 2ff25e9a98ec05a5986c9672bde2f0e716ae313b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 17 Feb 2008 18:29:03 +0000 Subject: [PATCH] - still needed Changed files: rpm-epoch0.patch -> 1.7 --- rpm-epoch0.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rpm-epoch0.patch diff --git a/rpm-epoch0.patch b/rpm-epoch0.patch new file mode 100644 index 0000000..0620ac5 --- /dev/null +++ b/rpm-epoch0.patch @@ -0,0 +1,24 @@ +--- rpm-5.0.2/build/parsePreamble.c 2007-12-31 18:21:47.000000000 +0200 ++++ rpm-5.0.2-epoch0/build/parsePreamble.c 2008-02-17 20:17:38.000000000 +0200 +@@ -1082,6 +1082,21 @@ + headerCopyTags(spec->packages->header, pkg->header, + (uint32_t *)copyTagsDuringParse); + ++ /* Add Epoch: 0 to package header if it was not set by spec */ ++ he->tag = RPMTAG_NAME; ++ if (headerGet(spec->packages->header, he, 0) == 0) { ++ int num = 0; ++ ++ he->tag = RPMTAG_EPOCH; ++ he->t = RPM_UINT32_TYPE; ++ he->p.ui32p = # ++ he->c = 1; ++ xx = headerPut(pkg->header, he, 0); ++ ++ /* also declare %{epoch} to be same */ ++ addMacro(spec->macros, "epoch", NULL, "0", RMIL_SPEC); ++ } ++ + if (checkForRequired(pkg->header, NVR) != RPMRC_OK) + return RPMRC_FAIL; + -- 2.44.0