commit:     7dd124d96f48b7e8c5b3426b528b08390647c459
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  3 21:13:04 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Mar  3 21:13:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dd124d9

app-admin/webalizer: tweak for gcc-10

Fixed-by: Alexandros C. Couloumbis
Closes: https://bugs.gentoo.org/737694
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 .../webalizer/files/webalizer-2.23.08-gcc-10.patch    | 19 +++++++++++++++++++
 app-admin/webalizer/webalizer-2.23.08.ebuild          |  3 ++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch 
b/app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch
new file mode 100644
index 00000000000..4110a0b4bb8
--- /dev/null
+++ b/app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/737694
+--- a/dns_resolv.c     2013-02-26 07:37:27.000000000 +0200
++++ b/dns_resolv.c     2020-08-17 20:33:32.000000000 +0300
+@@ -78,11 +78,11 @@ DBC      *geo_dbc  = NULL;
+ 
+ struct   dns_child child[MAXCHILD];            /* DNS child pipe data      */
+ 
+-DNODEPTR host_table[MAXHASH];                  /* hostname/ip hash table   */
++extern DNODEPTR host_table[MAXHASH];                  /* hostname/ip hash 
table   */
+ 
+-char     buffer[BUFSIZE];                      /* log file record buffer   */
+-char     tmp_buf[BUFSIZE];                     /* used to temp save above  */
+-struct   utsname system_info;                  /* system info structure    */
++extern char     buffer[BUFSIZE];                      /* log file record 
buffer   */
++extern char     tmp_buf[BUFSIZE];                     /* used to temp save 
above  */
++extern struct   utsname system_info;                  /* system info 
structure    */
+ 
+ int      raiseSigChild = 1;
+ 

diff --git a/app-admin/webalizer/webalizer-2.23.08.ebuild 
b/app-admin/webalizer/webalizer-2.23.08.ebuild
index d7e8d1edf7a..488850e73bc 100644
--- a/app-admin/webalizer/webalizer-2.23.08.ebuild
+++ b/app-admin/webalizer/webalizer-2.23.08.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # uses webapp.eclass to create directories with right permissions
@@ -53,6 +53,7 @@ pkg_setup() {
 }
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.23.08-gcc-10.patch
        if use xtended; then
                epatch "${WORKDIR}"/${PN}-${MY_PV}-${XTENDED_VER}-patch
        fi

Reply via email to