[packages/perl-AcePerl] fix build

atler atler at pld-linux.org
Thu Jul 31 02:04:54 CEST 2025


commit 774295f9d6c51aaf2cc99ffc5441da5fc8203023
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jul 31 02:03:50 2025 +0200

    fix build
    
    _ACECLIENT_ is header guard so it doesn't really make sense

 build.patch       | 14 ++++++++++++++
 perl-AcePerl.spec |  2 ++
 2 files changed, 16 insertions(+)
---
diff --git a/perl-AcePerl.spec b/perl-AcePerl.spec
index ca8461e..d28f2e4 100644
--- a/perl-AcePerl.spec
+++ b/perl-AcePerl.spec
@@ -11,6 +11,7 @@ Source0:	http://www.cpan.org/modules/by-module/Ace/AcePerl-%{version}.tar.gz
 # Source0-md5:	485e54655a15d8dc5c471fed07092414
 Patch0:		%{name}-defaults.patch
 Patch1:		%{name}-path.patch
+Patch2:		build.patch
 URL:		http://search.cpan.org/dist/AcePerl/
 BuildRequires:	cpp
 BuildRequires:	libtirpc-devel
@@ -61,6 +62,7 @@ ogólna.
 %setup -q -n AcePerl-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 # Makefile.PL does not read from non-terminal stdin
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..537fdc3
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,14 @@
+--- AcePerl-1.92/RPC/RPC.xs.orig	2000-06-13 19:17:19.000000000 +0200
++++ AcePerl-1.92/RPC/RPC.xs	2025-07-31 02:01:18.953122777 +0200
+@@ -153,11 +153,7 @@
+ 	break;
+     case '_':
+ 	if (strEQ(name, "_ACECLIENT_"))
+-#ifdef _ACECLIENT_
+-	    return _ACECLIENT_;
+-#else
+ 	    goto not_there;
+-#endif
+ 	break;
+     }
+     errno = EINVAL;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-AcePerl.git/commitdiff/774295f9d6c51aaf2cc99ffc5441da5fc8203023



More information about the pld-cvs-commit mailing list