Accepting request 284155 from home:Andreas_Schwab:Factory

- no-return-in-nonvoid-function.patch: fix no-return-in-nonvoid-function
  error

OBS-URL: https://build.opensuse.org/request/show/284155
OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=9
This commit is contained in:
Sean Watson 2015-02-05 18:13:55 +00:00 committed by Git OBS Bridge
parent 592b26e04e
commit 3fbf447a56
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 5 09:31:48 UTC 2015 - schwab@suse.de
- no-return-in-nonvoid-function.patch: fix no-return-in-nonvoid-function
error
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 28 17:26:37 UTC 2015 - zawertun@gmail.com Wed Jan 28 17:26:37 UTC 2015 - zawertun@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package fish # spec file for package fish
# #
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,8 @@ Url: http://fishshell.com/
Source: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz Source: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz
# PATCH-FIX-UPSTREAM check_for_command-not-found_command_on_suse.patch gh#fish-shell/fish-shell#1208 # PATCH-FIX-UPSTREAM check_for_command-not-found_command_on_suse.patch gh#fish-shell/fish-shell#1208
Patch0: check_for_command-not-found_command_on_suse.patch Patch0: check_for_command-not-found_command_on_suse.patch
# PATCH-FIX-UPSTREAM no-return-in-nonvoid-function.patch Fix no-return-in-nonvoid-function error
Patch1: no-return-in-nonvoid-function.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -44,6 +46,7 @@ discoverability. The language syntax is simple but incompatible with other shell
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
autoconf autoconf

View File

@ -0,0 +1,12 @@
Index: fish-2.1.1/fallback.cpp
===================================================================
--- fish-2.1.1.orig/fallback.cpp
+++ fish-2.1.1/fallback.cpp
@@ -61,6 +61,7 @@ int tputs(const char *str, int affcnt, i
{
fish_putc(*str++);
}
+ return 0;
}
#endif