packages (rpm-4_5): rpm/rpm-chroot-hack.patch - do not consider dbenv. seem...

glen glen at pld-linux.org
Sat Jun 6 16:58:34 CEST 2009


Author: glen                         Date: Sat Jun  6 14:58:34 2009 GMT
Module: packages                      Tag: rpm-4_5
---- Log message:
- do not consider dbenv. seems to solve problem in LP#347749

---- Files affected:
packages/rpm:
   rpm-chroot-hack.patch (1.1.2.1 -> 1.1.2.1.2.1) 

---- Diffs:

================================================================
Index: packages/rpm/rpm-chroot-hack.patch
diff -u packages/rpm/rpm-chroot-hack.patch:1.1.2.1 packages/rpm/rpm-chroot-hack.patch:1.1.2.1.2.1
--- packages/rpm/rpm-chroot-hack.patch:1.1.2.1	Thu Nov 15 08:34:31 2007
+++ packages/rpm/rpm-chroot-hack.patch	Sat Jun  6 16:58:29 2009
@@ -1,6 +1,5 @@
-diff -urN rpm-4.4.9.org/rpmdb/db3.c rpm-4.4.9/rpmdb/db3.c
---- rpm-4.4.9.org/rpmdb/db3.c	2007-04-25 03:48:42.000000000 +0200
-+++ rpm-4.4.9/rpmdb/db3.c	2007-11-12 20:01:29.761434045 +0100
+--- rpm-4.5/rpmdb/db3.c~	2009-06-06 17:54:26.000000000 +0300
++++ rpm-4.5/rpmdb/db3.c	2009-06-06 17:55:36.050580710 +0300
 @@ -1329,6 +1329,8 @@
  	} else {
  assert(rpmdb && rpmdb->db_dbenv);
@@ -10,12 +9,18 @@
  	    rpmdb->db_opens++;
  	}
  	/*@=mods@*/
-@@ -1496,7 +1498,7 @@
+@@ -1511,13 +1511,7 @@
  		if (dbfile)
  		    t = stpcpy( stpcpy( t, "/"), dbfile);
  /*@=boundswrite@*/
 -#ifdef	HACK	/* XXX necessary to support dbsubfile */
-+#if 1
- 		dbpath = (!dbi->dbi_use_dbenv && !dbi->dbi_temporary)
- 			? dbfullpath : dbfile;
- #else
+-		dbpath = (!dbi->dbi_use_dbenv && !dbi->dbi_temporary)
+-			? dbfullpath : dbfile;
+-#else
+-		dbpath = (!dbi->dbi_temporary)
+-			? dbfullpath : dbfile;
+-#endif
++		dbpath = (!dbi->dbi_temporary) ? dbfullpath : dbfile;
+ 
+ #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
+ 		rc = (db->open)(db, txnid, dbpath, dbsubfile,
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rpm/rpm-chroot-hack.patch?r1=1.1.2.1&r2=1.1.2.1.2.1&f=u



More information about the pld-cvs-commit mailing list