GNU bug report logs - #49342
[PATCH 0/1] Fix libykpers reference in python-yubikey-manager

Previous Next

Package: guix-patches;

Reported by: Dhruvin Gandhi <contact <at> dhruvin.dev>

Date: Fri, 2 Jul 2021 21:20:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dhruvin Gandhi <contact <at> dhruvin.dev>
To: 49342 <at> debbugs.gnu.org
Cc: Dhruvin Gandhi <contact <at> dhruvin.dev>
Subject: [bug#49342] [PATCH v2 1/1] gnu: python-yubikey-manager: Fix libykpers reference.
Date: Sat,  3 Jul 2021 10:02:17 +0530
* gnu/packages/security-token.scm (python-yubikey-manager): Fix libykpers reference.
---
 gnu/packages/security-token.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index 49ca1dc01e..8af27176cc 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2020 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;; Copyright © 2021 Antero Mejr <antero <at> kodmin.com>
 ;;; Copyright © 2021 Sergey Trofimov <sarg <at> sarg.org.ru>
+;;; Copyright © 2021 Dhruvin Gandhi <contact <at> dhruvin.dev>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -657,6 +658,23 @@ implementing a Relying Party.")
                (base32
                 "11rsmcaj60k3y5m5gdhr2nbbz0w5dm3m04klyxz0fh5hnpcmr7fm"))))
     (build-system python-build-system)
+    (arguments
+     '(#:modules ((srfi srfi-1)
+                  (guix build utils)
+                  (guix build python-build-system))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-libykpers-reference
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "ykman/driver_otp.py"
+               (("Ykpers\\('ykpers-1', '1'\\)")
+                (string-append
+                 "Ykpers('"
+                 (find (negate symbolic-link?)
+                       (find-files (assoc-ref inputs "yubikey-personalization")
+                                   "^libykpers-.*\\.so\\..*"))
+                 "')")))
+             #t)))))
     (propagated-inputs
      `(("python-six" ,python-six)
        ("python-pyscard" ,python-pyscard)
-- 
2.32.0





This bug report was last modified 4 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.