update code
This commit is contained in:
parent
7b55a74f55
commit
ced63c0f74
@ -1,10 +1,9 @@
|
|||||||
Upstream patch for building with mariadb:
|
This is an upstream patch from: https://bz.apache.org/bugzilla/show_bug.cgi?id=61517
|
||||||
Taken from https://bz.apache.org/bugzilla/show_bug.cgi?id=61517
|
|
||||||
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1494093
|
|
||||||
|
|
||||||
|
diff -ur a/build/dbd.m4 b/build/dbd.m4
|
||||||
--- a/build/dbd.m4 2017-05-03 19:18:52.000000000 -0400
|
--- a/build/dbd.m4 2017-05-03 19:18:52.000000000 -0400
|
||||||
+++ a/build/dbd.m4 2017-09-13 16:58:07.369546391 -0400
|
+++ b/build/dbd.m4 2017-09-13 16:58:07.369546391 -0400
|
||||||
@@ -163,10 +163,15 @@
|
@@ -163,10 +163,15 @@
|
||||||
old_cppflags="$CPPFLAGS"
|
old_cppflags="$CPPFLAGS"
|
||||||
old_ldflags="$LDFLAGS"
|
old_ldflags="$LDFLAGS"
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1494093
|
|||||||
if test "x$MYSQL_CONFIG" != 'x'; then
|
if test "x$MYSQL_CONFIG" != 'x'; then
|
||||||
mysql_CPPFLAGS="`$MYSQL_CONFIG --include`"
|
mysql_CPPFLAGS="`$MYSQL_CONFIG --include`"
|
||||||
mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[[^ ]]\+//g'`"
|
mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[[^ ]]\+//g'`"
|
||||||
@@ -174,32 +179,40 @@
|
@@ -174,32 +179,40 @@
|
||||||
|
|
||||||
APR_ADDTO(CPPFLAGS, [$mysql_CPPFLAGS])
|
APR_ADDTO(CPPFLAGS, [$mysql_CPPFLAGS])
|
||||||
APR_ADDTO(LIBS, [$mysql_LIBS])
|
APR_ADDTO(LIBS, [$mysql_LIBS])
|
||||||
@ -77,7 +76,7 @@ BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1494093
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
APR_ADDTO(CPPFLAGS, [$mysql_CPPFLAGS])
|
APR_ADDTO(CPPFLAGS, [$mysql_CPPFLAGS])
|
||||||
@@ -207,18 +220,15 @@
|
@@ -207,18 +220,15 @@
|
||||||
APR_ADDTO(LIBS, [$mysql_LIBS])
|
APR_ADDTO(LIBS, [$mysql_LIBS])
|
||||||
|
|
||||||
AC_MSG_NOTICE(checking for mysql in $withval)
|
AC_MSG_NOTICE(checking for mysql in $withval)
|
||||||
@ -104,7 +103,7 @@ BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1494093
|
|||||||
APR_ADDTO(APRUTIL_PRIV_INCLUDES, [$mysql_CPPFLAGS])
|
APR_ADDTO(APRUTIL_PRIV_INCLUDES, [$mysql_CPPFLAGS])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -229,7 +239,7 @@
|
@@ -229,7 +239,7 @@
|
||||||
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
|
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
|
||||||
dnl we know the library is there.
|
dnl we know the library is there.
|
||||||
if test "$apu_have_mysql" = "1"; then
|
if test "$apu_have_mysql" = "1"; then
|
||||||
@ -113,9 +112,10 @@ BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1494093
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(LDADD_dbd_mysql)
|
AC_SUBST(LDADD_dbd_mysql)
|
||||||
|
|
||||||
|
diff -ur a/dbd/apr_dbd_mysql.c b/dbd/apr_dbd_mysql.c
|
||||||
--- a/dbd/apr_dbd_mysql.c 2017-05-03 19:18:52.000000000 -0400
|
--- a/dbd/apr_dbd_mysql.c 2017-05-03 19:18:52.000000000 -0400
|
||||||
+++ a/dbd/apr_dbd_mysql.c 2017-09-13 19:15:20.894368809 -0400
|
+++ b/dbd/apr_dbd_mysql.c 2017-09-13 19:15:20.894368809 -0400
|
||||||
@@ -1262,7 +1262,9 @@
|
@@ -1262,7 +1262,9 @@
|
||||||
|
|
||||||
static void dbd_mysql_init(apr_pool_t *pool)
|
static void dbd_mysql_init(apr_pool_t *pool)
|
||||||
{
|
{
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: apr-util
|
Name: apr-util
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: apr-util provides a number of helpful abstractions on top of APR.
|
Summary: apr-util provides a number of helpful abstractions on top of APR.
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://apr.apache.org
|
URL: http://apr.apache.org
|
||||||
@ -10,24 +10,27 @@ Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
|
|||||||
|
|
||||||
Patch0: apr-util-1.2.7-pkgconf.patch
|
Patch0: apr-util-1.2.7-pkgconf.patch
|
||||||
Patch1: apr-util-1.4.1-private.patch
|
Patch1: apr-util-1.4.1-private.patch
|
||||||
Patch2: apr-util-mariadb-upstream.patch
|
|
||||||
|
|
||||||
Patch6000: Merge-r1822315-from-trunk.patch
|
Patch6000: Updated-patch-to-compile-apr-util-against-mariadb-10.patch
|
||||||
Patch6001: Fix-error-handling-in-gdbm.patch
|
Patch6001: Merge-r1822315-from-trunk.patch
|
||||||
Patch6002: Merge-r1834022-r1834023-r1834024-from-trunk.patch
|
Patch6002: Fix-error-handling-in-gdbm.patch
|
||||||
Patch6003: Remove-dereference-of-null-pointer.patch
|
Patch6003: Merge-r1834022-r1834023-r1834024-from-trunk.patch
|
||||||
|
Patch6004: Remove-dereference-of-null-pointer.patch
|
||||||
|
|
||||||
BuildRequires: gcc autoconf apr-devel >= 1.6.0 libdb-devel expat-devel libuuid-devel
|
BuildRequires: gcc autoconf apr-devel >= 1.6.0 libdb-devel expat-devel libuuid-devel
|
||||||
BuildRequires: mariadb-connector-c-devel sqlite-devel >= 3.1.0 openldap-devel openssl-devel
|
BuildRequires: mariadb-connector-c-devel sqlite-devel >= 3.1.0 openldap-devel openssl-devel
|
||||||
|
|
||||||
Requires: apr-util%{?_isa} = %{version}-%{release}
|
Requires: apr-util%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
Recommends: apr-util-openssl%{_isa} = %{version}-%{release}
|
Recommends: apr-util-openssl%{_isa} = %{version}-%{release}
|
||||||
Recommends: apr-util-bdb%{_isa} = %{version}-%{release}
|
Recommends: apr-util-bdb%{_isa} = %{version}-%{release}
|
||||||
Provides: apr-util-bdb = %{version}-%{release} apr-util-mysql = %{version}-%{release}
|
|
||||||
Provides: apr-util-sqlite = %{version}-%{release} apr-util-ldap = %{version}-%{release}
|
|
||||||
Provides: apr-util-openssl = %{version}-%{release}
|
|
||||||
Obsoletes: apr-util-bdb < %{version}-%{release} apr-util-mysql < %{version}-%{release}
|
Obsoletes: apr-util-bdb < %{version}-%{release} apr-util-mysql < %{version}-%{release}
|
||||||
Obsoletes: apr-util-sqlite < %{version}-%{release} apr-util-ldap < %{version}-%{release}
|
Obsoletes: apr-util-sqlite < %{version}-%{release} apr-util-ldap < %{version}-%{release}
|
||||||
Obsoletes: apr-util-openssl < %{version}-%{release}
|
Obsoletes: apr-util-openssl < %{version}-%{release}
|
||||||
|
Provides: apr-util-bdb = %{version}-%{release} apr-util-mysql = %{version}-%{release}
|
||||||
|
Provides: apr-util-sqlite = %{version}-%{release} apr-util-ldap = %{version}-%{release}
|
||||||
|
Provides: apr-util-openssl = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The mission of the Apache Portable Runtime (APR) project is to create and maintain software
|
The mission of the Apache Portable Runtime (APR) project is to create and maintain software
|
||||||
@ -70,7 +73,7 @@ export ac_cv_ldap_set_rebind_proc_style=three
|
|||||||
%configure --with-apr=%{_prefix} --includedir=%{_includedir}/apr-%{apuver} \
|
%configure --with-apr=%{_prefix} --includedir=%{_includedir}/apr-%{apuver} \
|
||||||
--with-ldap=ldap_r --without-gdbm --with-sqlite3 --with-pgsql --with-mysql --with-odbc \
|
--with-ldap=ldap_r --without-gdbm --with-sqlite3 --with-pgsql --with-mysql --with-odbc \
|
||||||
--with-dbm=db5 --with-berkeley-db --without-sqlite2 --with-crypto --with-openssl
|
--with-dbm=db5 --with-berkeley-db --without-sqlite2 --with-crypto --with-openssl
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -87,9 +90,16 @@ rm -f %{buildroot}%{_libdir}/%{name}-%{apuver}/*.*a
|
|||||||
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
|
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
|
||||||
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}/%{name}-%{apuver}
|
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}/%{name}-%{apuver}
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%pre
|
||||||
|
|
||||||
|
%preun
|
||||||
|
|
||||||
|
%post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGES NOTICE
|
%doc CHANGES NOTICE
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -116,8 +126,11 @@ make test
|
|||||||
%{_libdir}/%{name}-%{apuver}/apr_dbd_odbc*
|
%{_libdir}/%{name}-%{apuver}/apr_dbd_odbc*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.1-10
|
||||||
|
- optimize spec file.
|
||||||
|
|
||||||
* Sat Sep 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.1-9
|
* Sat Sep 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.1-9
|
||||||
- Package rebuild.
|
- Package rebuild.
|
||||||
|
|
||||||
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.1-8
|
* Thu Sep 05 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.1-8
|
||||||
- Package init.
|
- Package init.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user