Hello community,
here is the log from the commit of package sendmail for openSUSE:Factory checked in at 2019-09-30 15:59:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sendmail (Old)
and /work/SRC/openSUSE:Factory/.sendmail.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sendmail"
Mon Sep 30 15:59:31 2019 rev:90 rq:733805 version:8.15.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/sendmail/sendmail.changes 2019-09-09 12:39:37.797430644 +0200
+++ /work/SRC/openSUSE:Factory/.sendmail.new.2352/sendmail.changes 2019-09-30 15:59:34.257189159 +0200
@@ -1,0 +2,6 @@
+Sat Sep 28 07:32:14 UTC 2019 - Dr. Werner Fink
+
+- Add patch sendmail-8.15.2-glibc-2.30.patch
+ * The former deprecated macro RES_USE_INET6 is gone with glibc 2.30
+
+-------------------------------------------------------------------
New:
----
sendmail-8.15.2-glibc-2.30.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ sendmail.spec ++++++
--- /var/tmp/diff_new_pack.zQj6vr/_old 2019-09-30 15:59:36.009184497 +0200
+++ /var/tmp/diff_new_pack.zQj6vr/_new 2019-09-30 15:59:36.013184486 +0200
@@ -114,6 +114,8 @@
Patch7: sendmail-8.15.2-openssl-1.1.0-ecdhe-fix.patch
# PATCH-FIX-OPENSUSE: make build result reproducible
Patch8: sendmail-8.15.2-reproducible.patch
+# PATCH-FIX-OPENSUSE: The former deprecated macro RES_USE_INET6 is gone with glibc 2.30
+Patch9: sendmail-8.15.2-glibc-2.30.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir %{_sysconfdir}
%global _mailcnfdir %{_sysconfdir}/mail
@@ -214,6 +216,7 @@
fi
%patch0 -p0 -b .p0
%patch8 -p1 -b .reproducible
+%patch9 -p0 -b .use_inet6
tar --strip-components=1 -xf %{S:1}
set -f
cat <<-EOF > file-list
++++++ sendmail-8.15.2-glibc-2.30.patch ++++++
The former deprecated macro RES_USE_INET6 is gone with glibc 2.30
---
libmilter/sm_gethost.c | 6 ++++--
sendmail/conf.c | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
--- libmilter/sm_gethost.c
+++ libmilter/sm_gethost.c 2019-09-28 07:27:46.512228011 +0000
@@ -51,18 +51,20 @@ sm_getipnodebyname(name, family, flags,
{
bool resv6 = true;
struct hostent *h;
-
+#ifdef RES_USE_INET6
if (family == AF_INET6)
{
/* From RFC2133, section 6.1 */
resv6 = bitset(RES_USE_INET6, _res.options);
_res.options |= RES_USE_INET6;
}
+#endif
SM_SET_H_ERRNO(0);
h = gethostbyname(name);
+#ifdef RES_USE_INET6
if (family == AF_INET6 && !resv6)
_res.options &= ~RES_USE_INET6;
-
+#endif
/* the function is supposed to return only the requested family */
if (h != NULL && h->h_addrtype != family)
{
--- sendmail/conf.c
+++ sendmail/conf.c 2019-09-28 07:28:39.103245002 +0000
@@ -4242,18 +4242,20 @@ sm_getipnodebyname(name, family, flags,
# else /* HAS_GETHOSTBYNAME2 */
bool resv6 = true;
-
+#ifdef RES_USE_INET6
if (family == AF_INET6)
{
/* From RFC2133, section 6.1 */
resv6 = bitset(RES_USE_INET6, _res.options);
_res.options |= RES_USE_INET6;
}
+#endif
SM_SET_H_ERRNO(0);
h = gethostbyname(name);
+#ifdef RES_USE_INET6
if (!resv6)
_res.options &= ~RES_USE_INET6;
-
+#endif
/* the function is supposed to return only the requested family */
if (h != NULL && h->h_addrtype != family)
{