unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Dhruvin Gandhi via Guix-patches via <guix-patches@gnu.org>
To: 49342@debbugs.gnu.org
Cc: Dhruvin Gandhi <contact@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	[thread overview]
Message-ID: <20210703043217.3200-2-contact@dhruvin.dev> (raw)
In-Reply-To: <20210703043217.3200-1-contact@dhruvin.dev>

* 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@mind.be>
 ;;; Copyright © 2021 Antero Mejr <antero@kodmin.com>
 ;;; Copyright © 2021 Sergey Trofimov <sarg@sarg.org.ru>
+;;; Copyright © 2021 Dhruvin Gandhi <contact@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





  reply	other threads:[~2021-07-03  4:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02 21:18 [bug#49342] [PATCH 0/1] Fix libykpers reference in python-yubikey-manager Dhruvin Gandhi via Guix-patches via
2021-07-02 21:21 ` [bug#49342] [PATCH 1/1] gnu: python-yubikey-manager: Fix libykpers reference Dhruvin Gandhi via Guix-patches via
2021-07-03  4:32   ` [bug#49342] [PATCH v2 0/1] Update Copyright Dhruvin Gandhi via Guix-patches via
2021-07-03  4:32     ` Dhruvin Gandhi via Guix-patches via [this message]
2021-07-30 20:50       ` bug#49342: [PATCH 0/1] Fix libykpers reference in python-yubikey-manager Ludovic Courtès
2021-07-08  6:12     ` [bug#49342] [PATCH v2 0/1] Update Copyright Dhruvin Gandhi via Guix-patches via

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20210703043217.3200-2-contact@dhruvin.dev \
    --to=guix-patches@gnu.org \
    --cc=49342@debbugs.gnu.org \
    --cc=contact@dhruvin.dev \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).