From 3c5ea71c88a6731039a48884d4cf9b82b9a3e2df30ffa58bb56dfc1dc6e20111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 31 Jul 2017 12:31:44 +0000 Subject: [PATCH] Accepting request 513169 from home:Andreas_Schwab:glibc:rebuild - use-extensions.patch: add AC_USE_SYSTEM_EXTENSIONS to get missing declaration OBS-URL: https://build.opensuse.org/request/show/513169 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/flex?expand=0&rev=30 --- flex.changes | 6 ++++++ flex.spec | 7 +++++++ use-extensions.patch | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 use-extensions.patch diff --git a/flex.changes b/flex.changes index e91bbdf..e9186fb 100644 --- a/flex.changes +++ b/flex.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 31 12:12:19 UTC 2017 - schwab@suse.de + +- use-extensions.patch: add AC_USE_SYSTEM_EXTENSIONS to get missing + declaration + ------------------------------------------------------------------- Mon Jul 3 10:08:31 UTC 2017 - mpluskal@suse.com diff --git a/flex.spec b/flex.spec index eb19a7e..3cfb1bb 100644 --- a/flex.spec +++ b/flex.spec @@ -28,7 +28,12 @@ Source: https://github.com/westes/flex/releases/download/v%{version}/fle Source1: lex-wrapper.sh Source2: README.SUSE Source3: baselibs.conf +Patch: use-extensions.patch +BuildRequires: autoconf +BuildRequires: automake BuildRequires: gcc-c++ +BuildRequires: help2man +BuildRequires: libtool BuildRequires: m4 Requires: libfl-devel = %{version} Requires: m4 @@ -63,8 +68,10 @@ This package contains libraries for using flex. %prep %setup -q +%patch -p1 %build +autoreconf -fi %configure \ --docdir=%{_docdir}/%{name} make %{?_smp_mflags} diff --git a/use-extensions.patch b/use-extensions.patch new file mode 100644 index 0000000..97c9e0c --- /dev/null +++ b/use-extensions.patch @@ -0,0 +1,12 @@ +Index: flex-2.6.4/configure.ac +=================================================================== +--- flex-2.6.4.orig/configure.ac ++++ flex-2.6.4/configure.ac +@@ -27,6 +27,7 @@ + AC_INIT([the fast lexical analyser generator],[2.6.4],[flex-help@lists.sourceforge.net],[flex]) + AC_CONFIG_SRCDIR([src/scan.l]) + AC_CONFIG_AUX_DIR([build-aux]) ++AC_USE_SYSTEM_EXTENSIONS + LT_INIT + AM_INIT_AUTOMAKE([1.11.3 -Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects]) + AC_CONFIG_HEADER([src/config.h])