diff --git a/bc-dc-correct-return-value.patch b/bc-dc-correct-return-value.patch new file mode 100644 index 0000000..993ece3 --- /dev/null +++ b/bc-dc-correct-return-value.patch @@ -0,0 +1,16 @@ +Index: bc-1.07.1/dc/eval.c +=================================================================== +--- bc-1.07.1.orig/dc/eval.c 2017-04-07 17:22:07.000000000 +0200 ++++ bc-1.07.1/dc/eval.c 2019-03-13 11:24:50.561897120 +0100 +@@ -814,10 +814,10 @@ error_fail: + fprintf(stderr, "%s: ", progname); + perror("error reading input"); + return DC_FAIL; +-reset_and_exit_quit: + reset_and_exit_fail: + signal(SIGINT, sigint_default); + return DC_FAIL; ++reset_and_exit_quit: + reset_and_exit_success: + signal(SIGINT, sigint_default); + return DC_SUCCESS; diff --git a/bc.changes b/bc.changes index f9f16ab..a9a1dbc 100644 --- a/bc.changes +++ b/bc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 13 10:32:04 UTC 2019 - pgajdos@suse.com + +- added patches + Correct return value after 'q' [bsc#1129038] + + bc-dc-correct-return-value.patch + ------------------------------------------------------------------- Mon Apr 10 07:39:45 UTC 2017 - mpluskal@suse.com diff --git a/bc.spec b/bc.spec index 95cbc5a..9a9b963 100644 --- a/bc.spec +++ b/bc.spec @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,13 +20,15 @@ Name: bc Version: 1.07.1 Release: 0 Summary: GNU Command Line Calculator -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Scientific/Math Url: https://www.gnu.org/software/bc/ Source0: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz Source1: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig Source2: %{name}.keyring Patch1: bc-1.06-dc_ibase.patch +# Correct return value after 'q' [bsc#1129038] +Patch2: bc-dc-correct-return-value.patch BuildRequires: bison BuildRequires: ed BuildRequires: flex @@ -57,6 +59,7 @@ and "pushes" its results back onto the stack. %prep %setup -q %patch1 +%patch2 -p1 %build %configure \