[commoncpp2: 1/2] Update to 1.8.1

Kevin Fenzi kevin at fedoraproject.org
Mon Jan 23 02:34:51 UTC 2012


commit 1d85fceae1af394623584e97f4e2f0a30ee342b3
Author: Kevin Fenzi <kevin at scrye.com>
Date:   Sun Jan 22 19:32:30 2012 -0700

    Update to 1.8.1

 commoncpp2-1.8.1-statfix.patch |   47 ++++++++++++++++++++++++++++++++++++++++
 commoncpp2.spec                |   12 ++++++---
 2 files changed, 55 insertions(+), 4 deletions(-)
---
diff --git a/commoncpp2-1.8.1-statfix.patch b/commoncpp2-1.8.1-statfix.patch
new file mode 100644
index 0000000..5dfc36e
--- /dev/null
+++ b/commoncpp2-1.8.1-statfix.patch
@@ -0,0 +1,47 @@
+diff -Nur commoncpp2-1.8.1.orig/src/applog.cpp commoncpp2-1.8.1/src/applog.cpp
+--- commoncpp2-1.8.1.orig/src/applog.cpp	2010-10-31 17:11:55.000000000 -0600
++++ commoncpp2-1.8.1/src/applog.cpp	2012-01-22 19:23:13.639292789 -0700
+@@ -45,6 +45,7 @@
+ #include <cstdlib>
+ #include <stdarg.h>
+ #include <errno.h>
++#include <sys/stat.h>
+ 
+ // TODO sc: test if has to move up now that it is into commoncpp
+ // NOTE: the order of inclusion is important do not move following include line
+@@ -297,7 +298,7 @@
+     else
+     {
+       // create pipe
+-      int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);
++      int err = mkfifo(_nomeFile.c_str(), S_IRUSR | S_IWUSR);
+       if (err == 0 || errno == EEXIST)
+       {
+         // and open it
+@@ -342,7 +343,7 @@
+     else
+     {
+       // create pipe
+-      int err = mkfifo(_nomeFile.c_str(), S_IREAD | S_IWRITE);
++      int err = mkfifo(_nomeFile.c_str(), S_IRUSR | S_IWUSR);
+       if (err == 0 || errno == EEXIST)
+       {
+         // and open it
+@@ -456,7 +457,7 @@
+     else
+     {
+       // create pipe
+-      int err = mkfifo(d->_nomeFile.c_str(), S_IREAD | S_IWRITE);
++      int err = mkfifo(d->_nomeFile.c_str(), S_IRUSR | S_IWUSR);
+       if (err == 0 || errno == EEXIST)
+       {
+         // and open it
+@@ -562,7 +563,7 @@
+     else
+     {
+       // create pipe
+-      int err = mkfifo(d->_nomeFile.c_str(), S_IREAD | S_IWRITE);
++      int err = mkfifo(d->_nomeFile.c_str(), S_IRUSR | S_IWUSR);
+       if (err == 0 || errno == EEXIST)
+       {
+         // and open it
diff --git a/commoncpp2.spec b/commoncpp2.spec
index b2be71b..f439652 100644
--- a/commoncpp2.spec
+++ b/commoncpp2.spec
@@ -1,12 +1,12 @@
 Summary: GNU Common C++ class framework
 Name: commoncpp2
-Version: 1.7.3
-Release: 3%{?dist}
+Version: 1.8.1
+Release: 1%{?dist}
 License: GPLv2+ with exceptions
 Group: System Environment/Libraries
 Source0: http://www.gnutelephony.org/dist/tarballs/commoncpp2-%{version}.tar.gz
+Patch1: commoncpp2-1.8.1-statfix.patch
 URL: http://www.gnu.org/software/commoncpp/
-Patch0: commoncpp2-1.7.3-gcc44.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libxml2-devel, zlib-devel, doxygen
 
@@ -33,7 +33,8 @@ to develop programs that use the %{name} library.
 
 %prep
 %setup -q
-%patch0 -p1
+
+%patch1 -p1
 
 %build
 %configure \
@@ -80,6 +81,9 @@ fi
 %{_infodir}/commoncpp2.info*
 
 %changelog
+* Sun Jan 22 2012 Kevin Fenzi <kevin at scrye.com> - 1.8.1-1
+- Update to 1.8.1
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.7.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list