rpms/openhpi/devel openhpi-2.8.1-open.patch, NONE, 1.1 openhpi.spec, 1.55, 1.56

Phil Knirsch (pknirsch) fedora-extras-commits at redhat.com
Thu Aug 23 14:10:45 UTC 2007


Author: pknirsch

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

Modified Files:
	openhpi.spec 
Added Files:
	openhpi-2.8.1-open.patch 
Log Message:
- Fix rebuild problems due to new glibc open macro


openhpi-2.8.1-open.patch:

--- NEW FILE openhpi-2.8.1-open.patch ---
--- openhpi-2.8.1/utils/uid_utils.c.open	2007-08-23 16:03:33.000000000 +0200
+++ openhpi-2.8.1/utils/uid_utils.c	2007-08-23 16:08:30.000000000 +0200
@@ -400,7 +400,7 @@
 
         uid_lock(&oh_uid_lock);
 
-        file = open(uid_map_file, O_WRONLY|O_CREAT|O_TRUNC);
+        file = open(uid_map_file, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
         if(file < 0) {
                 dbg("Configuration file '%s' could not be opened", uid_map_file);
                 uid_unlock(&oh_uid_lock);


Index: openhpi.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openhpi/devel/openhpi.spec,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- openhpi.spec	23 Aug 2007 13:57:41 -0000	1.55
+++ openhpi.spec	23 Aug 2007 14:10:12 -0000	1.56
@@ -9,6 +9,7 @@
 Patch1: openhpi-2.8.0-werror.patch
 Patch2: openhpi-2.8.1-snmp_bc_discover.patch
 Patch3: openhpi-2.8.1-segfault.patch
+Patch4: openhpi-2.8.1-open.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libsysfs-devel, net-snmp-devel, OpenIPMI-devel, glib2-devel
 BuildRequires: elfutils-devel, rpm-devel, libtool-ltdl-devel, bzip2-devel
@@ -44,6 +45,7 @@
 %patch1 -p1 -b .werror
 %patch2 -p1 -b .snmp_bc_discover
 %patch3 -p1 -b .segfault
+%patch4 -p1 -b .open
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
@@ -96,6 +98,7 @@
 %changelog
 * Thu Aug 23 2007 Phil Knirsch <pknirsch at redhat.com> - 2.8.1-5
 - Bump release and rebuild because of PPC issues
+- Fix rebuild problems due to new glibc open macro
 
 * Fri Jul 20 2007 Phil Knirsch <pknirsch at redhat.com> - 2.8.1-4
 - Fix for hpipower segfaulting when using -b option out of range (#247279)




More information about the fedora-extras-commits mailing list