# HG changeset patch # User Michael Schloh von Bennewitz # Date 1301506678 -7200 # Node ID fa72b60f59c992bcb2ea292409050fe29ffab2e5 # Parent 6eb79a12ee370f4a4cfaf894adbd693ae8d92680 Renumber patch hunks to avoid patch(1) warnings, this time successfully. diff -r 6eb79a12ee37 -r fa72b60f59c9 openpkg/rpm.patch.bugfix --- a/openpkg/rpm.patch.bugfix Wed Mar 30 19:35:16 2011 +0200 +++ b/openpkg/rpm.patch.bugfix Wed Mar 30 19:37:58 2011 +0200 @@ -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 +1108,13 @@ +@@ -1108,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 +1153,7 @@ +@@ -1151,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 +1714,7 @@ +@@ -1714,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 +1732,7 @@ +@@ -1731,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 +2033,8 @@ +@@ -2033,7 +2033,8 @@ case PSM_CHROOT_IN: { const char * rootDir = rpmtsRootDir(ts); /* Change root directory if requested and not already done. */ diff -r 6eb79a12ee37 -r fa72b60f59c9 openpkg/rpm.patch.feature --- a/openpkg/rpm.patch.feature Wed Mar 30 19:35:16 2011 +0200 +++ b/openpkg/rpm.patch.feature Wed Mar 30 19:37:58 2011 +0200 @@ -314,7 +314,7 @@ Index: build/build.c --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 -@@ -113,6 +129,14 @@ +@@ -129,6 +129,14 @@ mTemplate = "%{__spec_clean_template}"; mPost = "%{__spec_clean_post}"; break; @@ -329,7 +329,7 @@ case RPMBUILD_STRINGBUF: default: mTemplate = "%{___build_template}"; -@@ -169,7 +193,11 @@ +@@ -185,7 +193,11 @@ (void) fputs(buildTemplate, fp); @@ -341,7 +341,7 @@ fprintf(fp, "cd %s\n", spec->buildSubdir); if (what == RPMBUILD_RMBUILD) { -@@ -215,6 +243,9 @@ +@@ -231,6 +243,9 @@ buildCmd = rpmExpand("%{___build_cmd}", " ", buildScript, NULL); (void) poptParseArgvString(buildCmd, &argc, &argv); @@ -351,7 +351,7 @@ rpmMessage(RPMMESS_NORMAL, _("Executing(%s): %s\n"), name, buildCmd); if (!(child = fork())) { -@@ -290,6 +323,12 @@ +@@ -306,6 +323,12 @@ /*@=boundsread@*/ } } else { @@ -375,7 +375,7 @@ Index: build/build.c --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 -@@ -242,7 +273,9 @@ +@@ -273,7 +273,9 @@ exit: if (scriptName) { @@ -398,7 +398,7 @@ Index: build/build.c --- build/build.c 4 Mar 2003 15:27:33 -0000 1.1.1.20 +++ build/build.c 6 Feb 2004 15:37:57 -0000 1.4 -@@ -338,6 +377,21 @@ +@@ -377,6 +377,21 @@ if (what & RPMBUILD_RMSPEC) (void) Unlink(spec->specFile); @@ -451,7 +451,7 @@ Index: build/files.c --- build/files.c 4 Mar 2003 17:04:13 -0000 1.1.1.20 +++ build/files.c 6 Feb 2004 15:37:57 -0000 1.3 -@@ -2183,6 +2185,12 @@ +@@ -2185,6 +2185,12 @@ case RPMTAG_CHANGELOGTEXT: case RPMTAG_URL: case HEADER_I18NTABLE: @@ -473,7 +473,7 @@ Index: build/files.c --- build/files.c 4 Mar 2003 17:04:13 -0000 1.1.1.20 +++ build/files.c 6 Feb 2004 15:37:57 -0000 1.3 -@@ -2253,8 +2261,20 @@ +@@ -2261,8 +2261,20 @@ } { const char * sfn; @@ -494,7 +494,7 @@ appendLineStringBuf(sourceFiles, sfn); sfn = _free(sfn); } -@@ -2263,8 +2283,20 @@ +@@ -2271,8 +2283,20 @@ for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { for (srcPtr = pkg->icon; srcPtr != NULL; srcPtr = srcPtr->next) { const char * sfn; @@ -753,7 +753,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 -@@ -87,7 +88,15 @@ +@@ -88,7 +88,15 @@ return NULL; } @@ -769,7 +769,7 @@ args[0] = '\0'; if (db) { -@@ -182,7 +201,15 @@ +@@ -193,7 +201,15 @@ return NULL; } @@ -872,7 +872,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:39:09 -0000 -@@ -310,7 +311,7 @@ +@@ -311,7 +311,7 @@ WITH_ZLIB_SUBDIR= WITH_ZLIB_INCLUDE= WITH_ZLIB_LIB= @@ -890,7 +890,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:39:11 -0000 -@@ -324,38 +325,38 @@ +@@ -325,38 +325,38 @@ localdone= @@ -968,7 +968,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:39:12 -0000 -@@ -1200,12 +1201,12 @@ +@@ -1201,12 +1201,12 @@ AC_SUBST(LOCALEDIR) LIBDIR="`echo $libdir | sed 's-/lib$-/%{_lib}-'`" AC_SUBST(LIBDIR) @@ -983,7 +983,7 @@ AC_DEFINE_UNQUOTED(SYSCONFIGDIR, "$SYSCONFIGDIR", [Full path to rpm system configuration directory (usually /etc/rpm)]) AC_SUBST(SYSCONFIGDIR) -@@ -1215,17 +1216,17 @@ +@@ -1216,17 +1216,17 @@ [Colon separated paths of macro files to read.]) AC_SUBST(MACROFILES) @@ -1560,7 +1560,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 -@@ -1116,9 +1119,11 @@ +@@ -1119,9 +1119,11 @@ case 2: /* COMPRESSED_BZIP2 */ sprintf(be, "%%_bzip2 %s", b); break; @@ -1572,7 +1572,7 @@ } b = be; } else if (STREQ("S", f, fn)) { -@@ -1720,9 +1725,11 @@ +@@ -1723,9 +1725,11 @@ if ((magic[0] == 'B') && (magic[1] == 'Z')) { *compressed = COMPRESSED_BZIP2; @@ -1592,7 +1592,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 -@@ -1332,7 +1337,7 @@ +@@ -1337,7 +1337,7 @@ STREQ("error", f, fn)) { int waserror = 0; if (STREQ("error", f, fn)) @@ -1823,7 +1823,7 @@ Index: rpmqv.c --- rpmqv.c 4 Mar 2003 15:32:57 -0000 1.1.1.8 +++ rpmqv.c 6 Feb 2004 15:37:56 -0000 1.4 -@@ -703,7 +707,19 @@ +@@ -707,7 +707,19 @@ /*@innerbreak@*/ break; case 's': ba->buildAmount |= RPMBUILD_PACKAGESOURCE; @@ -1916,7 +1916,7 @@ } /*@=branchstate@*/ -@@ -303,6 +312,11 @@ +@@ -304,6 +313,11 @@ case PART_VERIFYSCRIPT: pkg->verifyFile = xstrdup(file); break; @@ -2093,7 +2093,7 @@ p->specialDoc = NULL; -@@ -444,6 +455,9 @@ +@@ -452,6 +463,9 @@ spec->install = NULL; spec->check = NULL; spec->clean = NULL; @@ -2103,7 +2103,7 @@ spec->sources = NULL; spec->packages = NULL; -@@ -491,6 +505,9 @@ +@@ -499,6 +513,9 @@ spec->install = freeStringBuf(spec->install); spec->check = freeStringBuf(spec->check); spec->clean = freeStringBuf(spec->clean); @@ -2193,7 +2193,7 @@ { RPMTAG_DISTURL, "%{disturl}" }, { -1, NULL } }; -@@ -537,6 +547,7 @@ +@@ -545,6 +547,7 @@ (void) stashSt(spec, pkg->header, tag, lang); /*@fallthrough@*/ case RPMTAG_DISTRIBUTION: @@ -2201,7 +2201,7 @@ case RPMTAG_VENDOR: case RPMTAG_LICENSE: case RPMTAG_PACKAGER: -@@ -743,6 +754,7 @@ +@@ -751,6 +754,7 @@ {RPMTAG_LICENSE, 0, 0, "copyright"}, {RPMTAG_LICENSE, 0, 0, "license"}, {RPMTAG_DISTRIBUTION, 0, 0, "distribution"}, diff -r 6eb79a12ee37 -r fa72b60f59c9 openpkg/rpm.patch.porting --- a/openpkg/rpm.patch.porting Wed Mar 30 19:35:16 2011 +0200 +++ b/openpkg/rpm.patch.porting Wed Mar 30 19:37:58 2011 +0200 @@ -92,7 +92,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:40:23 -0000 -@@ -964,12 +967,13 @@ +@@ -967,12 +967,13 @@ AC_CHECK_FUNCS(getpassphrase) AC_CHECK_FUNC(getmntent, AC_DEFINE(HAVE_GETMNTENT, 1, [Define if you have the getmntent() function]), [ @@ -115,7 +115,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:40:25 -0000 -@@ -1142,9 +1146,6 @@ +@@ -1146,9 +1146,6 @@ dnl XXX Choose /usr/lib or /usr/lib64 for library installs. MARK64= @@ -137,7 +137,7 @@ Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 13 Sep 2006 13:40:29 -0000 -@@ -1250,11 +1251,40 @@ +@@ -1251,11 +1251,40 @@ AC_SUBST(OBJDUMP) @@ -1222,7 +1222,7 @@ Index: system.h --- system.h 1 Mar 2003 19:53:08 -0000 1.1.1.10 +++ system.h 8 Jun 2005 13:15:16 -0000 1.4 -@@ -550,7 +546,7 @@ +@@ -546,7 +546,7 @@ #define lchown chown #endif @@ -1238,7 +1238,7 @@ Index: system.h --- system.h 1 Mar 2003 19:53:08 -0000 1.1.1.10 +++ system.h 8 Jun 2005 13:15:16 -0000 1.4 -@@ -603,11 +599,24 @@ +@@ -599,11 +599,24 @@ #if defined(__LCLINT__) #define FILE_RCSID(id)