openpkg/rpm.patch.bugfix

changeset 333
4ecfc2416fd8
parent 13
cb59d6afeb61
child 336
fa72b60f59c9
     1.1 --- a/openpkg/rpm.patch.bugfix	Mon Mar 28 19:41:02 2011 +0200
     1.2 +++ b/openpkg/rpm.patch.bugfix	Tue Mar 29 19:46:35 2011 +0200
     1.3 @@ -23,7 +23,7 @@
     1.4  Index: build/parsePrep.c
     1.5  --- build/parsePrep.c	7 Aug 2002 14:20:45 -0000	1.1.1.10
     1.6  +++ build/parsePrep.c	6 Jun 2005 15:53:04 -0000	1.4
     1.7 -@@ -584,12 +635,15 @@
     1.8 +@@ -584,12 +584,15 @@
     1.9       saveLines = splitString(getStringBuf(sb), strlen(getStringBuf(sb)), '\n');
    1.10       /*@-usereleased@*/
    1.11       for (lines = saveLines; *lines; lines++) {
    1.12 @@ -50,7 +50,7 @@
    1.13  Index: configure.ac
    1.14  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
    1.15  +++ configure.ac	13 Sep 2006 13:38:23 -0000
    1.16 -@@ -416,7 +417,7 @@
    1.17 +@@ -416,7 +416,7 @@
    1.18   AC_CHECK_HEADER([beecrypt/beecrypt.h], [
    1.19   	AC_CHECK_LIB(beecrypt, mpfprintln, [
    1.20   	    AC_DEFINE(HAVE_LIBBEECRYPT, 1, [Define to 1 if you have the `beecrypt' library (-lbeecrypt).])
    1.21 @@ -67,7 +67,7 @@
    1.22  Index: configure.ac
    1.23  --- configure.ac	2 Jul 2003 19:20:52 -0000	1.1.1.4
    1.24  +++ configure.ac	13 Sep 2006 13:38:26 -0000
    1.25 -@@ -1274,7 +1305,6 @@
    1.26 +@@ -1274,7 +1274,6 @@
    1.27   	python/rpmdb/Makefile
    1.28   	python/test/Makefile
    1.29     ], [	echo timestamp > popt/stamp-h.in
    1.30 @@ -82,7 +82,7 @@
    1.31  Index: lib/psm.c
    1.32  --- lib/psm.c	5 Jun 2003 12:43:18 -0000	1.1.1.6
    1.33  +++ lib/psm.c	13 Sep 2006 13:38:27 -0000
    1.34 -@@ -940,6 +960,8 @@
    1.35 +@@ -940,6 +940,8 @@
    1.36   	    if (sfdno > STDERR_FILENO) {
    1.37   		xx = Fclose (scriptFd);
    1.38   	    }
    1.39 @@ -99,7 +99,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:29 -0000
    1.43 -@@ -1106,11 +1128,13 @@
    1.44 +@@ -1106,11 +1108,13 @@
    1.45       const char ** triggerProgs;
    1.46       int_32 * triggerIndices;
    1.47       const char * sourceName;
    1.48 @@ -113,7 +113,7 @@
    1.49   
    1.50       trigger = rpmdsInit(rpmdsNew(triggeredH, RPMTAG_TRIGGERNAME, scareMem));
    1.51       if (trigger == NULL)
    1.52 -@@ -1149,7 +1173,7 @@
    1.53 +@@ -1149,7 +1153,7 @@
    1.54   	{   int arg1;
    1.55   	    int index;
    1.56   
    1.57 @@ -134,7 +134,7 @@
    1.58  Index: lib/psm.c
    1.59  --- lib/psm.c	5 Jun 2003 12:43:18 -0000	1.1.1.6
    1.60  +++ lib/psm.c	13 Sep 2006 13:38:32 -0000
    1.61 -@@ -1710,6 +1734,7 @@
    1.62 +@@ -1710,6 +1714,7 @@
    1.63   
    1.64   		uid = fi->uid;
    1.65   		gid = fi->gid;
    1.66 @@ -142,7 +142,7 @@
    1.67   		if (fi->fuser && unameToUid(fi->fuser[i], &uid)) {
    1.68   		    rpmMessage(RPMMESS_WARNING,
    1.69   			_("user %s does not exist - using root\n"),
    1.70 -@@ -1727,6 +1752,7 @@
    1.71 +@@ -1727,6 +1732,7 @@
    1.72   		    /* XXX this diddles header memory. */
    1.73   		    fi->fmodes[i] &= ~S_ISGID;	/* turn off the sgid bit */
    1.74   		}
    1.75 @@ -158,7 +158,7 @@
    1.76  Index: lib/psm.c
    1.77  --- lib/psm.c	5 Jun 2003 12:43:18 -0000	1.1.1.6
    1.78  +++ lib/psm.c	13 Sep 2006 13:38:33 -0000
    1.79 -@@ -2027,7 +2053,8 @@
    1.80 +@@ -2027,7 +2033,8 @@
    1.81       case PSM_CHROOT_IN:
    1.82       {	const char * rootDir = rpmtsRootDir(ts);
    1.83   	/* Change root directory if requested and not already done. */
    1.84 @@ -185,7 +185,7 @@
    1.85  Index: rpmio/macro.c
    1.86  --- rpmio/macro.c	15 May 2003 13:42:01 -0000	1.1.1.7
    1.87  +++ rpmio/macro.c	22 Jan 2004 21:42:32 -0000	1.2
    1.88 -@@ -879,7 +882,7 @@
    1.89 +@@ -879,7 +879,7 @@
    1.90    */
    1.91   /*@-bounds@*/
    1.92   /*@dependent@*/ static const char *
    1.93 @@ -194,7 +194,7 @@
    1.94   	/*@globals rpmGlobalMacroContext @*/
    1.95   	/*@modifies mb, rpmGlobalMacroContext @*/
    1.96   {
    1.97 -@@ -900,7 +903,7 @@
    1.98 +@@ -900,7 +900,7 @@
    1.99   
   1.100       /* Copy args into buf until lastc */
   1.101       *be++ = ' ';
   1.102 @@ -203,7 +203,7 @@
   1.103   /*@-globs@*/
   1.104   	if (!isblank(c)) {
   1.105   	    *be++ = c;
   1.106 -@@ -968,6 +971,8 @@
   1.107 +@@ -968,6 +968,8 @@
   1.108       /*@-mods@*/
   1.109       optind = 0;		/* XXX but posix != glibc */
   1.110       /*@=mods@*/
   1.111 @@ -212,7 +212,7 @@
   1.112   #endif
   1.113   
   1.114       opts = me->opts;
   1.115 -@@ -1168,7 +1175,7 @@
   1.116 +@@ -1168,7 +1170,7 @@
   1.117       int c;
   1.118       int rc = 0;
   1.119       int negate;
   1.120 @@ -221,7 +221,7 @@
   1.121       int chkexist;
   1.122   
   1.123       if (++mb->depth > max_macro_depth) {
   1.124 -@@ -1202,7 +1209,7 @@
   1.125 +@@ -1202,7 +1204,7 @@
   1.126   	if (mb->depth > 1)	/* XXX full expansion for outermost level */
   1.127   		t = mb->t;	/* save expansion pointer for printExpand */
   1.128   	negate = 0;
   1.129 @@ -230,7 +230,7 @@
   1.130   	chkexist = 0;
   1.131   	switch ((c = *s)) {
   1.132   	default:		/* %name substitution */
   1.133 -@@ -1237,7 +1244,8 @@
   1.134 +@@ -1237,7 +1239,8 @@
   1.135   		/* For "%name " macros ... */
   1.136   /*@-globs@*/
   1.137   		if ((c = *fe) && isblank(c))
   1.138 @@ -240,7 +240,7 @@
   1.139   /*@=globs@*/
   1.140   		/*@switchbreak@*/ break;
   1.141   	case '(':		/* %(...) shell escape */
   1.142 -@@ -1284,7 +1292,7 @@
   1.143 +@@ -1284,7 +1287,7 @@
   1.144   			ge = se - 1;
   1.145   			/*@innerbreak@*/ break;
   1.146   		case ' ':
   1.147 @@ -249,7 +249,7 @@
   1.148   			/*@innerbreak@*/ break;
   1.149   		default:
   1.150   			/*@innerbreak@*/ break;
   1.151 -@@ -1438,7 +1446,7 @@
   1.152 +@@ -1438,7 +1441,7 @@
   1.153   
   1.154   	/* Setup args for "%name " macros with opts */
   1.155   	if (me && me->opts != NULL) {

mercurial