rpms/yap/devel Yap-creat.patch,NONE,1.1 yap.spec,1.19,1.20
Gérard Milmeister (gemi)
fedora-extras-commits at redhat.com
Thu Apr 10 19:06:20 UTC 2008
- Previous message (by thread): rpms/perl-HTML-Encoding/devel .cvsignore, 1.5, 1.6 perl-HTML-Encoding.spec, 1.8, 1.9 sources, 1.5, 1.6
- Next message (by thread): rpms/imapsync/F-8 imapsync.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: gemi
Update of /cvs/pkgs/rpms/yap/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32669
Modified Files:
yap.spec
Added Files:
Yap-creat.patch
Log Message:
enable rpm_opt_flags
Yap-creat.patch:
--- NEW FILE Yap-creat.patch ---
diff -up Yap-5.1.1/C/alloc.c.creat Yap-5.1.1/C/alloc.c
--- Yap-5.1.1/C/alloc.c.creat 2008-04-10 20:32:14.000000000 +0200
+++ Yap-5.1.1/C/alloc.c 2008-04-10 20:32:45.000000000 +0200
@@ -796,7 +796,7 @@ InitWorkSpace(Int s)
itos(getpid(), &file[12]);
#endif /* HAVE_TMPNAM */
#endif /* HAVE_MKSTEMP */
- fd = open(file, O_CREAT|O_RDWR);
+ fd = open(file, O_CREAT|O_RDWR, 0644);
if (fd < 0) {
Yap_Error(FATAL_ERROR, TermNil, "mmap could not open %s", file);
return NULL;
@@ -909,7 +909,7 @@ ExtendWorkSpace(Int s, int fixed_allocat
itos(getpid(), &file[12]);
#endif /* HAVE_TMPNAM */
#endif /* HAVE_MKSTEMP */
- fd = open(file, O_CREAT|O_RDWR);
+ fd = open(file, O_CREAT|O_RDWR, 0644);
if (fd < 0) {
Yap_ErrorMessage = Yap_ErrorSay;
snprintf4(Yap_ErrorMessage, MAX_ERROR_MSG_SIZE,
Index: yap.spec
===================================================================
RCS file: /cvs/pkgs/rpms/yap/devel/yap.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- yap.spec 19 Feb 2008 03:55:30 -0000 1.19
+++ yap.spec 10 Apr 2008 19:05:30 -0000 1.20
@@ -1,6 +1,6 @@
Name: yap
Version: 5.1.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: High-performance Prolog Compiler
@@ -12,6 +12,7 @@
Source3: chr_translate_bootstrap2.pl
Source4: chr_translate.pl
Patch1: Yap-noni386.patch
+Patch2: Yap-creat.patch
URL: http://www.ncc.up.pt/~vsc/Yap
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel, gmp-devel, texinfo
@@ -47,16 +48,21 @@
%prep
%setup -q -n Yap-%{version}
%patch1 -p1
+%patch2 -p1
+
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} LGPL/chr
+
# remove redundant rpath
sed -i '/-Wl,-R/d' configure
+# properly link dynamically
sed -i 's/SHLIB_LD=.*/SHLIB_LD="gcc -shared"/' configure
+
find -name Makefile.in | xargs sed -i 's|$(ROOTDIR)/lib|$(ROOTDIR)/%{_lib}|'
find -name Makefile.in | xargs sed -i 's|$(EROOTDIR)/lib|$(EROOTDIR)/%{_lib}|'
%build
-%define optflags $(echo $RPM_OPT_FLAGS | sed 's|-fstack-protector||')
+# % define optflags $(echo $RPM_OPT_FLAGS | sed 's|-fstack-protector||')
%configure \
--enable-coroutining \
--enable-max-performance \
@@ -131,6 +137,10 @@
%changelog
+* Thu Apr 10 2008 Gerard Milmeister <gemi at bluewin.ch> - 5.1.1-10
+- enable rpm_opt_flags
+- patch for incorrect open call with O_CREAT
+
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 5.1.1-9
- Autorebuild for GCC 4.3
- Previous message (by thread): rpms/perl-HTML-Encoding/devel .cvsignore, 1.5, 1.6 perl-HTML-Encoding.spec, 1.8, 1.9 sources, 1.5, 1.6
- Next message (by thread): rpms/imapsync/F-8 imapsync.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list