From c57c8f5dffb23b41b4f395d585c58223d112aac52517fe5d4fec193db5ee41bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 15 Jul 2019 09:01:09 +0000 Subject: [PATCH] Accepting request 715362 from home:marxin:branches:devel:libraries:c_c++ - Add configure-return-void-fix.patch in order to fix wrong configure with -Werror=return-type. OBS-URL: https://build.opensuse.org/request/show/715362 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/freetds?expand=0&rev=51 --- configure-return-void-fix.patch | 12 ++++++++++++ freetds.changes | 6 ++++++ freetds.spec | 6 ++++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 configure-return-void-fix.patch diff --git a/configure-return-void-fix.patch b/configure-return-void-fix.patch new file mode 100644 index 0000000..56e9194 --- /dev/null +++ b/configure-return-void-fix.patch @@ -0,0 +1,12 @@ +diff --git a/configure b/configure +index eb38925..163f255 100755 +--- a/configure ++++ b/configure +@@ -19397,6 +19397,7 @@ SQLRETURN SQL_API SQLColAttribute (SQLHSTMT StatementHandle, + SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier, + SQLPOINTER CharacterAttribute, SQLSMALLINT BufferLength, + SQLSMALLINT *StringLength, SQLLEN * NumericAttribute) { ++ return 0; + } + int + main () diff --git a/freetds.changes b/freetds.changes index 4d4965e..3daa12a 100644 --- a/freetds.changes +++ b/freetds.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 15 04:44:34 UTC 2019 - Martin Liška + +- Add configure-return-void-fix.patch in order to fix wrong + configure with -Werror=return-type. + ------------------------------------------------------------------- Fri Mar 23 10:15:31 UTC 2018 - tchvatal@suse.com diff --git a/freetds.spec b/freetds.spec index abbaa03..d5f6d7e 100644 --- a/freetds.spec +++ b/freetds.spec @@ -1,7 +1,7 @@ # # spec file for package freetds # -# Copyright (c) 2018 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/ # @@ -24,6 +24,7 @@ License: LGPL-2.1-or-later AND GPL-2.0-or-later Group: Productivity/Databases/Clients Url: http://www.freetds.org/ Source: ftp://ftp.freetds.org/pub/freetds/stable/%{name}-%{version}.tar.gz +Patch0: configure-return-void-fix.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -126,6 +127,7 @@ and can be installed even if FreeTDS main package is not installed %prep %setup -q +%patch0 -p1 %build %configure \