diff -r 2289d64c2123 -r 4ecfc2416fd8 openpkg/rpm.patch.bugfix --- a/openpkg/rpm.patch.bugfix Mon Mar 28 19:41:02 2011 +0200 +++ b/openpkg/rpm.patch.bugfix Tue Mar 29 19:46:35 2011 +0200 @@ -23,7 +23,7 @@ Index: build/parsePrep.c --- build/parsePrep.c 7 Aug 2002 14:20:45 -0000 1.1.1.10 +++ build/parsePrep.c 6 Jun 2005 15:53:04 -0000 1.4 -@@ -584,12 +635,15 @@ +@@ -584,12 +584,15 @@ saveLines = splitString(getStringBuf(sb), strlen(getStringBuf(sb)), '\n'); /*@-usereleased@*/ for (lines = saveLines; *lines; lines++) { @@ -50,7 +50,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:38:23 -0000 -@@ -416,7 +417,7 @@ +@@ -416,7 +416,7 @@ AC_CHECK_HEADER([beecrypt/beecrypt.h], [ AC_CHECK_LIB(beecrypt, mpfprintln, [ AC_DEFINE(HAVE_LIBBEECRYPT, 1, [Define to 1 if you have the `beecrypt' library (-lbeecrypt).]) @@ -67,7 +67,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:38:26 -0000 -@@ -1274,7 +1305,6 @@ +@@ -1274,7 +1274,6 @@ python/rpmdb/Makefile python/test/Makefile ], [ echo timestamp > popt/stamp-h.in @@ -82,7 +82,7 @@ Index: lib/psm.c --- lib/psm.c 5 Jun 2003 12:43:18 -0000 1.1.1.6 +++ lib/psm.c 13 Sep 2006 13:38:27 -0000 -@@ -940,6 +960,8 @@ +@@ -940,6 +940,8 @@ if (sfdno > STDERR_FILENO) { xx = Fclose (scriptFd); } @@ -99,7 +99,7 @@ Index: lib/psm.c --- lib/psm.c 5 Jun 2003 12:43:18 -0000 1.1.1.6 +++ lib/psm.c 13 Sep 2006 13:38:29 -0000 -@@ -1106,11 +1128,13 @@ +@@ -1106,11 +1108,13 @@ const char ** triggerProgs; int_32 * triggerIndices; const char * sourceName; @@ -113,7 +113,7 @@ trigger = rpmdsInit(rpmdsNew(triggeredH, RPMTAG_TRIGGERNAME, scareMem)); if (trigger == NULL) -@@ -1149,7 +1173,7 @@ +@@ -1149,7 +1153,7 @@ { int arg1; int index; @@ -134,7 +134,7 @@ Index: lib/psm.c --- lib/psm.c 5 Jun 2003 12:43:18 -0000 1.1.1.6 +++ lib/psm.c 13 Sep 2006 13:38:32 -0000 -@@ -1710,6 +1734,7 @@ +@@ -1710,6 +1714,7 @@ uid = fi->uid; gid = fi->gid; @@ -142,7 +142,7 @@ if (fi->fuser && unameToUid(fi->fuser[i], &uid)) { rpmMessage(RPMMESS_WARNING, _("user %s does not exist - using root\n"), -@@ -1727,6 +1752,7 @@ +@@ -1727,6 +1732,7 @@ /* XXX this diddles header memory. */ fi->fmodes[i] &= ~S_ISGID; /* turn off the sgid bit */ } @@ -158,7 +158,7 @@ Index: lib/psm.c --- lib/psm.c 5 Jun 2003 12:43:18 -0000 1.1.1.6 +++ lib/psm.c 13 Sep 2006 13:38:33 -0000 -@@ -2027,7 +2053,8 @@ +@@ -2027,7 +2033,8 @@ case PSM_CHROOT_IN: { const char * rootDir = rpmtsRootDir(ts); /* Change root directory if requested and not already done. */ @@ -185,7 +185,7 @@ Index: rpmio/macro.c --- rpmio/macro.c 15 May 2003 13:42:01 -0000 1.1.1.7 +++ rpmio/macro.c 22 Jan 2004 21:42:32 -0000 1.2 -@@ -879,7 +882,7 @@ +@@ -879,7 +879,7 @@ */ /*@-bounds@*/ /*@dependent@*/ static const char * @@ -194,7 +194,7 @@ /*@globals rpmGlobalMacroContext @*/ /*@modifies mb, rpmGlobalMacroContext @*/ { -@@ -900,7 +903,7 @@ +@@ -900,7 +900,7 @@ /* Copy args into buf until lastc */ *be++ = ' '; @@ -203,7 +203,7 @@ /*@-globs@*/ if (!isblank(c)) { *be++ = c; -@@ -968,6 +971,8 @@ +@@ -968,6 +968,8 @@ /*@-mods@*/ optind = 0; /* XXX but posix != glibc */ /*@=mods@*/ @@ -212,7 +212,7 @@ #endif opts = me->opts; -@@ -1168,7 +1175,7 @@ +@@ -1168,7 +1170,7 @@ int c; int rc = 0; int negate; @@ -221,7 +221,7 @@ int chkexist; if (++mb->depth > max_macro_depth) { -@@ -1202,7 +1209,7 @@ +@@ -1202,7 +1204,7 @@ if (mb->depth > 1) /* XXX full expansion for outermost level */ t = mb->t; /* save expansion pointer for printExpand */ negate = 0; @@ -230,7 +230,7 @@ chkexist = 0; switch ((c = *s)) { default: /* %name substitution */ -@@ -1237,7 +1244,8 @@ +@@ -1237,7 +1239,8 @@ /* For "%name " macros ... */ /*@-globs@*/ if ((c = *fe) && isblank(c)) @@ -240,7 +240,7 @@ /*@=globs@*/ /*@switchbreak@*/ break; case '(': /* %(...) shell escape */ -@@ -1284,7 +1292,7 @@ +@@ -1284,7 +1287,7 @@ ge = se - 1; /*@innerbreak@*/ break; case ' ': @@ -249,7 +249,7 @@ /*@innerbreak@*/ break; default: /*@innerbreak@*/ break; -@@ -1438,7 +1446,7 @@ +@@ -1438,7 +1441,7 @@ /* Setup args for "%name " macros with opts */ if (me && me->opts != NULL) {