import apr-1.7.0-11.el9

This commit is contained in:
CentOS Sources 2022-01-11 13:08:18 -05:00 committed by Stepan Oksanichenko
parent 5254850020
commit a1bd5bbfd2
2 changed files with 45 additions and 4 deletions

View File

@ -0,0 +1,37 @@
# ./pullrev.sh 1894167
http://svn.apache.org/viewvc?view=revision&revision=1894167
--- apr-1.7.0/build/apr_network.m4
+++ apr-1.7.0/build/apr_network.m4
@@ -906,8 +906,16 @@
dnl
AC_DEFUN([APR_CHECK_SCTP],
[
- AC_CACHE_CHECK([whether SCTP is supported], [apr_cv_sctp], [
- AC_TRY_RUN([
+AC_ARG_ENABLE([sctp],
+ APR_HELP_STRING([--disable-sctp], [disable SCTP protocol support]),
+ [apr_wants_sctp=$enableval],
+ [apr_wants_sctp=any])
+
+if test "$apr_wants_sctp" = no; then
+ apr_cv_sctp=no
+else
+ AC_CACHE_CHECK([whether SCTP is supported], [apr_cv_sctp], [
+ AC_TRY_RUN([
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -932,7 +940,12 @@
exit(2);
exit(0);
}], [apr_cv_sctp=yes], [apr_cv_sctp=no], [apr_cv_sctp=no])])
+fi
+if test "${apr_wants_sctp}X${apr_cv_sctp}" = yesXno; then
+ AC_MSG_ERROR([SCTP support requested but not available])
+fi
+
if test "$apr_cv_sctp" = "yes"; then
have_sctp=1
else

View File

@ -6,7 +6,7 @@
Summary: Apache Portable Runtime library Summary: Apache Portable Runtime library
Name: apr Name: apr
Version: 1.7.0 Version: 1.7.0
Release: 10.5%{?dist} Release: 11%{?dist}
# ASL 2.0: everything # ASL 2.0: everything
# ISC: network_io/apr-1.4.6/network_io/unix/inet_?to?.c # ISC: network_io/apr-1.4.6/network_io/unix/inet_?to?.c
# BSD with advertising: strings/apr_snprintf.c, strings/apr_fnmatch.c, # BSD with advertising: strings/apr_snprintf.c, strings/apr_fnmatch.c,
@ -21,9 +21,8 @@ Patch1: apr-1.2.2-libdir.patch
Patch2: apr-1.2.7-pkgconf.patch Patch2: apr-1.2.7-pkgconf.patch
Patch3: apr-1.7.0-deepbind.patch Patch3: apr-1.7.0-deepbind.patch
Patch4: apr-1.7.0-r1891269+.patch Patch4: apr-1.7.0-r1891269+.patch
Patch5: apr-1.7.0-r1894167.patch
BuildRequires: gcc, autoconf, libtool, libuuid-devel, python3 BuildRequires: gcc, autoconf, libtool, libuuid-devel, python3
# To enable SCTP support
BuildRequires: lksctp-tools-devel
BuildRequires: make BuildRequires: make
%description %description
@ -49,6 +48,7 @@ C data structures and routines.
%patch2 -p1 -b .pkgconf %patch2 -p1 -b .pkgconf
%patch3 -p1 -b .deepbind %patch3 -p1 -b .deepbind
%patch4 -p1 -b .r1891269+ %patch4 -p1 -b .r1891269+
%patch5 -p1 -b .r1894167
%build %build
# regenerate configure script etc. # regenerate configure script etc.
@ -62,7 +62,8 @@ export ac_cv_search_shm_open=no
--includedir=%{_includedir}/apr-%{aprver} \ --includedir=%{_includedir}/apr-%{aprver} \
--with-installbuilddir=%{_libdir}/apr-%{aprver}/build \ --with-installbuilddir=%{_libdir}/apr-%{aprver}/build \
--with-devrandom=/dev/urandom \ --with-devrandom=/dev/urandom \
--disable-static --disable-static \
--disable-sctp
%{make_build} %{make_build}
%install %install
@ -135,6 +136,9 @@ popd
%{_datadir}/aclocal/*.m4 %{_datadir}/aclocal/*.m4
%changelog %changelog
* Mon Dec 6 2021 Joe Orton <jorton@redhat.com> - 1.7.0-11
- always disable SCTP support at build time (#1997107)
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.0-10.5 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.0-10.5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688