all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 74391@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Subject: [bug#74391] [PATCH 1/2] gnu: sslh: Update to 2.1.2.
Date: Sun, 17 Nov 2024 12:02:26 +0300	[thread overview]
Message-ID: <5efc66babbe61a9cc66a9de1f635bca5fd8fd377.1731833680.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <cover.1731833680.git.poptsov.artyom@gmail.com>

* gnu/packages/networking.scm (sslh): Update to 2.1.2.
[native-inputs]: Add pcre2.
[inputs]: Remove tcp-wrappers and libcap.  Add libev.
[arguments]<phases>: Patch tests; disable a failing test.
<make-flags>: Disable USELIBCAP as it leads to "permission denied" errors.
Disable USELIBWRAP as it leads to linker errors.  Add USELIBCONFIG.

Change-Id: I20ba6e5ec1af4c7666d2b1f9870c850207e9c2c9
---
 gnu/packages/networking.scm | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index f0f0619161..091ed06d3d 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -147,6 +147,7 @@ (define-module (gnu packages networking)
   #:use-module (gnu packages libidn)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages logging)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages man)
@@ -2716,7 +2717,7 @@ (define-public enet-moonlight
 (define-public sslh
   (package
     (name "sslh")
-    (version "1.21c")
+    (version "2.1.2")
     (source
      (origin
        (method git-fetch)
@@ -2725,28 +2726,36 @@ (define-public sslh
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
+        (base32 "0v4wmwcjqlpiagq2q30v7459ffvxb7i6kvjq1av6ajdd5iib2vpq"))))
     (build-system gnu-build-system)
     (native-inputs
      (list ;; Test dependencies.
            lcov
+           pcre2
            perl
            perl-conf-libconfig
            perl-io-socket-inet6
            perl-socket6
            psmisc))             ; for ‘killall’
     (inputs
-     (list libcap libconfig pcre tcp-wrappers))
+     (list libev libconfig pcre))
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (delete 'configure)            ; no configure script
          (add-before 'check 'fix-tests
            (lambda _
-             (substitute* "./t"
-               (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
-               ;; The Guix build environment lacks ‘ip6-localhost’.
-               (("ip6-localhost") "localhost"))
+             (substitute* "t"
+               ;; XXX: Disable a failing test.
+               (("my \\$DROP_CNX =          1;")
+                "my $DROP_CNX =          0;")
+               ;; XXX: "sslh-select" seems to not support this option for some
+               ;; reason.  According to "sslhconf.cfg" this option just overrides the
+               ;; verbosity configuration so it seems that we can safely drop it.
+               (("-v 4")
+                ""))
+             (substitute* "test.cfg"
+               ;; The Guix build environment lacks ‘ip4-localhost’.
+               (("ip4-localhost") "localhost"))
              #t))
          ;; Many of these files are mentioned in the man page. Install them.
          (add-after 'install 'install-documentation
@@ -2761,8 +2770,7 @@ (define-public sslh
                         (find-files "scripts"))))
              #t)))
        #:make-flags (list ,(string-append "CC=" (cc-for-target))
-                          "USELIBCAP=1"
-                          "USELIBWRAP=1"
+                          "USELIBCONFIG=1"
                           (string-append "PREFIX=" (assoc-ref %outputs "out")))
        #:test-target "test"))
     (home-page "https://www.rutschle.net/tech/sslh/README.html")
-- 
2.46.0





  reply	other threads:[~2024-11-17  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-17  8:59 [bug#74391] [PATCH 0/2] gnu: sslh: Update to 2.1.2 Artyom V. Poptsov
2024-11-17  9:02 ` Artyom V. Poptsov [this message]
2024-11-17  9:02 ` [bug#74391] [PATCH 2/2] gnu: sslh: Use GEXPs Artyom V. Poptsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5efc66babbe61a9cc66a9de1f635bca5fd8fd377.1731833680.git.poptsov.artyom@gmail.com \
    --to=poptsov.artyom@gmail.com \
    --cc=74391@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.