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
This commit is contained in:
Dmitry Roshchin 2015-10-14 11:13:46 +00:00 committed by Git OBS Bridge
parent 62cc9d6e73
commit dc9737138e
3 changed files with 22 additions and 0 deletions

13
crosstool-ng-gcc5.patch Normal file
View File

@ -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);

View File

@ -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 Tue May 26 13:20:25 UTC 2015 - dmitry_r@opensuse.org

View File

@ -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 Group: Development/Tools/Building
Url: http://crosstool-ng.org Url: http://crosstool-ng.org
Source0: http://crosstool-ng.org/download/crosstool-ng/%{name}-%{version}.tar.bz2 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: bison
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: flex BuildRequires: flex
@ -50,6 +52,7 @@ in the resulting binary/ies: static libraries are but an example.
%prep %prep
%setup -qc %{name}-%{version} %setup -qc %{name}-%{version}
%patch1 -p1
# from legal team # from legal team
# "Distribution and use is free, also for commercial purposes" (no modification permission) # "Distribution and use is free, also for commercial purposes" (no modification permission)
find patches/ -name '*-new-valencian-locale.patch' -type f -delete -print find patches/ -name '*-new-valencian-locale.patch' -type f -delete -print