From d5ef42b8406d3a9bf6971cf935ede7e786f613c7008bf994946ac019f5309b29 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 19 Jun 2009 00:48:22 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/flex?expand=0&rev=9 --- flex-2.5.34-asneeded.patch | 15 +++++++++++++++ flex.changes | 5 +++++ flex.spec | 8 ++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 flex-2.5.34-asneeded.patch diff --git a/flex-2.5.34-asneeded.patch b/flex-2.5.34-asneeded.patch new file mode 100644 index 0000000..7d237d2 --- /dev/null +++ b/flex-2.5.34-asneeded.patch @@ -0,0 +1,15 @@ +libraries need to be last + +Index: tests/test-pthread/Makefile.am +=================================================================== +--- tests/test-pthread/Makefile.am.orig ++++ tests/test-pthread/Makefile.am +@@ -37,7 +37,7 @@ scanner.c: $(srcdir)/scanner.l + $(FLEX) $(LFLAGS) $< + + $(testname)$(EXEEXT): $(OBJS) +- $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES) ++ $(CC) -o $@ $(OBJS) $(LOADLIBES) $(LDFLAGS) + + test: $(testname)$(EXEEXT) + ./$(testname) $(srcdir)/test-*.input diff --git a/flex.changes b/flex.changes index 52725d8..ca59fb7 100644 --- a/flex.changes +++ b/flex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jun 13 08:38:26 CEST 2009 - coolo@novell.com + +- fix link line + ------------------------------------------------------------------- Mon Jan 12 11:35:11 CET 2009 - rguenther@suse.de diff --git a/flex.spec b/flex.spec index dcf6696..c5e260c 100644 --- a/flex.spec +++ b/flex.spec @@ -21,7 +21,7 @@ Name: flex BuildRequires: bison gcc-c++ help2man Url: http://flex.sourceforge.net/ -License: BSD 3-Clause +License: BSD 3-clause (or similar) Group: Development/Languages/C and C++ Requires: m4 PreReq: %install_info_prereq @@ -32,7 +32,7 @@ Obsoletes: flex-64bit %endif # Version: 2.5.35 -Release: 44 +Release: 45 Summary: Fast Lexical Analyzer Generator Source: %{name}-%{version}.tar.bz2 Source1: lex-wrapper.sh @@ -41,6 +41,7 @@ Patch1: flex-2.5.34-fPIC.patch Patch2: flex-2.5.33-yylineno.patch Patch3: flex-2.5.34-doc-fix.diff Patch4: flex-2.5.34-g++44.diff +Patch5: flex-2.5.34-asneeded.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -63,6 +64,7 @@ Authors: #patch2 %patch3 %patch4 +%patch5 cp %{S:2} . %build @@ -101,6 +103,8 @@ rm -rf $RPM_BUILD_ROOT %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %changelog +* Sat Jun 13 2009 coolo@novell.com +- fix link line * Mon Jan 12 2009 rguenther@suse.de - Add patch to include in the C++ header section. Fixes the C++ parts of the testsuite with GCC 4.4.