Github messages for voidlinux
 help / color / mirror / Atom feed
From: jcgruenhage <jcgruenhage@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: gnupg-smartcard-udev-rules-0.0.20220713
Date: Wed, 13 Jul 2022 16:30:14 +0200	[thread overview]
Message-ID: <20220713143014.NaSOB_2Tro8EkJtwL3JRxima2daNaL2O3J0PUUqnT-E@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38037@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages gnupg-smartcard-udev-rules-0.0.20220713_1
https://github.com/void-linux/void-packages/pull/38037

New package: gnupg-smartcard-udev-rules-0.0.20220713
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


This partially addresses #38034.
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38037.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnupg-smartcard-udev-rules-0.0.20220713_1-38037.patch --]
[-- Type: text/x-diff, Size: 3286 bytes --]

From d9501be768db8497cc9eb03a59b70fba786cc799 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Wed, 13 Jul 2022 14:01:40 +0200
Subject: [PATCH 1/2] New package: gnupg-smartcard-udev-rules-0.0.20210106

---
 srcpkgs/gnupg-smartcard-udev-rules/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/gnupg-smartcard-udev-rules/template

diff --git a/srcpkgs/gnupg-smartcard-udev-rules/template b/srcpkgs/gnupg-smartcard-udev-rules/template
new file mode 100644
index 000000000000..1dfbfc0a6042
--- /dev/null
+++ b/srcpkgs/gnupg-smartcard-udev-rules/template
@@ -0,0 +1,18 @@
+# Template file for 'gnupg-smartcard-udev-rules'
+pkgname=gnupg-smartcard-udev-rules
+version=0.0.20210106
+revision=1
+_commit=6cb4406c7d6962e793da0dc84ab78f186cb8fa6e
+build_style=fetch
+short_desc="GnuPG udev rules for use with OpenPGP smartcards"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="GPL-3.0-or-later"
+homepage="https://salsa.debian.org/debian/gnupg2/-/blob/debian/unstable/debian/scdaemon.udev"
+distfiles="https://salsa.debian.org/debian/gnupg2/-/raw/${_commit}/debian/scdaemon.udev"
+checksum=23e36cb8381df9461b73abdab838dbc927a475fb22b14dd53b7f8192ccdd6023
+
+do_install() {
+	sed -r 's/(, ENV\{.+\}=\".+\")+$/, GROUP="plugdev", TAG+="uaccess"/gm' -i scdaemon.udev
+	vsed -e "s/ATTR/ATTRS/g" -i scdaemon.udev
+	vinstall scdaemon.udev 644 /usr/lib/udev/rules.d/ 60-scdaemon.rules
+}

From 2606e8b4ae1b8eee1425c7cd86f56ca31e195a93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Wed, 13 Jul 2022 16:28:51 +0200
Subject: [PATCH 2/2] gnupg: add dep to smartcard udev rules and INSTALL.msg

---
 srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg | 5 +++++
 srcpkgs/gnupg/template                    | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg

diff --git a/srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg b/srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg
new file mode 100644
index 000000000000..f60058947191
--- /dev/null
+++ b/srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg
@@ -0,0 +1,5 @@
+GnuPG 2.3 changes the behaviour of scdaemon. While GnuPG 2.2 had a fallback to
+PC/SC when the internal CCID driver didn't work, the fallback now has to be
+explicitly configured by disabling the internal CCID driver. If you've not
+explicitly enabled pcscd, you shouldn't need to do anything. For more details,
+see https://docs.voidlinux.org/config/openpgp/gnupg-smartcards.html
diff --git a/srcpkgs/gnupg/template b/srcpkgs/gnupg/template
index f16d68e0c541..4e1e75990220 100644
--- a/srcpkgs/gnupg/template
+++ b/srcpkgs/gnupg/template
@@ -1,7 +1,7 @@
 # Template file for 'gnupg'
 pkgname=gnupg
 version=2.3.7
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="$(vopt_enable ldap)
  --with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr
@@ -44,7 +44,7 @@ gnupg2_package() {
 }
 
 gnupg2-scdaemon_package() {
-	depends="${sourcepkg}>=${version}_${revision} libpcsclite"
+	depends="${sourcepkg}>=${version}_${revision} libpcsclite gnupg-smartcard-udev-rules"
 	short_desc+=" - smartcard daemon"
 	pkg_install() {
 		vmove usr/libexec/scdaemon

  parent reply	other threads:[~2022-07-13 14:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13 12:03 [PR PATCH] " jcgruenhage
2022-07-13 12:04 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 12:09 ` jcgruenhage
2022-07-13 12:09 ` [PR REVIEW] " jcgruenhage
2022-07-13 14:30 ` jcgruenhage [this message]
2022-07-13 15:15 ` Add gnupg-smartcard-udev-rules and add INSTALL.msg to gnupg2-scdaemon jcgruenhage
2022-07-13 15:18 ` jcgruenhage
2022-07-13 15:28 ` ahesford
2022-07-13 15:45 ` 0x5c
2022-07-13 16:03 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 16:09 ` [PR PATCH] [Updated] Add udev rules and " jcgruenhage
2022-07-13 16:38 ` [PR REVIEW] " classabbyamp
2022-07-13 16:39 ` classabbyamp
2022-07-13 16:58 ` jcgruenhage
2022-07-13 16:59 ` classabbyamp
2022-07-13 17:00 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 17:05 ` jcgruenhage
2022-07-13 17:13 ` 0x5c
2022-07-13 17:15 ` [PR PATCH] [Merged]: " classabbyamp
2022-07-13 17:19 ` 0x5c

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

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

  git send-email \
    --in-reply-to=20220713143014.NaSOB_2Tro8EkJtwL3JRxima2daNaL2O3J0PUUqnT-E@z \
    --to=jcgruenhage@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /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.
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 NNTP newsgroup(s).