Renumber patch hunks to avoid patch(1) warnings, this time successfully.

Wed, 30 Mar 2011 19:37:58 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 30 Mar 2011 19:37:58 +0200
changeset 336
fa72b60f59c9
parent 335
6eb79a12ee37
child 337
f71e028eb3e2

Renumber patch hunks to avoid patch(1) warnings, this time successfully.

openpkg/rpm.patch.bugfix file | annotate | diff | comparison | revisions
openpkg/rpm.patch.feature file | annotate | diff | comparison | revisions
openpkg/rpm.patch.porting file | annotate | diff | comparison | revisions
     1.1 --- a/openpkg/rpm.patch.bugfix	Wed Mar 30 19:35:16 2011 +0200
     1.2 +++ b/openpkg/rpm.patch.bugfix	Wed Mar 30 19:37:58 2011 +0200
     1.3 @@ -99,7 +99,7 @@
     1.4  Index: lib/psm.c
     1.5  --- lib/psm.c	5 Jun 2003 12:43:18 -0000	1.1.1.6
     1.6  +++ lib/psm.c	13 Sep 2006 13:38:29 -0000
     1.7 -@@ -1106,11 +1108,13 @@
     1.8 +@@ -1108,11 +1108,13 @@
     1.9       const char ** triggerProgs;
    1.10       int_32 * triggerIndices;
    1.11       const char * sourceName;
    1.12 @@ -113,7 +113,7 @@
    1.13   
    1.14       trigger = rpmdsInit(rpmdsNew(triggeredH, RPMTAG_TRIGGERNAME, scareMem));
    1.15       if (trigger == NULL)
    1.16 -@@ -1149,7 +1153,7 @@
    1.17 +@@ -1151,7 +1153,7 @@
    1.18   	{   int arg1;
    1.19   	    int index;
    1.20   
    1.21 @@ -134,7 +134,7 @@
    1.22  Index: lib/psm.c
    1.23  --- lib/psm.c	5 Jun 2003 12:43:18 -0000	1.1.1.6
    1.24  +++ lib/psm.c	13 Sep 2006 13:38:32 -0000
    1.25 -@@ -1710,6 +1714,7 @@
    1.26 +@@ -1714,6 +1714,7 @@
    1.27   
    1.28   		uid = fi->uid;
    1.29   		gid = fi->gid;
    1.30 @@ -142,7 +142,7 @@
    1.31   		if (fi->fuser && unameToUid(fi->fuser[i], &uid)) {
    1.32   		    rpmMessage(RPMMESS_WARNING,
    1.33   			_("user %s does not exist - using root\n"),
    1.34 -@@ -1727,6 +1732,7 @@
    1.35 +@@ -1731,6 +1732,7 @@
    1.36   		    /* XXX this diddles header memory. */
    1.37   		    fi->fmodes[i] &= ~S_ISGID;	/* turn off the sgid bit */
    1.38   		}
    1.39 @@ -158,7 +158,7 @@
    1.40  Index: lib/psm.c
    1.41  --- lib/psm.c	5 Jun 2003 12:43:18 -0000	1.1.1.6
    1.42  +++ lib/psm.c	13 Sep 2006 13:38:33 -0000
    1.43 -@@ -2027,7 +2033,8 @@
    1.44 +@@ -2033,7 +2033,8 @@
    1.45       case PSM_CHROOT_IN:
    1.46       {	const char * rootDir = rpmtsRootDir(ts);
    1.47   	/* Change root directory if requested and not already done. */
     2.1 --- a/openpkg/rpm.patch.feature	Wed Mar 30 19:35:16 2011 +0200
     2.2 +++ b/openpkg/rpm.patch.feature	Wed Mar 30 19:37:58 2011 +0200
     2.3 @@ -314,7 +314,7 @@
     2.4  Index: build/build.c
     2.5  --- build/build.c	4 Mar 2003 15:27:33 -0000	1.1.1.20
     2.6  +++ build/build.c	6 Feb 2004 15:37:57 -0000	1.4
     2.7 -@@ -113,6 +129,14 @@
     2.8 +@@ -129,6 +129,14 @@
     2.9   	mTemplate = "%{__spec_clean_template}";
    2.10   	mPost = "%{__spec_clean_post}";
    2.11   	break;
    2.12 @@ -329,7 +329,7 @@
    2.13       case RPMBUILD_STRINGBUF:
    2.14       default:
    2.15   	mTemplate = "%{___build_template}";
    2.16 -@@ -169,7 +193,11 @@
    2.17 +@@ -185,7 +193,11 @@
    2.18   
    2.19       (void) fputs(buildTemplate, fp);
    2.20   
    2.21 @@ -341,7 +341,7 @@
    2.22   	fprintf(fp, "cd %s\n", spec->buildSubdir);
    2.23   
    2.24       if (what == RPMBUILD_RMBUILD) {
    2.25 -@@ -215,6 +243,9 @@
    2.26 +@@ -231,6 +243,9 @@
    2.27       buildCmd = rpmExpand("%{___build_cmd}", " ", buildScript, NULL);
    2.28       (void) poptParseArgvString(buildCmd, &argc, &argv);
    2.29   
    2.30 @@ -351,7 +351,7 @@
    2.31       rpmMessage(RPMMESS_NORMAL, _("Executing(%s): %s\n"), name, buildCmd);
    2.32       if (!(child = fork())) {
    2.33   
    2.34 -@@ -290,6 +323,12 @@
    2.35 +@@ -306,6 +323,12 @@
    2.36   /*@=boundsread@*/
    2.37   	}
    2.38       } else {
    2.39 @@ -375,7 +375,7 @@
    2.40  Index: build/build.c
    2.41  --- build/build.c	4 Mar 2003 15:27:33 -0000	1.1.1.20
    2.42  +++ build/build.c	6 Feb 2004 15:37:57 -0000	1.4
    2.43 -@@ -242,7 +273,9 @@
    2.44 +@@ -273,7 +273,9 @@
    2.45       
    2.46   exit:
    2.47       if (scriptName) {
    2.48 @@ -398,7 +398,7 @@
    2.49  Index: build/build.c
    2.50  --- build/build.c	4 Mar 2003 15:27:33 -0000	1.1.1.20
    2.51  +++ build/build.c	6 Feb 2004 15:37:57 -0000	1.4
    2.52 -@@ -338,6 +377,21 @@
    2.53 +@@ -377,6 +377,21 @@
    2.54       if (what & RPMBUILD_RMSPEC)
    2.55   	(void) Unlink(spec->specFile);
    2.56   
    2.57 @@ -451,7 +451,7 @@
    2.58  Index: build/files.c
    2.59  --- build/files.c	4 Mar 2003 17:04:13 -0000	1.1.1.20
    2.60  +++ build/files.c	6 Feb 2004 15:37:57 -0000	1.3
    2.61 -@@ -2183,6 +2185,12 @@
    2.62 +@@ -2185,6 +2185,12 @@
    2.63   	case RPMTAG_CHANGELOGTEXT:
    2.64   	case RPMTAG_URL:
    2.65   	case HEADER_I18NTABLE:
    2.66 @@ -473,7 +473,7 @@
    2.67  Index: build/files.c
    2.68  --- build/files.c	4 Mar 2003 17:04:13 -0000	1.1.1.20
    2.69  +++ build/files.c	6 Feb 2004 15:37:57 -0000	1.3
    2.70 -@@ -2253,8 +2261,20 @@
    2.71 +@@ -2261,8 +2261,20 @@
    2.72   	}
    2.73   
    2.74         {	const char * sfn;
    2.75 @@ -494,7 +494,7 @@
    2.76   	appendLineStringBuf(sourceFiles, sfn);
    2.77   	sfn = _free(sfn);
    2.78         }
    2.79 -@@ -2263,8 +2283,20 @@
    2.80 +@@ -2271,8 +2283,20 @@
    2.81       for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
    2.82   	for (srcPtr = pkg->icon; srcPtr != NULL; srcPtr = srcPtr->next) {
    2.83   	    const char * sfn;
    2.84 @@ -753,7 +753,7 @@
    2.85  Index: build/parsePrep.c
    2.86  --- build/parsePrep.c	7 Aug 2002 14:20:45 -0000	1.1.1.10
    2.87  +++ build/parsePrep.c	6 Jun 2005 15:53:04 -0000	1.4
    2.88 -@@ -87,7 +88,15 @@
    2.89 +@@ -88,7 +88,15 @@
    2.90   	return NULL;
    2.91       }
    2.92   
    2.93 @@ -769,7 +769,7 @@
    2.94   
    2.95       args[0] = '\0';
    2.96       if (db) {
    2.97 -@@ -182,7 +201,15 @@
    2.98 +@@ -193,7 +201,15 @@
    2.99   	return NULL;
   2.100       }
   2.101   
   2.102 @@ -872,7 +872,7 @@
   2.103  Index: configure.ac
   2.104  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
   2.105  +++ configure.ac	13 Sep 2006 13:39:09 -0000
   2.106 -@@ -310,7 +311,7 @@
   2.107 +@@ -311,7 +311,7 @@
   2.108   WITH_ZLIB_SUBDIR=
   2.109   WITH_ZLIB_INCLUDE=
   2.110   WITH_ZLIB_LIB=
   2.111 @@ -890,7 +890,7 @@
   2.112  Index: configure.ac
   2.113  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
   2.114  +++ configure.ac	13 Sep 2006 13:39:11 -0000
   2.115 -@@ -324,38 +325,38 @@
   2.116 +@@ -325,38 +325,38 @@
   2.117   
   2.118   localdone=
   2.119   
   2.120 @@ -968,7 +968,7 @@
   2.121  Index: configure.ac
   2.122  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
   2.123  +++ configure.ac	13 Sep 2006 13:39:12 -0000
   2.124 -@@ -1200,12 +1201,12 @@
   2.125 +@@ -1201,12 +1201,12 @@
   2.126   AC_SUBST(LOCALEDIR)
   2.127   LIBDIR="`echo $libdir | sed 's-/lib$-/%{_lib}-'`"
   2.128   AC_SUBST(LIBDIR)
   2.129 @@ -983,7 +983,7 @@
   2.130   AC_DEFINE_UNQUOTED(SYSCONFIGDIR, "$SYSCONFIGDIR",
   2.131   	[Full path to rpm system configuration directory (usually /etc/rpm)])
   2.132   AC_SUBST(SYSCONFIGDIR)
   2.133 -@@ -1215,17 +1216,17 @@
   2.134 +@@ -1216,17 +1216,17 @@
   2.135   	[Colon separated paths of macro files to read.])
   2.136   AC_SUBST(MACROFILES)
   2.137   
   2.138 @@ -1560,7 +1560,7 @@
   2.139  Index: rpmio/macro.c
   2.140  --- rpmio/macro.c	15 May 2003 13:42:01 -0000	1.1.1.7
   2.141  +++ rpmio/macro.c	22 Jan 2004 21:42:32 -0000	1.2
   2.142 -@@ -1116,9 +1119,11 @@
   2.143 +@@ -1119,9 +1119,11 @@
   2.144   	case 2:	/* COMPRESSED_BZIP2 */
   2.145   	    sprintf(be, "%%_bzip2 %s", b);
   2.146   	    break;
   2.147 @@ -1572,7 +1572,7 @@
   2.148   	}
   2.149   	b = be;
   2.150       } else if (STREQ("S", f, fn)) {
   2.151 -@@ -1720,9 +1725,11 @@
   2.152 +@@ -1723,9 +1725,11 @@
   2.153   
   2.154       if ((magic[0] == 'B') && (magic[1] == 'Z')) {
   2.155   	*compressed = COMPRESSED_BZIP2;
   2.156 @@ -1592,7 +1592,7 @@
   2.157  Index: rpmio/macro.c
   2.158  --- rpmio/macro.c	15 May 2003 13:42:01 -0000	1.1.1.7
   2.159  +++ rpmio/macro.c	22 Jan 2004 21:42:32 -0000	1.2
   2.160 -@@ -1332,7 +1337,7 @@
   2.161 +@@ -1337,7 +1337,7 @@
   2.162   	    STREQ("error", f, fn)) {
   2.163   		int waserror = 0;
   2.164   		if (STREQ("error", f, fn))
   2.165 @@ -1823,7 +1823,7 @@
   2.166  Index: rpmqv.c
   2.167  --- rpmqv.c	4 Mar 2003 15:32:57 -0000	1.1.1.8
   2.168  +++ rpmqv.c	6 Feb 2004 15:37:56 -0000	1.4
   2.169 -@@ -703,7 +707,19 @@
   2.170 +@@ -707,7 +707,19 @@
   2.171   	    /*@innerbreak@*/ break;
   2.172   	case 's':
   2.173   	    ba->buildAmount |= RPMBUILD_PACKAGESOURCE;
   2.174 @@ -1916,7 +1916,7 @@
   2.175       }
   2.176       /*@=branchstate@*/
   2.177   
   2.178 -@@ -303,6 +312,11 @@
   2.179 +@@ -304,6 +313,11 @@
   2.180   	      case PART_VERIFYSCRIPT:
   2.181   		pkg->verifyFile = xstrdup(file);
   2.182   		break;
   2.183 @@ -2093,7 +2093,7 @@
   2.184   
   2.185       p->specialDoc = NULL;
   2.186   
   2.187 -@@ -444,6 +455,9 @@
   2.188 +@@ -452,6 +463,9 @@
   2.189       spec->install = NULL;
   2.190       spec->check = NULL;
   2.191       spec->clean = NULL;
   2.192 @@ -2103,7 +2103,7 @@
   2.193   
   2.194       spec->sources = NULL;
   2.195       spec->packages = NULL;
   2.196 -@@ -491,6 +505,9 @@
   2.197 +@@ -499,6 +513,9 @@
   2.198       spec->install = freeStringBuf(spec->install);
   2.199       spec->check = freeStringBuf(spec->check);
   2.200       spec->clean = freeStringBuf(spec->clean);
   2.201 @@ -2193,7 +2193,7 @@
   2.202       { RPMTAG_DISTURL,		"%{disturl}" },
   2.203       { -1, NULL }
   2.204   };
   2.205 -@@ -537,6 +547,7 @@
   2.206 +@@ -545,6 +547,7 @@
   2.207   	(void) stashSt(spec, pkg->header, tag, lang);
   2.208   	/*@fallthrough@*/
   2.209       case RPMTAG_DISTRIBUTION:
   2.210 @@ -2201,7 +2201,7 @@
   2.211       case RPMTAG_VENDOR:
   2.212       case RPMTAG_LICENSE:
   2.213       case RPMTAG_PACKAGER:
   2.214 -@@ -743,6 +754,7 @@
   2.215 +@@ -751,6 +754,7 @@
   2.216       {RPMTAG_LICENSE,		0, 0, "copyright"},
   2.217       {RPMTAG_LICENSE,		0, 0, "license"},
   2.218       {RPMTAG_DISTRIBUTION,	0, 0, "distribution"},
     3.1 --- a/openpkg/rpm.patch.porting	Wed Mar 30 19:35:16 2011 +0200
     3.2 +++ b/openpkg/rpm.patch.porting	Wed Mar 30 19:37:58 2011 +0200
     3.3 @@ -92,7 +92,7 @@
     3.4  Index: configure.ac
     3.5  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
     3.6  +++ configure.ac	13 Sep 2006 13:40:23 -0000
     3.7 -@@ -964,12 +967,13 @@
     3.8 +@@ -967,12 +967,13 @@
     3.9   AC_CHECK_FUNCS(getpassphrase)
    3.10   
    3.11   AC_CHECK_FUNC(getmntent, AC_DEFINE(HAVE_GETMNTENT, 1, [Define if you have the getmntent() function]), [
    3.12 @@ -115,7 +115,7 @@
    3.13  Index: configure.ac
    3.14  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
    3.15  +++ configure.ac	13 Sep 2006 13:40:25 -0000
    3.16 -@@ -1142,9 +1146,6 @@
    3.17 +@@ -1146,9 +1146,6 @@
    3.18   
    3.19   dnl XXX Choose /usr/lib or /usr/lib64 for library installs.
    3.20   MARK64=
    3.21 @@ -137,7 +137,7 @@
    3.22  Index: configure.ac
    3.23  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
    3.24  +++ configure.ac	13 Sep 2006 13:40:29 -0000
    3.25 -@@ -1250,11 +1251,40 @@
    3.26 +@@ -1251,11 +1251,40 @@
    3.27   
    3.28   AC_SUBST(OBJDUMP)
    3.29   
    3.30 @@ -1222,7 +1222,7 @@
    3.31  Index: system.h
    3.32  --- system.h	1 Mar 2003 19:53:08 -0000	1.1.1.10
    3.33  +++ system.h	8 Jun 2005 13:15:16 -0000	1.4
    3.34 -@@ -550,7 +546,7 @@
    3.35 +@@ -546,7 +546,7 @@
    3.36   #define lchown chown
    3.37   #endif
    3.38   
    3.39 @@ -1238,7 +1238,7 @@
    3.40  Index: system.h
    3.41  --- system.h	1 Mar 2003 19:53:08 -0000	1.1.1.10
    3.42  +++ system.h	8 Jun 2005 13:15:16 -0000	1.4
    3.43 -@@ -603,11 +599,24 @@
    3.44 +@@ -599,11 +599,24 @@
    3.45   
    3.46   #if defined(__LCLINT__)
    3.47   #define FILE_RCSID(id)

mercurial