From dc9737138ebb436950862b88421de3c071113fb6b4828dd330350232926ea7fb Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Wed, 14 Oct 2015 11:13:46 +0000 Subject: [PATCH] Accepting request 338811 from home:Dmitry_R:branches:electronics - Fix build with GCC5 * crosstool-ng-gcc5.patch OBS-URL: https://build.opensuse.org/request/show/338811 OBS-URL: https://build.opensuse.org/package/show/electronics/crosstool-ng?expand=0&rev=6 --- crosstool-ng-gcc5.patch | 13 +++++++++++++ crosstool-ng.changes | 6 ++++++ crosstool-ng.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 crosstool-ng-gcc5.patch diff --git a/crosstool-ng-gcc5.patch b/crosstool-ng-gcc5.patch new file mode 100644 index 0000000..bfa3495 --- /dev/null +++ b/crosstool-ng-gcc5.patch @@ -0,0 +1,13 @@ +Index: crosstool-ng-1.21.0/kconfig/nconf.c +=================================================================== +--- crosstool-ng-1.21.0.orig/kconfig/nconf.c ++++ crosstool-ng-1.21.0/kconfig/nconf.c +@@ -1518,7 +1518,7 @@ int main(int ac, char **av) + } + + notimeout(stdscr, FALSE); +- ESCDELAY = 1; ++ set_escdelay(1); + + /* set btns menu */ + curses_menu = new_menu(curses_menu_items); diff --git a/crosstool-ng.changes b/crosstool-ng.changes index d12c8cf..901c98e 100644 --- a/crosstool-ng.changes +++ b/crosstool-ng.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 14 11:06:12 UTC 2015 - dmitry_r@opensuse.org + +- Fix build with GCC5 + * crosstool-ng-gcc5.patch + ------------------------------------------------------------------- Tue May 26 13:20:25 UTC 2015 - dmitry_r@opensuse.org diff --git a/crosstool-ng.spec b/crosstool-ng.spec index d9677c5..4f65c12 100644 --- a/crosstool-ng.spec +++ b/crosstool-ng.spec @@ -24,6 +24,8 @@ License: GPL-2.0 and GPL-2.0+ and GPL-3.0+ and LGPL-2.1 and LGPL-3.0+ Group: Development/Tools/Building Url: http://crosstool-ng.org Source0: http://crosstool-ng.org/download/crosstool-ng/%{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM -- crosstool-ng-gcc5.patch -- fix build with GCC5 +Patch1: crosstool-ng-gcc5.patch BuildRequires: bison BuildRequires: fdupes BuildRequires: flex @@ -50,6 +52,7 @@ in the resulting binary/ies: static libraries are but an example. %prep %setup -qc %{name}-%{version} +%patch1 -p1 # from legal team # "Distribution and use is free, also for commercial purposes" (no modification permission) find patches/ -name '*-new-valencian-locale.patch' -type f -delete -print