Package Details: guile-gnutls 4.0.0-1

Git Clone URL: https://aur.archlinux.org/guile-gnutls.git (read-only, click to copy)
Package Base: guile-gnutls
Description: Guile bindings for the GnuTLS library
Upstream URL: https://gitlab.com/gnutls/guile
Licenses: LGPL
Submitter: lantw44
Maintainer: lantw44
Last Packager: lantw44
Votes: 1
Popularity: 0.000259
First Submitted: 2023-02-28 12:01 (UTC)
Last Updated: 2023-09-09 04:17 (UTC)

Latest Comments

phantasus commented on 2025-02-26 20:39 (UTC)

Well, the only solution to being able to build this package currently is to disable make check at all or maybe trying the previously submitted patch.

Is this package still maintained?

snamellit commented on 2024-09-18 13:30 (UTC) (edited on 2024-09-18 13:30 (UTC) by snamellit)

I applied the upstream patch and cleaned the PKGBUILD up a bit and the package installs fine with this patch:

diff --git a/PKGBUILD b/PKGBUILD
index 5327f14..8b4b5f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,10 +10,13 @@ license=('LGPL')
 depends=('guile' 'gnutls')
 source=(
   "https://gitlab.com/gnutls/guile/uploads/9060bc55069cedb40ab46cea49b439c0/${pkgname}-${pkgver}.tar.gz"
-  "https://gitlab.com/gnutls/guile/uploads/a3c53a85b8dfafc23fb6ccc65de7b545/${pkgname}-${pkgver}.tar.gz.sig")
+  "https://gitlab.com/gnutls/guile/uploads/a3c53a85b8dfafc23fb6ccc65de7b545/${pkgname}-${pkgver}.tar.gz.sig"
+  "guile-gnutls-list-pk-algorithms.patch"
+)
 sha256sums=(
   '5b4cb926032076ec346bb5c0bc0d0231f968fe0f565913cc16934bb793afb239'
-  'eaeb21b4abde3f8d1a7e5e793fb7da99996bf6993be1d6aacdce5fbb8c3029bf')
+  'eaeb21b4abde3f8d1a7e5e793fb7da99996bf6993be1d6aacdce5fbb8c3029bf'
+  '41292fd265b81435488c3b132cb47af28448f3b975bbe0c00ac4d20952062c1d')
 validpgpkeys=('B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE')

 prepare() {
diff --git a/guile-gnutls-list-pk-algorithms.patch b/guile-gnutls-list-pk-algorithms.patch
new file mode 100644
index 0000000..10052c7
--- /dev/null
+++ b/guile-gnutls-list-pk-algorithms.patch
@@ -0,0 +1,26 @@
+diff --git a/guile/modules/gnutls.in b/guile/modules/gnutls.in
+index 451f384..bf38bc5 100644
+--- a/guile/modules/gnutls.in
++++ b/guile/modules/gnutls.in
+@@ -436,6 +436,7 @@
+            pk-algorithm/gost-12-512
+            pk-algorithm/ecdh-x448
+            pk-algorithm/eddsa-ed448
++           pk-algorithm/rsa-oaep
+            sign-algorithm/unknown
+            sign-algorithm/rsa-sha1
+            sign-algorithm/dsa-sha1
+diff --git a/guile/modules/gnutls/build/enums.scm b/guile/modules/gnutls/build/enums.scm
+index 658f4c7..752d172 100644
+--- a/guile/modules/gnutls/build/enums.scm
++++ b/guile/modules/gnutls/build/enums.scm
+@@ -637,7 +637,8 @@
+                     gost-12-256
+                     gost-12-512
+                     ecdh-x448
+-                    eddsa-ed448)
++                    eddsa-ed448
++                    rsa-oaep)
+                   "gnutls_pk_algorithm_get_name"
+                   "GNUTLS_PK_"))
+ 
diff --git a/guile-gnutls-merge-17-gnutls-3.8.1.patch b/guile-gnutls-merge-17-gnutls-3.8.1.patch
deleted file mode 100644
index 945191d..0000000
--- a/guile-gnutls-merge-17-gnutls-3.8.1.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 394383035edf9ce6100418e0e8c0ceb49f774fbc Mon Sep 17 00:00:00 2001
-From: Simon Josefsson <simon@josefsson.org>
-Date: Thu, 17 Aug 2023 14:25:22 +0200
-Subject: [PATCH] Handle missing GNUTLS_NO_EXTENSIONS.  Closes: #15.
-
-The GNUTLS_NO_EXTENSIONS #define is missing from GnuTLS 3.8.1.
----
- guile/src/make-enum-header.scm | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/guile/src/make-enum-header.scm b/guile/src/make-enum-header.scm
-index b548991..488e396 100644
---- a/guile/src/make-enum-header.scm
-+++ b/guile/src/make-enum-header.scm
-@@ -41,6 +41,9 @@
-     (format port "#include <gnutls/x509.h>~%")
-     (format port "#include <gnutls/openpgp.h>~%")
-     (format port "#include <gnutls/abstract.h>~%")
-+    (format port "#ifndef GNUTLS_NO_EXTENSIONS~%")
-+    (format port "#define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS~%")
-+    (format port "#endif~%~%")
- 
-     (for-each (lambda (enum)
-                 (output-enum-declarations enum port)
--- 
-GitLab
-

port19 commented on 2024-08-26 10:15 (UTC)

Just commenting to confirm that it is indeed the list-pk-algorithms.scm that is failing

micwoj92 commented on 2024-08-04 11:27 (UTC)

@mxaddict This is not failure on build, it's in check(). You didnt actually post the check that fails, your comment is useless. This is also known upstream https://gitlab.com/gnutls/guile/-/issues/25.

mxaddict commented on 2024-08-03 23:06 (UTC)

Getting this failure on build:

============================================================================
Testsuite summary for Guile-GnuTLS 4.0.0
============================================================================
# TOTAL: 22
# PASS:  21
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See guile/test-suite.log
Please report to gnutls-help@lists.gnutls.org
============================================================================
make[5]: *** [Makefile:871: test-suite.log] Error 1
make[5]: Leaving directory '/home/mxaddict/.cache/paru/clone/guile-gnutls/src/guile-gnutls-4.0.0/guile'
make[4]: *** [Makefile:979: check-TESTS] Error 2
make[4]: Leaving directory '/home/mxaddict/.cache/paru/clone/guile-gnutls/src/guile-gnutls-4.0.0/guile'
make[3]: *** [Makefile:1223: check-am] Error 2
make[3]: Leaving directory '/home/mxaddict/.cache/paru/clone/guile-gnutls/src/guile-gnutls-4.0.0/guile'
make[2]: *** [Makefile:763: check-recursive] Error 1
make[2]: Leaving directory '/home/mxaddict/.cache/paru/clone/guile-gnutls/src/guile-gnutls-4.0.0/guile'
make[1]: *** [Makefile:471: check-recursive] Error 1
make[1]: Leaving directory '/home/mxaddict/.cache/paru/clone/guile-gnutls/src/guile-gnutls-4.0.0'
make: *** [Makefile:771: check] Error 2
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'guile-gnutls-4.0.0-1':
error: packages failed to build: guile-gnutls-4.0.0-1

will4n commented on 2024-04-15 00:45 (UTC)

I get the same "gnutls-pk-algorithm-enum RSA" test failure as @micwoj92

maybe related to the failure in rsa problems in guile-git-lib? https://aur.archlinux.org/cgit/aur.git/tree/guile-git-lib-merge-31-fix-clone-tests.patch?h=guile-git-lib

micwoj92 commented on 2024-04-06 22:48 (UTC)

1 test fails

==============================================
   Guile-GnuTLS 4.0.0: guile/test-suite.log
==============================================

# TOTAL: 22
# PASS:  21
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/list-pk-algorithms.scm
==================================

          16 (primitive-load "/build/guile-gnutls/src/guile-gnutls-4?")
In ice-9/eval.scm:
    155:9 15 (_ #(#(#<directory (gnutls build tests) 77be8d807dc0>) ?))
In ice-9/boot-9.scm:
  1747:15 14 (with-exception-handler #<procedure 77be84c37ea0 at ic?> ?)
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In ice-9/eval.scm:
    619:8 12 (_ #(#(#(#<directory (guile-user) 77be8d788c80>)) (# ?)))
    259:9 11 (_ #(#(#(#<directory (guile-user) 77be8d788c80>)) (# ?)))
    159:9 10 (_ #(#(#(#<directory (guile-user) 77be8d788c80>)) (# ?)))
In ice-9/boot-9.scm:
   222:29  9 (map1 (#<gnutls-pk-algorithm-enum RSA> #<gnutls-pk-a?> ?))
   222:29  8 (map1 (#<gnutls-pk-algorithm-enum RSA-PSS> #f #<gnut?> ?))
   222:17  7 (map1 (#f #<gnutls-pk-algorithm-enum RSA> #<gnutls-p?> ?))
In unknown file:
           6 (pk-algorithm->string #f)
In ice-9/boot-9.scm:
  1685:16  5 (raise-exception _ #:continuable? _)
  1780:13  4 (_ #<&compound-exception components: (#<&assertion-fail?>)
In ice-9/eval.scm:
    619:8  3 (_ #(#(#<directory (gnutls build tests) 77be8d807dc0>) ?))
In ice-9/boot-9.scm:
    142:2  2 (dynamic-wind #<procedure 77be8d7ae6a0 at ice-9/eval.s?> ?)
In ice-9/eval.scm:
    159:9  1 (_ #(#(#<directory (gnutls build tests) 77be8d807dc0> ?)))
In unknown file:
           0 (make-stack #t)

throw to `wrong-type-arg' with args ("pk-algorithm->string" "Wrong type argument in position ~A: ~S" (1 #f) (#f)) [PID 4664]
FAIL tests/list-pk-algorithms.scm (exit status: 1)

oriba commented on 2024-01-19 22:08 (UTC)

Looks good, first test allowed https-acces via guile.

oriba commented on 2024-01-19 04:23 (UTC)

Somewhere near the end I found a warning libtool: warning: remember to run 'libtool --finish /usr/lib/guile/3.0/extensions' but did not see that libtool was called below that.

And I also then got these here: strip: Unable to recognise the format of the input file./usr/lib/guile/3.0/site-ccache/gnutls.go' strip: Unable to recognise the format of the input file ./usr/lib/guile/3.0/site-ccache/gnutls/extra.go' In the end the package can be created, but it does look problematic somehow.