rpms/pam_ccreds/devel pam_ccreds-4-open.patch, NONE, 1.1 pam_ccreds.spec, 1.21, 1.22

Tomas Mraz (tmraz) fedora-extras-commits at redhat.com
Wed Aug 22 21:03:27 UTC 2007


Author: tmraz

Update of /cvs/pkgs/rpms/pam_ccreds/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3060

Modified Files:
	pam_ccreds.spec 
Added Files:
	pam_ccreds-4-open.patch 
Log Message:
- build with open defined as macro

pam_ccreds-4-open.patch:

--- NEW FILE pam_ccreds-4-open.patch ---
diff -up pam_ccreds-4/cc_db.c.open pam_ccreds-4/cc_db.c
--- pam_ccreds-4/cc_db.c.open	2006-07-05 17:18:48.000000000 +0200
+++ pam_ccreds-4/cc_db.c	2007-08-22 22:56:56.000000000 +0200
@@ -67,10 +67,10 @@ int pam_cc_db_open(const char *filename,
 	}
 
 #if (DB_VERSION_MAJOR > 3) && (DB_VERSION_MINOR > 0)
-	rc = db->open(db, NULL, filename, NULL,
+	rc = (db->open)(db, NULL, filename, NULL,
 		      DB_BTREE, db_flags, mode);
 #else
-	rc = db->open(db, NULL, filename,
+	rc = (db->open)(db, NULL, filename,
 		      DB_BTREE, db_flags, mode);
 #endif
 


Index: pam_ccreds.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pam_ccreds/devel/pam_ccreds.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- pam_ccreds.spec	22 Aug 2007 19:15:18 -0000	1.21
+++ pam_ccreds.spec	22 Aug 2007 21:02:52 -0000	1.22
@@ -8,6 +8,7 @@
 Source0: http://www.padl.com/download/%{name}-%{version}.tar.gz
 Patch1: pam_ccreds-3-inst-no-root.patch
 Patch2: pam_ccreds-4-chkpwd.patch
+Patch3: pam_ccreds-4-open.patch
 
 BuildRequires: automake db4-devel openssl-devel pam-devel
 Requires: db4 pam
@@ -26,6 +27,7 @@
 %setup -q
 %patch1 -p1 -b .inst-no-root
 %patch2 -p1 -b .chkpwd
+%patch3 -p1 -b .open
 touch compile
 autoreconf
 
@@ -54,6 +56,7 @@
 %changelog
 * Wed Aug 22 2007 Tomas Mraz <tmraz at redhat.com> - 4-3
 - license tag fix
+- build with open defined as macro
 
 * Thu Apr  5 2007 Tomas Mraz <tmraz at redhat.com> - 4-2
 - minor updates for merge review (#226224)




More information about the fedora-extras-commits mailing list