[packages/perl-Authen-TacacsPlus] add type fixes

atler atler at pld-linux.org
Sat Aug 15 19:16:11 CEST 2026


commit 2eb67d758ddd51ceaa68841548766999c052c5fc
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 15 19:15:49 2026 +0200

    add type fixes

 perl-Authen-TacacsPlus.spec |  2 ++
 types.patch                 | 52 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
---
diff --git a/perl-Authen-TacacsPlus.spec b/perl-Authen-TacacsPlus.spec
index 8be1499..b1de392 100644
--- a/perl-Authen-TacacsPlus.spec
+++ b/perl-Authen-TacacsPlus.spec
@@ -14,6 +14,7 @@ License:	custom, distributable
 Group:		Development/Languages/Perl
 Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Authen-TacacsPlus/Authen-TacacsPlus-%{version}.tar.gz
 # Source0-md5:	509f2d176393d80cc2657a9af1424982
+Patch0:		types.patch
 URL:		http://search.cpan.org/dist/Authen-TacacsPlus/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -29,6 +30,7 @@ serwera tacacs+.
 
 %prep
 %setup -q -n Authen-TacacsPlus-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..cc526a6
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,52 @@
+--- Authen-TacacsPlus-0.22/tacpluslib/tac_plus.h.orig	2007-09-22 02:02:16.000000000 +0200
++++ Authen-TacacsPlus-0.22/tacpluslib/tac_plus.h	2026-08-15 19:08:40.858097972 +0200
+@@ -621,18 +621,18 @@
+ /* report.c */
+ extern void report_string();
+ extern void report_hex();
+-extern void report();
++extern void report(int, const char*, ...);
+ 
+ /* packet.c */
+ extern u_char *get_authen_continue();
+ extern int send_authen_reply();
+ 
+ /* utils.c */
+-extern char *tac_malloc();
+-extern char *tac_strdup();
+-extern char *tac_make_string();
+-extern char *tac_find_substring();
+-extern char *tac_realloc();
++extern char *tac_malloc(int);
++extern char *tac_strdup(char*);
++extern char *tac_make_string(u_char*, int);
++extern char *tac_find_substring(char*, char*);
++extern char *tac_realloc(char*, int);
+ 
+ /* dump.c */
+ extern char *summarise_outgoing_packet_type();
+--- Authen-TacacsPlus-0.22/tacpluslib/md5.h.orig	2007-09-22 02:00:24.000000000 +0200
++++ Authen-TacacsPlus-0.22/tacpluslib/md5.h	2026-08-15 19:09:14.854041861 +0200
+@@ -44,9 +44,9 @@
+ typedef unsigned char *POINTER;
+ 
+ /* enable prototyping */
+-/* #define PROTO_LIST(x) x */
++#define PROTO_LIST(x) x
+ /* disable prototyping */
+-#define PROTO_LIST(x) ()
++/* #define PROTO_LIST(x) () */
+ 
+ #endif /* defined(CISCO_MD5_MODS) */
+ 
+--- Authen-TacacsPlus-0.22/tacpluslib/tac_client.c.orig	2009-07-10 00:34:49.000000000 +0200
++++ Authen-TacacsPlus-0.22/tacpluslib/tac_client.c	2026-08-15 19:15:11.233902392 +0200
+@@ -329,7 +329,7 @@
+ }
+ 
+ 
+-void report()
++void report(int level, const char *msg, ...)
+ {
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Authen-TacacsPlus.git/commitdiff/2eb67d758ddd51ceaa68841548766999c052c5fc



More information about the pld-cvs-commit mailing list