[PATCH] gnu: perl-http-daemon: Update to 6.14.

OpenSubmitted by Attila Lendvai.
Details
2 participants
  • Attila Lendvai
  • Christopher Baines
Owner
unassigned
Severity
normal
A
A
Attila Lendvai wrote on 26 May 15:03 +0200
(address . guix-patches@gnu.org)(name . Attila Lendvai)(address . attila@lendvai.name)
20220526130335.27626-1-attila@lendvai.name
---
gnu/packages/web.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

Toggle diff (30 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index ffcb709e82..0186ac06e5 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3462,18 +3462,19 @@ (define-public perl-http-cookies
 (define-public perl-http-daemon
   (package
     (name "perl-http-daemon")
-    (version "6.01")
+    (version "6.14")
     (source (origin
              (method url-fetch)
              (uri (string-append
-                   "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Daemon-"
+                   "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Daemon-"
                    version ".tar.gz"))
              (sha256
               (base32
-               "1hmd2isrkilf0q0nkxms1q64kikjmcw9imbvrjgky6kh89vqdza3"))))
+               "079fkcq2vdrzdf0bml52kz73n9gdv1xg0qf72c9v505v7izpwxph"))))
     (build-system perl-build-system)
     (propagated-inputs
-     (list perl-http-message perl-lwp-mediatypes))
+     (list perl-http-message perl-lwp-mediatypes perl-module-build-tiny
+           perl-test-needs))
     (license license:perl-license)
     (synopsis "Perl simple http server class")
     (description
-- 
2.35.1
A
A
Attila Lendvai wrote on 26 May 15:05 +0200
[PATCH 2/2] gnu: Add perl-http-daemon-ssl.
(address . 55656@debbugs.gnu.org)(name . Attila Lendvai)(address . attila@lendvai.name)
20220526130543.28222-1-attila@lendvai.name
---
i've decided to send this patch together with the perl-http-daemon,
because they depend on each other. pardon the missing 1/2 annotation
on the first patch.

this will be needed by an upcoming ddclient update.

gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (40 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 0186ac06e5..3d642aec26 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3483,6 +3483,33 @@ (define-public perl-http-daemon
 IO::Socket::INET, so you can perform socket operations directly on it too.")
     (home-page "https://metacpan.org/release/HTTP-Daemon")))
 
+(define-public perl-http-daemon-ssl
+  (package
+    (name "perl-http-daemon-ssl")
+    (version "1.04")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/A/AU/AUFFLICK/HTTP-Daemon-SSL-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32 "0bn2blg2dzbyqnvbxs4ch2chqnfn9xvmnl6kvy988k4k5m10bbky"))))
+    (build-system perl-build-system)
+    (propagated-inputs
+     (list perl-http-daemon perl-io-socket-ssl))
+    (arguments
+     ;; The tests want to connect to a local HTTPS server; see SSL_SERVER_ADDR.
+     `(#:tests? #f))
+    (home-page "https://metacpan.org/release/HTTP-Daemon-SSL")
+    (synopsis "Perl simple http server class with SSL support")
+    (description
+     "Instances of the HTTP::Daemon::SSL class are HTTP/1.1 servers that listen
+on a socket for incoming requests.  The HTTP::Daemon::SSL is a sub-class of
+IO::Socket::SSL, so you can perform socket operations directly on it too.")
+    (license license:perl-license)))
+
 (define-public perl-http-date
   (package
     (name "perl-http-date")
-- 
2.35.1
C
C
Christopher Baines wrote on 27 May 11:47 +0200
(name . Attila Lendvai)(address . attila@lendvai.name)
87v8trs3ty.fsf@cbaines.net
Attila Lendvai <attila@lendvai.name> writes:

Toggle quote (49 lines)
> ---
> i've decided to send this patch together with the perl-http-daemon,
> because they depend on each other. pardon the missing 1/2 annotation
> on the first patch.
>
> this will be needed by an upcoming ddclient update.
>
> gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 0186ac06e5..3d642aec26 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -3483,6 +3483,33 @@ (define-public perl-http-daemon
> IO::Socket::INET, so you can perform socket operations directly on it too.")
> (home-page "https://metacpan.org/release/HTTP-Daemon")))
>
> +(define-public perl-http-daemon-ssl
> + (package
> + (name "perl-http-daemon-ssl")
> + (version "1.04")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append
> + "mirror://cpan/authors/id/A/AU/AUFFLICK/HTTP-Daemon-SSL-"
> + version
> + ".tar.gz"))
> + (sha256
> + (base32 "0bn2blg2dzbyqnvbxs4ch2chqnfn9xvmnl6kvy988k4k5m10bbky"))))
> + (build-system perl-build-system)
> + (propagated-inputs
> + (list perl-http-daemon perl-io-socket-ssl))
> + (arguments
> + ;; The tests want to connect to a local HTTPS server; see SSL_SERVER_ADDR.
> + `(#:tests? #f))
> + (home-page "https://metacpan.org/release/HTTP-Daemon-SSL")
> + (synopsis "Perl simple http server class with SSL support")
> + (description
> + "Instances of the HTTP::Daemon::SSL class are HTTP/1.1 servers that listen
> +on a socket for incoming requests. The HTTP::Daemon::SSL is a sub-class of
> +IO::Socket::SSL, so you can perform socket operations directly on it too.")
> + (license license:perl-license)))
> +
> (define-public perl-http-date
> (package
> (name "perl-http-date")

Looking at what Debian ship for this, I think they use
looks to still be very old, but maybe have some fixes over the 1.04
version.

Does that look like it could be sensible to use?
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmKQnplfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9Xf9Kg/9FRoF6Dodc9XIad3Y8b4FgQDLN1yU9fzb
F9ASAVEKuEEpF27Iw12iKXQQ3KmHRjv9ld7uMuB3l5BQbFr80uT57c7dMIfT6SJ/
N1C+ILAcqHneaP+KzpoiCnoKXWE8FPh5XScDYRByqEnoRN0nKuJnkU04laweNFvs
F+gj2lk5DrOVmugjmDkd8Kvqon8HtC39Omadz84ARBNpS7i0GYUXgkzI9eg1h+la
n38mHM8+fNDfg2HMyWrpCOes3opuawnqomab7TkUfvltuOminTzfTsZciI6b+76L
HCFeMyqTEjm8lW6KU1OXtYRQc0vUUqalv6FwplLyD4io9LqWFRc9g373UhQkXRzk
IZsRHT+IkuCXocasD3uPMG2Tx533+9bOy6etTw/nPq4HBPLiSgr41j3CReV+9ijy
mFOmsS8SjUhALQ4CWHhy8EwPvUl6WCtuWKPs7OtZFB/cQtHaajQK5rWHhM2fEvj7
k9gAL4r3VtkaTFrngCtAeR/RNkhC2tJ++JRMnOPDUBvnpGvpd6m/NY3pQyYexrpq
05PjQyw2UZmNzzY15x6lFOKtct3RNLqGV7k33ReqI/PuNJ3PRTijypnpX0u/mw7L
d9CRG/bzOylvBKN6hMXq/fhuCovkpEKYiAdkXgGXMkaVk04eX20b7Lt/hGpdUaJ1
JRFkbbaH/xA=
=ln3u
-----END PGP SIGNATURE-----

C
C
Christopher Baines wrote on 27 May 12:03 +0200
Re: [bug#55656] [PATCH] gnu: perl-http-daemon: Update to 6.14.
(name . Attila Lendvai)(address . attila@lendvai.name)(address . 55656@debbugs.gnu.org)
87r14fs30h.fsf@cbaines.net
Attila Lendvai <attila@lendvai.name> writes:

Toggle quote (33 lines)
> ---
> gnu/packages/web.scm | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index ffcb709e82..0186ac06e5 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -3462,18 +3462,19 @@ (define-public perl-http-cookies
> (define-public perl-http-daemon
> (package
> (name "perl-http-daemon")
> - (version "6.01")
> + (version "6.14")
> (source (origin
> (method url-fetch)
> (uri (string-append
> - "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Daemon-"
> + "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Daemon-"
> version ".tar.gz"))
> (sha256
> (base32
> - "1hmd2isrkilf0q0nkxms1q64kikjmcw9imbvrjgky6kh89vqdza3"))))
> + "079fkcq2vdrzdf0bml52kz73n9gdv1xg0qf72c9v505v7izpwxph"))))
> (build-system perl-build-system)
> (propagated-inputs
> - (list perl-http-message perl-lwp-mediatypes))
> + (list perl-http-message perl-lwp-mediatypes perl-module-build-tiny
> + perl-test-needs))
> (license license:perl-license)
> (synopsis "Perl simple http server class")
> (description

This looks good to me, but because this is an input to wget, which seems
to have a lot of dependent packages (~900), this probably needs to go to
the staging branch.

Unfortunately, staging is frozen at the moment, so I'm not sure if it's
the right time to push it.
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmKQor5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XfCvBAAsvDska3L3kDhZk/BiOQVQptGms4CJnQz
Es9EprSXGo5KE3cupHbZLZ6vJtHCmMwWBKcUKViWxKJ3rm2VeQRuA+s72pGDstbT
XAejcsXjEMYz6ytcItps2fFrN4P40GZZfoLmd3Ak7m5TEnaooeKCr40GnDnr/Y0d
e7FW1jqwljNpGrJuB1BH2l2uD2vLRBoQ/Grt32DW/0GGVrmnSvHhkOCjAklRWM8d
ZYVGMsTC/OqMSG3UUtRzsQ6bRfsLpEF5wbW9L2fLIUSHeAURB4WyoF8Z0BZfK10Q
NSz1wuGe0q+iK16IKDQ1OIzJAKSucG9SKVyJI9gRNXtIepLyOWusNiPDo0kNzheP
XGXiuebXpgXaodE7v7Q7L6P5sSFIMd1kfu1561teFX93g2IqmsMCWgbjTfGmq7k0
81n04hF1vG1YCHMQM/Y+yyRtk1aiBtEf3o2DFdHdrcL5Qd3Thp9JeVgY8ixNfLxY
7FL5CvXvnyeUW/MQmaAV0yafgvJZkYTTG2O9y0pfEJDTtSbwsbAygfGOHSz7wDpg
c0hcC9qiUURv/hpGOT8sW6Zfv7ndI4lVtGk6pxi/bQlZFyeWRLioBnOsXEw0z1SW
ouPYkl8KOW2RNtvzQduwRtS6tzz1bNrarfbNqZc0wRTSVBQE7+feoQJebd44UmZr
iz4OAf/rkTk=
=6sGC
-----END PGP SIGNATURE-----

A
A
Attila Lendvai wrote on 27 May 13:44 +0200
Re: [bug#55656] [PATCH 2/2] gnu: Add perl-http-daemon-ssl.
(name . Christopher Baines)(address . mail@cbaines.net)
OW78jfx_f6MMH5iDOkCbmRlVmFldreXD-v9dNJ3pG-58x77THJ0HhiPDZAYP36W1IRDRC5m53lvUdJa6yUnLqwGqQnuVE98QXo2W2rfCp8g=@lendvai.name
Toggle quote (7 lines)
> Looking at what Debian ship for this, I think they use
> https://github.com/aufflick/p5-http-daemon-ssl as the source, which
> looks to still be very old, but maybe have some fixes over the 1.04
> version.
>
> Does that look like it could be sensible to use?

i cannot answer that, unfortunately. i needed this package to update ddclient, and just blindly ran `guix import cpan HTTP::Daemon::SSL`.

--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
Life is too short to spend time with people who suck the happiness out of you.
?