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] wally-cli: don't vendor udev rules
Date: Sat, 15 May 2021 03:55:46 +0200	[thread overview]
Message-ID: <20210515015546.zG75n3vNIgr1p8Zbkb3qU5j_A2gus2KU7GFV_pTJeZA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30879@inbox.vuxu.org>

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

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

https://github.com/jcgruenhage/void-packages wally-cli-2.0.0_2
https://github.com/void-linux/void-packages/pull/30879

wally-cli: don't vendor udev rules
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/30879.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wally-cli-2.0.0_2-30879.patch --]
[-- Type: text/x-diff, Size: 5558 bytes --]

From 7db34acf69cc5d011088fe9bbaaaf5d8e928e25e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Fri, 14 May 2021 22:44:30 +0200
Subject: [PATCH 1/2] New package: wally-udev-2.1.1

---
 srcpkgs/wally-udev/INSTALL.msg |  3 +++
 srcpkgs/wally-udev/template    | 23 +++++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 srcpkgs/wally-udev/INSTALL.msg
 create mode 100644 srcpkgs/wally-udev/template

diff --git a/srcpkgs/wally-udev/INSTALL.msg b/srcpkgs/wally-udev/INSTALL.msg
new file mode 100644
index 000000000000..6313b5615bad
--- /dev/null
+++ b/srcpkgs/wally-udev/INSTALL.msg
@@ -0,0 +1,3 @@
+Please add your user to the group 'plugdev' by executing the following:
+
+usermod -aG plugdev "$USER"
diff --git a/srcpkgs/wally-udev/template b/srcpkgs/wally-udev/template
new file mode 100644
index 000000000000..487532c5814c
--- /dev/null
+++ b/srcpkgs/wally-udev/template
@@ -0,0 +1,23 @@
+# Template file for 'wally-udev'
+pkgname=wally-udev
+version=2.1.1
+revision=1
+build_style=fetch
+short_desc="Set of udev rules for ZSA keyboards, for usage with wally and oryx"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="MIT"
+homepage="https://github.com/zsa/wally"
+distfiles="https://raw.githubusercontent.com/zsa/wally/${version}/dist/linux64/50-oryx.rules
+ https://raw.githubusercontent.com/zsa/wally/${version}/dist/linux64/50-wally.rules
+ https://raw.githubusercontent.com/zsa/wally/${version}/license.md"
+checksum="6c7d4d27745080269115c58c4c5d863b23c534635975f3bca581c52687721c52
+ 269c9196bc65b2e62be549e3d34e56768fe702ff099b7780a1661ca4c92a0143
+ d2841d63f4e0bdfda102390ab1ca09136230d22f88538863b24b0c7fc68e548e"
+conf_files="/usr/lib/udev/rules.d/50-wally.rules /usr/lib/udev/rules.d/50-oryx.rules"
+system_groups="plugdev"
+
+do_install() {
+	vlicense license.md
+	vinstall 50-oryx.rules 0644 /usr/lib/udev/rules.d
+	vinstall 50-wally.rules 0644 /usr/lib/udev/rules.d
+}

From fda9bc2be812509464babfd19bafbccf5d937277 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Fri, 14 May 2021 22:23:49 +0200
Subject: [PATCH 2/2] wally-cli: don't vendor udev rules

So far, the udev rules contained in this package were manually
maintained, which is probably the reason that the necessary rules for
using the Moonlander keyboard with their training software, Oryx, wasn't
present. I've created a new package, wally-udev, which fetches the udev
rules from the upstream repo instead. As the build process for wally
itself (which should not be confused with wally-cli) is completely
undocumented, I've not done this "properly" (which would be packaging
wally and having wally-udev be a subpackage of wally, which is then
depended upon by wally-cli) for now, but this is already a step in the
right direction IMO.
---
 srcpkgs/wally-cli/INSTALL.msg          |  3 ---
 srcpkgs/wally-cli/files/50-wally.rules | 11 -----------
 srcpkgs/wally-cli/template             |  8 +++-----
 3 files changed, 3 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/wally-cli/INSTALL.msg
 delete mode 100644 srcpkgs/wally-cli/files/50-wally.rules

diff --git a/srcpkgs/wally-cli/INSTALL.msg b/srcpkgs/wally-cli/INSTALL.msg
deleted file mode 100644
index 6313b5615bad..000000000000
--- a/srcpkgs/wally-cli/INSTALL.msg
+++ /dev/null
@@ -1,3 +0,0 @@
-Please add your user to the group 'plugdev' by executing the following:
-
-usermod -aG plugdev "$USER"
diff --git a/srcpkgs/wally-cli/files/50-wally.rules b/srcpkgs/wally-cli/files/50-wally.rules
deleted file mode 100644
index 742cde5c1f91..000000000000
--- a/srcpkgs/wally-cli/files/50-wally.rules
+++ /dev/null
@@ -1,11 +0,0 @@
-# These rules are derived from the instructions at
-# https://github.com/zsa/wally/wiki/Linux-install#2-create-a-udev-rule-file
-
-# Teensy rules for the Ergodox EZ
-ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
-ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666"
-KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666"
-
-# STM32 rules for the Moonlander and Planck EZ
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu"
\ No newline at end of file
diff --git a/srcpkgs/wally-cli/template b/srcpkgs/wally-cli/template
index 3c70966e7b68..1d587dea670c 100644
--- a/srcpkgs/wally-cli/template
+++ b/srcpkgs/wally-cli/template
@@ -1,23 +1,21 @@
 # Template file for 'wally-cli'
 pkgname=wally-cli
 version=2.0.0
-revision=1
+revision=2
 wrksrc="wally-cli-${version}-linux"
 build_style=go
 go_import_path="github.com/zsa/wally-cli"
 hostmakedepends="pkg-config"
 makedepends="libusb-devel pkg-config go-bindata"
+depends="wally-udev"
 short_desc="Flashing firmware for ZSA keyboards"
 maintainer="Wayne Van Son <waynevanson@gmail.com>"
 license="MIT"
 homepage="https://www.zsa.io/wally/"
 distfiles="https://github.com/zsa/wally-cli/archive/${version}-linux.tar.gz"
-checksum="2641c7deededeeba1aecf6b3ae3e87050a0cfd81c8b41323b2304ebe21e61745"
-conf_files="/usr/lib/udev/rules.d/50-wally.rules"
-system_groups="plugdev"
+checksum=2641c7deededeeba1aecf6b3ae3e87050a0cfd81c8b41323b2304ebe21e61745
 
 post_install() {
 	# vendoring license is obsolete in the next release
 	vlicense "$FILESDIR/LICENSE"
-	vinstall "$FILESDIR/50-wally.rules" 0644 /usr/lib/udev/rules.d
 }

  parent reply	other threads:[~2021-05-15  1:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14 20:51 [PR PATCH] Wally cli 2.0.0 2 jcgruenhage
2021-05-14 21:07 ` [PR PATCH] [Updated] wally-cli: don't vendor udev rules jcgruenhage
2021-05-14 23:55 ` jcgruenhage
2021-05-15  1:55 ` jcgruenhage [this message]
2021-05-15  7:29 ` Gottox
2021-05-15  9:31 ` jcgruenhage
2021-05-15  9:37 ` Gottox
2021-05-15  9:40 ` Gottox
2021-05-15 10:27 ` jcgruenhage
2021-05-16  7:54 ` Gottox
2021-05-17  9:34 ` jcgruenhage
2021-05-27 10:56 ` Gottox
2021-05-27 10:57 ` Gottox
2021-10-14 22:19 ` [PR PATCH] [Closed]: " Piraty

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=20210515015546.zG75n3vNIgr1p8Zbkb3qU5j_A2gus2KU7GFV_pTJeZA@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).