- added patches

Correct return value after 'q' [bsc#1129038]
  + bc-dc-correct-return-value.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/bc?expand=0&rev=16
This commit is contained in:
Petr Gajdos 2019-03-13 10:51:45 +00:00 committed by Git OBS Bridge
parent 1d47834560
commit 246370efec
3 changed files with 30 additions and 3 deletions

View File

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

View File

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

10
bc.spec
View File

@ -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,8 +59,10 @@ and "pushes" its results back onto the stack.
%prep
%setup -q
%patch1
%patch2 -p1
%build
export CFLAGS="%{optflags} -O0"
%configure \
--with-readline \
--without-libedit