aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-08-20 08:29:50 +0300
committerSergey Poznyakoff <gray@gnu.org>2017-08-20 08:29:50 +0300
commit9c20dbb9f4494b91eef2d40483b5a88b91b35f7e (patch)
tree5f0b18e506f23c2d779331e5f9f2ffb3aa48679d
parent78a1be8e1e947ada60a1e3b458dbde0d7a400a98 (diff)
downloadposixruncapture-9c20dbb9f4494b91eef2d40483b5a88b91b35f7e.tar.gz
posixruncapture-9c20dbb9f4494b91eef2d40483b5a88b91b35f7e.tar.bz2
Update runcap
-rw-r--r--MANIFEST4
-rw-r--r--Makefile.PL23
-rw-r--r--lib/POSIX/Run/Capture.pm4
m---------runcap0
4 files changed, 20 insertions, 11 deletions
diff --git a/MANIFEST b/MANIFEST
index 057e035..af4e321 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -18,7 +18,9 @@ t/06lines.t
18t/07two.t 18t/07two.t
19t/08input.t 19t/08input.t
20t/TestCapture.pm 20t/TestCapture.pm
21runcap/Makefile 21runcap/Makefile.am
22runcap/configure.ac
23runcap/configure
22runcap/runcap.h 24runcap/runcap.h
23runcap/runcap.c 25runcap/runcap.c
24runcap/getc.c 26runcap/getc.c
diff --git a/Makefile.PL b/Makefile.PL
index 29aa661..4aee252 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -15,8 +15,8 @@ WriteMakefile(
15 LIBS => [''], # e.g., '-lm' 15 LIBS => [''], # e.g., '-lm'
16 DEFINE => '', 16 DEFINE => '',
17 INC => '-I.', # e.g., '-I. -I/usr/include/other' 17 INC => '-I.', # e.g., '-I. -I/usr/include/other'
18 OBJECT => '$(O_FILES) runcap/libruncap.a', 18 OBJECT => '$(O_FILES)',
19 DIR => [ 'runcap' ], 19 MYEXTLIB => 'runcap/libruncap.a',
20 META_MERGE => { 20 META_MERGE => {
21 'meta-spec' => { version => 2 }, 21 'meta-spec' => { version => 2 },
22 resources => { 22 resources => {
@@ -33,12 +33,6 @@ WriteMakefile(
33 33
34package MY; 34package MY;
35 35
36sub pasthru {
37 my $val = shift->SUPER::pasthru(@_);
38 chomp($val);
39 return $val . "\\\n O='\$(CCFLAGS)'";
40}
41
42sub test { 36sub test {
43 my $val = shift->SUPER::test(@_); 37 my $val = shift->SUPER::test(@_);
44 open(my $fd, '<', \$val); 38 open(my $fd, '<', \$val);
@@ -71,3 +65,16 @@ sub test {
71 65
72 return join("\n", @ret); 66 return join("\n", @ret);
73} 67}
68
69sub postamble {
70'
71$(MYEXTLIB): runcap/configure
72 cd runcap && \
73 ./configure CFLAGS="$(CCFLAGS) $(CCCDLFLAGS)" && \
74 $(MAKE)
75
76runcap/configure: runcap/configure.ac
77 RUNCAP_BUILD=static autoreconf -f -i -s -I. runcap
78'
79}
80
diff --git a/lib/POSIX/Run/Capture.pm b/lib/POSIX/Run/Capture.pm
index 5dedad0..aa9825a 100644
--- a/lib/POSIX/Run/Capture.pm
+++ b/lib/POSIX/Run/Capture.pm
@@ -86,8 +86,8 @@ POSIX::Run::Capture - run command and capture its output
86 $obj->set_timeout($n); 86 $obj->set_timeout($n);
87 $obj->set_input($fh_or_string); 87 $obj->set_input($fh_or_string);
88 88
89 $aref = head3 $obj->argv; 89 $aref = $obj->argv;
90 $str = =head3 $obj->program 90 $str = $obj->program
91 $num = $obj->timeout; 91 $num = $obj->timeout;
92 92
93=head1 DESCRIPTION 93=head1 DESCRIPTION
diff --git a/runcap b/runcap
Subproject 3f686a2e5768174553b39697576171f5862433e Subproject 80134405a63517bda8964f7993d096dc1df247c

Return to:

Send suggestions and report system problems to the System administrator.