Tuesday, October 30, 2018

[UPDATE] devel/p5-POE 1.294 -> 1.367 (p5-POE* update 1/14)

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/p5-POE/Makefile,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 Makefile
--- Makefile 2 Dec 2017 11:34:17 -0000 1.27
+++ Makefile 28 Oct 2018 23:13:58 -0000
@@ -4,10 +4,9 @@ COMMENT= portable multitasking and netwo

MODULES= cpan
PKG_ARCH= *
-DISTNAME= POE-1.294
-REVISION= 1
+DISTNAME= POE-1.367
CATEGORIES= devel
-FIX_EXTRACT_PERMISSIONS = Yes
+FIX_EXTRACT_PERMISSIONS= Yes

HOMEPAGE= http://poe.perl.org/

@@ -17,16 +16,22 @@ PERMIT_PACKAGE_CDROM= Yes
CONFIGURE_ARGS= --default

RUN_DEPENDS= devel/p5-Curses \
+ devel/p5-IO-Pipely \
devel/p5-IO-Tty \
- devel/p5-POE-Test-Loops>=1.036 \
+ devel/p5-POE-Test-Loops>=1.360 \
net/p5-Socket6 \
www/p5-libwww
+TEST_DEPENDS= devel/p5-Term-Size \
+ devel/p5-YAML \
+ net/p5-Socket-GetAddrInfo

MAKE_ENV= TEST_POD=Yes
+TEST_ENV= RELEASE_TESTING=1

MODCPAN_EXAMPLES= Yes

post-build:
# XXX prevent gen-tests from running again during fake
touch ${WRKDIST}/lib/POE.pm
+
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/p5-POE/distinfo,v
retrieving revision 1.16
diff -u -p -u -p -r1.16 distinfo
--- distinfo 18 Jan 2015 03:13:31 -0000 1.16
+++ distinfo 28 Oct 2018 23:13:58 -0000
@@ -1,2 +1,2 @@
-SHA256 (POE-1.294.tar.gz) = TX5ovKatdawaCSLlavyPOBO3cAZNZK4CI7q5XZdP3/E=
-SIZE (POE-1.294.tar.gz) = 362345
+SHA256 (POE-1.367.tar.gz) = t3JyC6mb880D262FNsanZ0rH/PMvL1Oi/48Kpbo/Oi0=
+SIZE (POE-1.367.tar.gz) = 381473
Index: patches/patch-t_90_regression_rt56417-wheel-run_t
===================================================================
RCS file: patches/patch-t_90_regression_rt56417-wheel-run_t
diff -N patches/patch-t_90_regression_rt56417-wheel-run_t
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-t_90_regression_rt56417-wheel-run_t 28 Oct 2018 23:13:58 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+Fix child process leaking, solution given by upstream
+see https://code.activestate.com/lists/perl-poe/5008/
+Index: t/90_regression/rt56417-wheel-run.t
+--- t/90_regression/rt56417-wheel-run.t.orig
++++ t/90_regression/rt56417-wheel-run.t
+@@ -93,6 +93,8 @@ sub _wheel_child {
+ }
+
+ sub _stop {
++ use POSIX ":sys_wait_h";
++ 1 while waitpid(WNOHANG, -1) > 0;
+ pass("we sanely died (" . $_[HEAP]->{type} . ")");
+ return;
+ }
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/devel/p5-POE/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 DESCR
--- pkg/DESCR 24 May 2005 01:03:13 -0000 1.1.1.1
+++ pkg/DESCR 28 Oct 2018 23:13:58 -0000
@@ -1,8 +1,8 @@
POE is a framework for cooperative, event driven multitasking in Perl.
Other languages have similar frameworks. Python has Twisted. TCL has
-"the event loop".
+"the event loop".

-POE originally was developed as the core of a persistent object server and
-runtime environment. It has evolved into a general purpose multitasking and
-networking framework, encompassing and providing a consistent interface to
+POE originally was developed as the core of a persistent object server and
+runtime environment. It has evolved into a general purpose multitasking and
+networking framework, encompassing and providing a consistent interface to
other event loops such as Event and the Tk and Gtk toolkits.
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/p5-POE/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 PLIST
--- pkg/PLIST 24 Nov 2010 15:28:09 -0000 1.6
+++ pkg/PLIST 28 Oct 2018 23:13:58 -0000
@@ -37,15 +37,16 @@ ${P5SITE}/POE/Queue/Array.pm
${P5SITE}/POE/Resource/
${P5SITE}/POE/Resource.pm
${P5SITE}/POE/Resource/Aliases.pm
+${P5SITE}/POE/Resource/Clock.pm
${P5SITE}/POE/Resource/Events.pm
${P5SITE}/POE/Resource/Extrefs.pm
${P5SITE}/POE/Resource/FileHandles.pm
${P5SITE}/POE/Resource/SIDs.pm
${P5SITE}/POE/Resource/Sessions.pm
${P5SITE}/POE/Resource/Signals.pm
-${P5SITE}/POE/Resource/Statistics.pm
${P5SITE}/POE/Resources.pm
${P5SITE}/POE/Session.pm
+${P5SITE}/POE/Test/Sequence.pm
${P5SITE}/POE/Wheel/
${P5SITE}/POE/Wheel.pm
${P5SITE}/POE/Wheel/Curses.pm
@@ -84,15 +85,16 @@ ${P5SITE}/POE/Wheel/SocketFactory.pm
@man man/man3p/POE::Queue::Array.3p
@man man/man3p/POE::Resource.3p
@man man/man3p/POE::Resource::Aliases.3p
+@man man/man3p/POE::Resource::Clock.3p
@man man/man3p/POE::Resource::Events.3p
@man man/man3p/POE::Resource::Extrefs.3p
@man man/man3p/POE::Resource::FileHandles.3p
@man man/man3p/POE::Resource::SIDs.3p
@man man/man3p/POE::Resource::Sessions.3p
@man man/man3p/POE::Resource::Signals.3p
-@man man/man3p/POE::Resource::Statistics.3p
@man man/man3p/POE::Resources.3p
@man man/man3p/POE::Session.3p
+@man man/man3p/POE::Test::Sequence.3p
@man man/man3p/POE::Wheel.3p
@man man/man3p/POE::Wheel::Curses.3p
@man man/man3p/POE::Wheel::FollowTail.3p
Hi ports,

-----
Intro:

This is the second round of the big POE update. I'll submit them in
dependency order.

The whole thing builds and installs with dpb on amd64 and i386, and the
few consumers i've found run fine.
-----

I'm proposing here an update for p5-POE itself.

The (truncated) changelog can be found here [1], as our version is 8
years old and too many things happened, i'm skipping this time.

What's new in the port:

- new run and test dependencies, for the latter it's due to the fact
that i enabled more tests
- "fix" child process leaking for t/rt56417-wheel-run.t, recommended by
upstream [2]
- removal of trailing spaces in DESCR, also HOMEPAGE isn't reachable
via HTTPS.

Testing:

- 'make test' runs fine
- no issue found in all updated PoCo tests

Comments/feedback are welcome!

Charlène.

[1] https://metacpan.org/changes/distribution/POE
[2] https://code.activestate.com/lists/perl-poe/5008/

No comments:

Post a Comment