[packages/webalizer] Rel 2

arekm arekm at pld-linux.org
Sun Aug 9 13:52:28 CEST 2026


commit 172a2ba25f83e650bcadd00025126bf8e476a2ad
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 9 13:52:11 2026 +0200

    Rel 2

 27_fix_compilation_with_gcc-10.diff | 25 +++++++++++++++++++++++++
 webalizer-gcc15.patch               | 21 +++++++++++++++++++++
 webalizer.spec                      |  6 +++++-
 3 files changed, 51 insertions(+), 1 deletion(-)
---
diff --git a/webalizer.spec b/webalizer.spec
index a8fe459..f0034db 100644
--- a/webalizer.spec
+++ b/webalizer.spec
@@ -17,7 +17,7 @@ Summary(ru.UTF-8):	Программа анализа log-файла web/ftp/prox
 Summary(uk.UTF-8):	Програма аналізу log-файлу web/ftp/proxy-сервера
 Name:		webalizer
 Version:	%{ver}_%{patchlvl}
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Networking/Utilities
 Source0:	ftp://ftp.mrunix.net/pub/webalizer/%{name}-%{ver}-%{patchlvl}-src.tar.bz2
@@ -44,9 +44,11 @@ Patch113:	23_gettext_first_part.diff
 Patch114:	24_gettext_generated.diff
 Patch115:	25_add_convertlang2po.diff
 Patch116:	26_gettext_po_files.diff
+Patch117:	27_fix_compilation_with_gcc-10.diff
 #
 Patch0:		%{name}-nolibnsl.patch
 Patch1:		%{name}-conf.patch
+Patch2:		%{name}-gcc15.patch
 URL:		http://www.mrunix.net/webalizer/
 BuildRequires:	autoconf
 %{!?with_db3:BuildRequires:	db-devel}
@@ -139,9 +141,11 @@ Webalizer i dokumentacja do niego.
 %patch -P114 -p1
 %patch -P115 -p1
 %patch -P116 -p1
+%patch -P117 -p1
 
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 mv -f po/{no,nb}.po
 mv -f po/{sr,sr at latin}.po
diff --git a/27_fix_compilation_with_gcc-10.diff b/27_fix_compilation_with_gcc-10.diff
new file mode 100644
index 0000000..e42bdca
--- /dev/null
+++ b/27_fix_compilation_with_gcc-10.diff
@@ -0,0 +1,25 @@
+Description: Fix compilation with GCC 10.
+Author: Logan Rosen <logan at ubuntu.com>
+Bug-Debian: https://bugs.debian.org/957923
+Forwarded: no
+Reviewed-By: Francisco Vilmar Cardoso Ruviaro <francisco.ruviaro at riseup.net>
+Last-Update: 2021-02-12
+
+--- a/dns_resolv.c
++++ b/dns_resolv.c
+@@ -78,11 +78,11 @@
+ 
+ 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/webalizer-gcc15.patch b/webalizer-gcc15.patch
new file mode 100644
index 0000000..4f10e8f
--- /dev/null
+++ b/webalizer-gcc15.patch
@@ -0,0 +1,21 @@
+--- webalizer-2.23-08/webalizer.h.orig
++++ webalizer-2.23-08/webalizer.h
+@@ -311,6 +311,6 @@
+ extern u_int64_t jdate(int,int,int);
+ extern char      from_hex(char);
+ extern int       isipaddr(char *);
+-extern char      *intl_strip_context();
++extern char      *intl_strip_context(const char *);
+ 
+ #endif  /* _WEBALIZER_H */
+--- webalizer-2.23-08/output.c.orig
++++ webalizer-2.23-08/output.c
+@@ -2728,7 +2728,7 @@
+          {
+             if (verbose)
+ 	    fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),".htaccess");
+-            return NULL;
++            return 1;
+          }
+       }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/webalizer.git/commitdiff/172a2ba25f83e650bcadd00025126bf8e476a2ad



More information about the pld-cvs-commit mailing list