fix ODBC type mismatch (r1908586)

use autosetup
This commit is contained in:
Joe Orton 2024-02-08 08:44:56 +00:00
parent 89cde38d05
commit 8ab71d7076
2 changed files with 24 additions and 7 deletions

View File

@ -0,0 +1,16 @@
https://svn.apache.org/viewvc?view=revision&revision=1908586
--- apr-util/dbd/apr_dbd_odbc.c
+++ apr-util/dbd/apr_dbd_odbc.c
@@ -582,8 +582,8 @@
(textmode ? atoi(args[*argp]) : *(short *)args[*argp]);
break;
case SQL_INTEGER:
- ptr = apr_palloc(pool, sizeof(int));
- len = sizeof(int);
+ ptr = apr_palloc(pool, sizeof(long));
+ len = sizeof(long);
*(long *)ptr =
(textmode ? atol(args[*argp]) : *(long *)args[*argp]);
break;

View File

@ -37,7 +37,7 @@
Summary: Apache Portable Runtime Utility library Summary: Apache Portable Runtime Utility library
Name: apr-util Name: apr-util
Version: 1.6.3 Version: 1.6.3
Release: 15%{?dist} Release: 16%{?dist}
# Apache-2.0: everything # Apache-2.0: everything
# RSA-MD: https://gitlab.com/fedora/legal/fedora-legal-docs/-/merge_requests/187 # RSA-MD: https://gitlab.com/fedora/legal/fedora-legal-docs/-/merge_requests/187
# include\apr_md5.h, passwd\apr_md5.c, crypto\apr_md4.c, include\apr_md4.h # include\apr_md5.h, passwd\apr_md5.c, crypto\apr_md4.c, include\apr_md4.h
@ -53,6 +53,7 @@ Patch2: apr-util-1.4.1-private.patch
Patch3: apr-util-1.6.3-allow-ipv6.patch Patch3: apr-util-1.6.3-allow-ipv6.patch
Patch4: apr-util-configure-c99.patch Patch4: apr-util-configure-c99.patch
Patch5: apr-util-1.6.3-lmdb-support.patch Patch5: apr-util-1.6.3-lmdb-support.patch
Patch6: apr-util-1.6.3-r1908586.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: autoconf, apr-devel >= 1.3.0 BuildRequires: autoconf, apr-devel >= 1.3.0
BuildRequires: %{dbdep}, expat-devel, libuuid-devel BuildRequires: %{dbdep}, expat-devel, libuuid-devel
@ -171,14 +172,10 @@ This package provides the NSS crypto support for the apr-util.
%endif %endif
%prep %prep
%setup -q %autosetup -p1
%patch -P1 -p1 -b .pkgconf
%patch -P2 -p1 -b .private
%patch -P3 -p1 -b .r1907541
%patch -P4 -p1
%patch -P5 -p1 -b .lmdb-support
: Configured for LDAP library: %{ldaplib} : Configured for LDAP library: %{ldaplib}
: Configured for DBM library: %{dbdep}
%build %build
autoheader && autoconf autoheader && autoconf
@ -283,6 +280,10 @@ export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}/apr-util-%{apuver}
%{_datadir}/aclocal/*.m4 %{_datadir}/aclocal/*.m4
%changelog %changelog
* Thu Feb 8 2024 Joe Orton <jorton@redhat.com> - 1.6.3-16
- fix ODBC type mismatch (r1908586)
- use autosetup
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-15 * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild