From patchwork Sat Jul 3 04:32:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dhruvin Gandhi X-Patchwork-Id: 31050 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6F01127BC81; Sat, 3 Jul 2021 05:34:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3930527BC78 for ; Sat, 3 Jul 2021 05:34:10 +0100 (BST) Received: from localhost ([::1]:53716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzXM1-0005p5-7Z for patchwork@mira.cbaines.net; Sat, 03 Jul 2021 00:34:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzXLv-0005oh-0X for guix-patches@gnu.org; Sat, 03 Jul 2021 00:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzXLu-0003jB-PO for guix-patches@gnu.org; Sat, 03 Jul 2021 00:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzXLu-0006ET-NU for guix-patches@gnu.org; Sat, 03 Jul 2021 00:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49342] [PATCH v2 1/1] gnu: python-yubikey-manager: Fix libykpers reference. Resent-From: Dhruvin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Jul 2021 04:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49342 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49342@debbugs.gnu.org Cc: Dhruvin Gandhi Received: via spool by 49342-submit@debbugs.gnu.org id=B49342.162528679623896 (code B ref 49342); Sat, 03 Jul 2021 04:34:02 +0000 Received: (at 49342) by debbugs.gnu.org; 3 Jul 2021 04:33:16 +0000 Received: from localhost ([127.0.0.1]:37633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzXLA-0006DM-2c for submit@debbugs.gnu.org; Sat, 03 Jul 2021 00:33:16 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:54008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzXL5-0006Cs-PC for 49342@debbugs.gnu.org; Sat, 03 Jul 2021 00:33:14 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4GGzb55DyFzQk1l; Sat, 3 Jul 2021 06:33:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dhruvin.dev; s=MBO0001; t=1625286783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mt6L2GwzH0i2Pm0O3T3J4hEjYZAJcaYWaniKUBPxRVI=; b=0gGMklEv80g6bKj+tWR2EW7U41rJKg7xRF8fP8RAGmVVqTnOQSHzAx+A8UGYFrCI4xbGx5 MbRumlmloZ2DFo4u7uBqsqeliSfRQR6YvMe/XWlXoI/MFb8Vi6ETrlLDudMiYN+ArWhMuC XEHlfgbo3ANz0qHl1zZ1QDbPGRwm4Ij+2OMbdv6tngxcSPdAHcPC4nXzn2R5vwBWUVDz5j EQY0LYkENtVBMr3ivQEx3FGJDKbj5zqovzRIPLbeA5KIaUlyZtgDbtnmhrK8eGubDAUU1F wqGewhkmK4uQ64NDgf+dNSKI/GR2nnX8duwqlhJ6o8erjZt938bR93hup7UslA== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id f5UsjPmpG8cT; Sat, 3 Jul 2021 06:33:02 +0200 (CEST) Date: Sat, 3 Jul 2021 10:02:17 +0530 Message-Id: <20210703043217.3200-2-contact@dhruvin.dev> In-Reply-To: <20210703043217.3200-1-contact@dhruvin.dev> References: <20210702212159.27440-1-contact@dhruvin.dev> <20210703043217.3200-1-contact@dhruvin.dev> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -6.47 / 15.00 / 15.00 X-Rspamd-Queue-Id: C6B121857 X-Rspamd-UID: 49d08a X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Dhruvin Gandhi X-ACL-Warn: , Dhruvin Gandhi via Guix-patches X-Patchwork-Original-From: Dhruvin Gandhi via Guix-patches via From: Dhruvin Gandhi X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2021 Antero Mejr ;;; Copyright © 2021 Sergey Trofimov +;;; Copyright © 2021 Dhruvin Gandhi ;;; ;;; 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)