emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45106: closed ([PATCH] gnu: shadowsocks: Build against openssl.)


From: GNU bug Tracking System
Subject: bug#45106: closed ([PATCH] gnu: shadowsocks: Build against openssl.)
Date: Mon, 07 Dec 2020 23:49:01 +0000

Your message dated Tue, 08 Dec 2020 00:48:18 +0100
with message-id <87mtyp41q5.fsf@gnu.org>
and subject line Re: [bug#45106] [PATCH] gnu: shadowsocks: Build against 
openssl.
has caused the debbugs.gnu.org bug report #45106,
regarding [PATCH] gnu: shadowsocks: Build against openssl.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45106: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45106
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: shadowsocks: Build against openssl. Date: Mon, 7 Dec 2020 21:28:18 +0100
This patch allows shadowsocks to be used without supplying libopenssl in its
configuration.  See also https://unix.stackexchange.com/questions/623324/.

* gnu/packages/networking.scm (shadowsocks)[inputs]: Add openssl.
[#:phases]: Add patch-crypto-paths.
---
 gnu/packages/networking.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 8a84c8476a..1f50c76962 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -3024,6 +3024,19 @@ asynchronous model using a modern C++ approach.")
                  (base32
                   "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
                 (file-name (git-file-name name version))))
+      (inputs
+       `(("openssl" ,openssl)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch-crypto-paths
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "shadowsocks/shell.py"
+                 (("config\\.get\\('libopenssl', None\\)")
+                  (format #f "config.get('libopenssl', ~s)"
+                          (string-append
+                           (assoc-ref inputs "openssl")
+                           "/lib/libssl.so"))))))))))
       (build-system python-build-system)
       (synopsis "Fast tunnel proxy that helps you bypass firewalls")
       (description
-- 
2.29.2




--- End Message ---
--- Begin Message --- Subject: Re: [bug#45106] [PATCH] gnu: shadowsocks: Build against openssl. Date: Tue, 08 Dec 2020 00:48:18 +0100
Leo Prikler <leo.prikler@student.tugraz.at> skriver:

> This patch allows shadowsocks to be used without supplying libopenssl in its
> configuration.  See also https://unix.stackexchange.com/questions/623324/.
>
> * gnu/packages/networking.scm (shadowsocks)[inputs]: Add openssl.
> [#:phases]: Add patch-crypto-paths.

I fixed the syntax error and committed in
403dda2e66dc5c8f23bf66086815133546df1ba0.  Thanks!

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]