[arch-commits] Commit in perl-anyevent/repos/extra-any (3 files)

Felix Yan felixonmars at archlinux.org
Wed May 24 06:35:52 UTC 2017


    Date: Wednesday, May 24, 2017 @ 06:35:51
  Author: felixonmars
Revision: 296524

archrelease: copy trunk to extra-any

Added:
  perl-anyevent/repos/extra-any/PKGBUILD
    (from rev 296523, perl-anyevent/trunk/PKGBUILD)
  perl-anyevent/repos/extra-any/issue53923.patch
    (from rev 296523, perl-anyevent/trunk/issue53923.patch)
Deleted:
  perl-anyevent/repos/extra-any/PKGBUILD

------------------+
 PKGBUILD         |   83 +++++++++++++++++++++++++++++------------------------
 issue53923.patch |   26 ++++++++++++++++
 2 files changed, 72 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-24 06:35:35 UTC (rev 296523)
+++ PKGBUILD	2017-05-24 06:35:51 UTC (rev 296524)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=perl-anyevent
-pkgver=7.13
-pkgrel=1
-epoch=4
-pkgdesc='The DBI of event loop programming'
-arch=('any')
-url="https://metacpan.org/release/AnyEvent"
-license=('PerlArtistic' 'GPL')
-depends=('perl')
-optdepends=('perl-async-interrupt: for fast signal handling'
-            'perl-ev: for the recommended EV event loop backend'
-            'perl-guard: to speed up guards'
-            'perl-json: send or receive JSON with AnyEvent::Handle'
-            'perl-json-xs: send or receive JSON with AnyEvent::Handle'
-            'perl-net-ssleay: TLS/SSL connections with AnyEvent::Handle')
-options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz")
-md5sums=('70eea152cf4686f8f351aa8bc96157f9')
-
-build() {
-  cd AnyEvent-$pkgver
-  perl Makefile.PL INSTALLDIRS=vendor
-  make
-}
-
-check() {
-  cd AnyEvent-$pkgver
-  make test
-}
-
-package() {
-  cd AnyEvent-$pkgver
-  make DESTDIR="$pkgdir" install
-}

Copied: perl-anyevent/repos/extra-any/PKGBUILD (from rev 296523, perl-anyevent/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-05-24 06:35:51 UTC (rev 296524)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-anyevent
+pkgver=7.13
+pkgrel=2
+epoch=4
+pkgdesc='The DBI of event loop programming'
+arch=('any')
+url="https://metacpan.org/release/AnyEvent"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+checkdepends=('glib-perl' 'perl-async-interrupt' 'perl-ev' 'perl-net-ssleay')
+optdepends=('perl-async-interrupt: for fast signal handling'
+            'perl-ev: for the recommended EV event loop backend'
+            'perl-guard: to speed up guards'
+            'perl-json: send or receive JSON with AnyEvent::Handle'
+            'perl-json-xs: send or receive JSON with AnyEvent::Handle'
+            'perl-net-ssleay: TLS/SSL connections with AnyEvent::Handle')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz"
+        issue53923.patch)
+md5sums=('70eea152cf4686f8f351aa8bc96157f9'
+         'e6e9e44caa1610a1d527c76258270d7a')
+
+prepare() {
+  cd AnyEvent-$pkgver
+  # https://rt.cpan.org/Public/Bug/Display.html?id=118584
+  patch -p1 -i ../issue53923.patch
+}
+
+build() {
+  cd AnyEvent-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd AnyEvent-$pkgver
+  PERL_ANYEVENT_LOOP_TESTS=true make test
+}
+
+package() {
+  cd AnyEvent-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: perl-anyevent/repos/extra-any/issue53923.patch (from rev 296523, perl-anyevent/trunk/issue53923.patch)
===================================================================
--- issue53923.patch	                        (rev 0)
+++ issue53923.patch	2017-05-24 06:35:51 UTC (rev 296524)
@@ -0,0 +1,26 @@
+--- AnyEvent/lib/AnyEvent/Handle.pm	2016/10/30 23:03:36	1.248
++++ AnyEvent/lib/AnyEvent/Handle.pm	2016/11/26 03:34:50	1.249
+@@ -2195,19 +2195,19 @@
+    # basically, this is deep magic (because SSL_read should have the same issues)
+    # but the openssl maintainers basically said: "trust us, it just works".
+    # (unfortunately, we have to hardcode constants because the abysmally misdesigned
+-   # and mismaintained ssleay-module doesn't even offer them).
++   # and mismaintained ssleay-module didn't offer them for a decade or so).
+    # http://www.mail-archive.com/openssl-dev@openssl.org/msg22420.html
+    #
+    # in short: this is a mess.
+-   # 
++   #
+    # note that we do not try to keep the length constant between writes as we are required to do.
+    # we assume that most (but not all) of this insanity only applies to non-blocking cases,
+    # and we drive openssl fully in blocking mode here. Or maybe we don't - openssl seems to
+    # have identity issues in that area.
+-#   Net::SSLeay::CTX_set_mode ($ssl,
++#   Net::SSLeay::set_mode ($ssl,
+ #      (eval { local $SIG{__DIE__}; Net::SSLeay::MODE_ENABLE_PARTIAL_WRITE () } || 1)
+ #      | (eval { local $SIG{__DIE__}; Net::SSLeay::MODE_ACCEPT_MOVING_WRITE_BUFFER () } || 2));
+-   Net::SSLeay::CTX_set_mode ($tls, 1|2);
++   Net::SSLeay::set_mode ($tls, 1|2);
+ 
+    $self->{_rbio} = Net::SSLeay::BIO_new (Net::SSLeay::BIO_s_mem ());
+    $self->{_wbio} = Net::SSLeay::BIO_new (Net::SSLeay::BIO_s_mem ());



More information about the arch-commits mailing list