summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorHugo Buddelmeijer <hugo@buddelmeijer.nl>2026-03-22 22:28:57 +0100
committerCayetano Santos <csantosb@inventati.org>2026-04-01 11:54:02 +0200
commit09eb32b1676cf375d33943015f8397be2eb40177 (patch)
treea1a5a579dfefb25ff18df9bd061853cfa368eb06 /gnu/packages
parent9f19f69fe5816a23a14a08d7b3b51bfb28cc5719 (diff)
gnu: httptunnel: Fix build by applying CFLAGS.
* gnu/packages/web.scm (httptunnel): Fix build and modernize package. [source]<origin>: Switch to https; use G-Expressions in ’snippet. [arguments]: Use G-Expressions. <#:phases>: Fix 'configure. [home-page]: Switch to https. Merges guix/guix!7417 Change-Id: If82232e402fbc6791a6f089558afc3ab007d8247 Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/web.scm36
1 files changed, 20 insertions, 16 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 04919246218..0f76df65f4b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7219,29 +7219,33 @@ multicore machines.")
(source
(origin
(method url-fetch)
- (uri (string-append "http://www.nocrew.org/software/httptunnel/"
+ ;; git repository has no tags, so difficult to figure out which commit
+ ;; corresponds to which version.
+ (uri (string-append "https://www.nocrew.org/software/httptunnel/"
name "-" version ".tar.gz"))
(sha256
(base32
"0mn5s6p68n32xzadz6ds5i6bp44dyxzkq68r1yljlv470jr84bql"))
(modules '((guix build utils)))
- (snippet '(begin
- ;; Remove non-free IETF RFC documentation.
- (delete-file-recursively "doc")
- #t))))
+ ;; Remove non-free IETF RFC documentation.
+ (snippet #~(delete-file-recursively "doc"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; The default configure phase tries to pass environment variables as
- ;; command-line arguments, which confuses the ./configure script.
- (replace 'configure
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out")))
- (setenv "CONFIG_SHELL" (which "bash"))
- (invoke "./configure"
- (string-append "--prefix=" out))))))))
- (home-page "http://www.nocrew.org/software/httptunnel.html")
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; The default configure phase tries to pass environment variables as
+ ;; command-line arguments, which confuses the ./configure script.
+ (replace 'configure
+ (lambda _
+ (setenv "CONFIG_SHELL" (which "bash"))
+ (setenv "CFLAGS" (string-append
+ "-O2 -g "
+ "-Wno-error=implicit-int "
+ "-Wno-error=implicit-function-declaration"))
+ (invoke "./configure"
+ (string-append "--prefix=" #$output)))))))
+ (home-page "https://www.nocrew.org/software/httptunnel.html")
(synopsis "Tunnel data connections through HTTP requests")
(description "httptunnel creates a bidirectional virtual data connection
tunnelled through HTTP (HyperText Transfer Protocol) requests. This can be