rpms/flex/devel flex-2.5.4a-posix.patch, NONE, 1.1 flex.spec, 1.28, 1.29 test-183098.sh, 1.2, NONE

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Jul 14 13:37:20 UTC 2006


Author: pmachata

Update of /cvs/dist/rpms/flex/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv25955

Modified Files:
	flex.spec 
Added Files:
	flex-2.5.4a-posix.patch 
Removed Files:
	test-183098.sh 
Log Message:
- fileno is defined in posix standard, so adding #define _POSIX_SOURCE
  to compile without warnings (#195687)
- dropping 183098 test, since the original bug was already resolved


flex-2.5.4a-posix.patch:
 skel.c  |    2 ++
 skel.c~ |only
 2 files changed, 2 insertions(+)

--- NEW FILE flex-2.5.4a-posix.patch ---
diff -Bburpd flex-2.5.4/skel.c flex-2.5.4-pm/skel.c
--- flex-2.5.4/skel.c	2006-07-14 15:30:18.000000000 +0200
+++ flex-2.5.4-pm/skel.c	2006-07-14 15:29:43.000000000 +0200
@@ -14,6 +14,8 @@ const char *skel[] = {
   "#define YY_FLEX_MINOR_VERSION 5",
   "",
   "%-",
+  "/* Use posix source, to silent c99 warnings about fileno. */",
+  "#define _POSIX_SOURCE 1",
   "#include <stdio.h>",
   "#include <unistd.h>",
   "%*",
Only in flex-2.5.4-pm: skel.c~


Index: flex.spec
===================================================================
RCS file: /cvs/dist/rpms/flex/devel/flex.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- flex.spec	12 Jul 2006 05:49:10 -0000	1.28
+++ flex.spec	14 Jul 2006 13:37:18 -0000	1.29
@@ -1,13 +1,12 @@
 Summary: A tool for creating scanners (text pattern recognizers).
 Name: flex
 Version: 2.5.4a
-Release: 38.1
+Release: 39
 License: BSD
 Group: Development/Tools
 URL: http://www.gnu.org/software/flex/
 BuildRoot: %{_tmppath}/%{name}-root
 Source: ftp://ftp.gnu.org/non-gnu/flex/flex-2.5.4a.tar.gz
-Source2: test-183098.sh
 Patch0: flex-2.5.4a-skel.patch
 Patch1: flex-2.5.4-glibc22.patch
 Patch2: flex-2.5.4a-gcc3.patch
@@ -19,6 +18,7 @@
 Patch8: flex-2.5.4a2-shapwarn.patch
 Patch9: flex-2.5.4a2-iniscan.patch
 Patch10: flex-2.5.4a-Makefile.in.patch
+Patch11: flex-2.5.4a-posix.patch
 BuildRequires: autoconf, byacc
 
 %description
@@ -48,6 +48,7 @@
 %patch8 -p1 -b .shapwarn
 %patch9 -p1 -b .iniscan
 %patch10 -p1
+%patch11 -p1
 
 %build
 autoconf
@@ -68,7 +69,6 @@
 
 %check
 echo ============TESTING===============
-sh %{SOURCE2}
 make bigcheck
 echo ============END TESTING===========
 
@@ -84,6 +84,11 @@
 %{_includedir}/FlexLexer.h
 
 %changelog
+* Fri Jul 14 2006 Petr Machata <pmachata at redhat.com> - 2.5.4a-39
+- fileno is defined in posix standard, so adding #define _POSIX_SOURCE
+  to compile without warnings (#195687)
+- dropping 183098 test, since the original bug was already resolved
+
 * Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 2.5.4a-38.1
 - rebuild
 


--- test-183098.sh DELETED ---




More information about the fedora-cvs-commits mailing list