[packages/perl-IPC-ChildSafe] add missing prototypes

atler atler at pld-linux.org
Thu Jul 31 23:50:25 CEST 2025


commit 21060dd020ed12ed84c1021caf03b433dfdebf87
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jul 31 23:50:08 2025 +0200

    add missing prototypes

 perl-IPC-ChildSafe.spec |  2 ++
 prototypes.patch        | 12 ++++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/perl-IPC-ChildSafe.spec b/perl-IPC-ChildSafe.spec
index cca1ad7..33a2aed 100644
--- a/perl-IPC-ChildSafe.spec
+++ b/perl-IPC-ChildSafe.spec
@@ -14,6 +14,7 @@ License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/IPC/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	68f9ae8be45c7399272a26bbe86d12ba
+Patch0:		prototypes.patch
 URL:		http://search.cpan.org/dist/IPC-ChildSafe/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -31,6 +32,7 @@ większość rozwiązań wieloprocesowych, takich jak IPC::Open3.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/prototypes.patch b/prototypes.patch
new file mode 100644
index 0000000..48bbf8d
--- /dev/null
+++ b/prototypes.patch
@@ -0,0 +1,12 @@
+--- IPC-ChildSafe-3.16/ChildSafe_wrap.c.orig	2001-11-15 19:21:34.000000000 +0100
++++ IPC-ChildSafe-3.16/ChildSafe_wrap.c	2025-07-31 23:48:13.671894750 +0200
+@@ -451,6 +451,9 @@
+ #endif
+ 
+ #include "childsafe.h"
++
++char *child_get_stderr_perl(CHILD *handle);
++char *child_get_stdout_perl(CHILD *handle);
+ #ifdef PERL_OBJECT
+ #define MAGIC_CLASS _wrap_ChildSafe_var::
+ class _wrap_ChildSafe_var : public CPerl {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-IPC-ChildSafe.git/commitdiff/21060dd020ed12ed84c1021caf03b433dfdebf87



More information about the pld-cvs-commit mailing list