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 \