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