rpms/sword/devel sword-open.patch,NONE,1.1 sword.spec,1.18,1.19
Deji Akingunola (deji)
fedora-extras-commits at redhat.com
Wed Sep 26 03:05:44 UTC 2007
Author: deji
Update of /cvs/extras/rpms/sword/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30906
Modified Files:
sword.spec
Added Files:
sword-open.patch
Log Message:
* Tue Sep 25 2007 Deji Akingunola <dakingun at gmail.com> - 1.5.9-7
- Fix the build failure due to glibc open() check
sword-open.patch:
--- NEW FILE sword-open.patch ---
--- utilities/cipherraw.cpp 2005-05-02 23:49:04.000000000 -0400
+++ utilities/cipherraw.cpp.new 2007-09-25 18:14:16.000000000 -0400
@@ -45,13 +45,13 @@
tmpbuf = new char [ strlen(argv[1]) + 11 ];
sprintf(tmpbuf, "%sot.zzz", argv[1]);
- ofd[0] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT);
+ ofd[0] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT, 0600);
sprintf(tmpbuf, "%sot.zzz.vss", argv[1]);
- oxfd[0] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT);
+ oxfd[0] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT, 0600);
sprintf(tmpbuf, "%snt.zzz", argv[1]);
- ofd[1] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT);
+ ofd[1] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT, 0600);
sprintf(tmpbuf, "%snt.zzz.vss", argv[1]);
- oxfd[1] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT);
+ oxfd[1] = open(tmpbuf, O_WRONLY|O_BINARY|O_CREAT, 0600);
delete [] tmpbuf;
--- utilities/gbfidx.cpp 2007-09-25 18:12:44.000000000 -0400
+++ utilities/gbfidx.cpp.new 2007-09-25 18:13:04.000000000 -0400
@@ -258,25 +258,25 @@
#endif // don't need it.
char buf[255];
- if ((fp = open(fname, O_RDONLY|O_BINARY)) == -1) {
+ if ((fp = open(fname, O_RDONLY|O_BINARY, 0600)) == -1) {
fprintf(stderr, "Couldn't open file: %s\n", fname);
exit(1);
}
sprintf(buf, "%s.vss", fname);
- if ((vfp = open(buf, O_CREAT|O_WRONLY|O_BINARY)) == -1) {
+ if ((vfp = open(buf, O_CREAT|O_WRONLY|O_BINARY, 0600)) == -1) {
fprintf(stderr, "Couldn't open file: %s\n", buf);
exit(1);
}
sprintf(buf, "%s.cps", fname);
- if ((cfp = open(buf, O_CREAT|O_WRONLY|O_BINARY)) == -1) {
+ if ((cfp = open(buf, O_CREAT|O_WRONLY|O_BINARY, 0600)) == -1) {
fprintf(stderr, "Couldn't open file: %s\n", buf);
exit(1);
}
sprintf(buf, "%s.bks", fname);
- if ((bfp = open(buf, O_CREAT|O_WRONLY|O_BINARY)) == -1) {
+ if ((bfp = open(buf, O_CREAT|O_WRONLY|O_BINARY, 0600)) == -1) {
fprintf(stderr, "Couldn't open file: %s\n", buf);
exit(1);
}
Index: sword.spec
===================================================================
RCS file: /cvs/extras/rpms/sword/devel/sword.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- sword.spec 25 Aug 2007 12:42:04 -0000 1.18
+++ sword.spec 26 Sep 2007 03:05:10 -0000 1.19
@@ -1,12 +1,13 @@
Name: sword
Version: 1.5.9
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Free Bible Software Project
Group: System Environment/Libraries
License: GPLv2
URL: http://www.crosswire.org/sword/
Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.5/sword-%{version}.tar.gz
+Patch0: sword-open.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel
@@ -40,6 +41,7 @@
%prep
%setup -q
+%patch -p0 -b .open
%build
%configure --disable-static --with-icu --with-lucene
@@ -82,6 +84,9 @@
%changelog
+* Tue Sep 25 2007 Deji Akingunola <dakingun at gmail.com> - 1.5.9-7
+- Fix the build failure due to glibc open() check
+
* Sat Aug 25 2007 Deji Akingunola <dakingun at gmail.com> - 1.5.9-6
- Rebuild
More information about the fedora-extras-commits
mailing list