commit:     dbb8a5c9f749cc11e61cfe558f164b165cbc30cb
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 26 16:55:36 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Oct 26 16:55:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbb8a5c9

mail-filter/libspf2-1.2.11: unbreak dn patch

Closes: https://bugs.gentoo.org/820347
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 .../files/libspf2-1.2.11-undefined-dn_.patch       | 30 ++++++++++++----------
 1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch 
b/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch
index cc2638cf766..279089b6cb9 100644
--- a/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch
+++ b/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch
@@ -3,6 +3,9 @@ From: Natanael Copa <nc...@alpinelinux.org>
 Date: Thu, 11 Sep 2014 08:09:34 +0000
 Subject: [PATCH] provide dn_skipname
 
+Modified for Gentoo to include dn_expand fix
+keep dn_expand available, for musl and glibc-2.34
+
 ---
  configure.ac                   |  2 +-
  src/libreplace/__dn_skipname.c | 87 ++++++++++++++++++++++++++++++++++++++++++
@@ -13,7 +16,15 @@ diff --git a/configure.ac b/configure.ac
 index 63e398c..739da3b 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -274,7 +274,7 @@ AC_CHECK_FUNCS([strcasecmp strncasecmp strspn strtoul])
+@@ -269,6 +269,7 @@
+       #endif
+       ]])
+ 
++AC_CHECK_FUNCS([dn_expand])
+ AC_CHECK_FUNCS([ftruncate gethostname memmove memset socket])
+ AC_CHECK_FUNCS([strchr strcspn strdup strerror])
+ AC_CHECK_FUNCS([strcasecmp strncasecmp strspn strtoul])
+@@ -274,7 +274,7 @@
  AC_CHECK_FUNCS([gethostbyname inet_ntoa select strrchr strstr strtol])
  
  AC_REPLACE_FUNCS([getopt_long_only strncasecmp])
@@ -118,21 +129,14 @@ index 0000000..88d48b5
 -- 
 2.1.0
 
-keep dn_expand available, for musl and glibc-2.34
-
-diff --git a/src/libreplace/arpa_nameser.h b/src/libreplace/arpa_nameser.h
-index e59ca3d..35e32b3 100644
 --- a/src/libreplace/arpa_nameser.h
 +++ b/src/libreplace/arpa_nameser.h
-@@ -59,11 +59,6 @@
+@@ -59,7 +59,7 @@
  #  define __P(x) x
  #endif
  
 -#if defined( HAVE_ARPA_NAMESER_H ) && defined( HAVE_NS_TYPE )
--#define dn_expand             __dn_expand
--int           dn_expand __P((const u_char *, const u_char *, const u_char *,
--                             char *, int));
--#endif
- #define dn_skipname           __dn_skipname
- int           dn_skipname __P((const u_char *, const u_char *));
- 
++#if !defined(HAVE_DN_EXPAND) && defined( HAVE_ARPA_NAMESER_H ) && defined( 
HAVE_NS_TYPE )
+ #define dn_expand             __dn_expand
+ int           dn_expand __P((const u_char *, const u_char *, const u_char *,
+                              char *, int));

Reply via email to