Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] i2c-tools: add udev rule and group
@ 2021-08-21 16:08 dkwo
  2021-08-25  9:48 ` dkwo
  2021-08-27 17:39 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 2 replies; 3+ messages in thread
From: dkwo @ 2021-08-21 16:08 UTC (permalink / raw)
  To: ml

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

There is a new pull request by dkwo against master on the void-packages repository

https://github.com/dkwo/void-packages i2c
https://github.com/void-linux/void-packages/pull/32615

i2c-tools: add udev rule and group
Fixes #29152

- [x] I generally don't use the affected packages but briefly tested this PR

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-i2c-32615.patch --]
[-- Type: text/x-diff, Size: 1578 bytes --]

From f24ea60f7541256acb3162cb5e67d0bfd364407a Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Sat, 21 Aug 2021 18:02:49 +0200
Subject: [PATCH] i2c-tools: add udev rule and group

---
 srcpkgs/i2c-tools/files/45-i2c-tools.rules | 2 ++
 srcpkgs/i2c-tools/template                 | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/i2c-tools/files/45-i2c-tools.rules

diff --git a/srcpkgs/i2c-tools/files/45-i2c-tools.rules b/srcpkgs/i2c-tools/files/45-i2c-tools.rules
new file mode 100644
index 000000000000..fd66f425ec94
--- /dev/null
+++ b/srcpkgs/i2c-tools/files/45-i2c-tools.rules
@@ -0,0 +1,2 @@
+# Assigns the i2c devices to group i2c, and gives that group RW access:
+KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
diff --git a/srcpkgs/i2c-tools/template b/srcpkgs/i2c-tools/template
index 0c15cdfd6ed8..8d730d0561ab 100644
--- a/srcpkgs/i2c-tools/template
+++ b/srcpkgs/i2c-tools/template
@@ -1,7 +1,7 @@
 # Template file for 'i2c-tools'
 pkgname=i2c-tools
 version=4.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_install_args="sbindir=/usr/bin"
 depends="perl"
@@ -11,6 +11,11 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/i2c-tools"
 distfiles="${DEBIAN_SITE}/main/i/${pkgname}/${pkgname}_${version}.orig.tar.xz"
 checksum=37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6
+system_groups="i2c"
+
+post_install() {
+	vinstall "${FILESDIR}/45-i2c-tools.rules" 644 usr/lib/udev/rules.d
+}
 
 i2c-tools-devel_package() {
 	short_desc+=" - development files"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i2c-tools: add udev rule and group
  2021-08-21 16:08 [PR PATCH] i2c-tools: add udev rule and group dkwo
@ 2021-08-25  9:48 ` dkwo
  2021-08-27 17:39 ` [PR PATCH] [Merged]: " ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: dkwo @ 2021-08-25  9:48 UTC (permalink / raw)
  To: ml

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

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/pull/32615#issuecomment-905350400

Comment:
ping @leahneukirchen for review :)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: i2c-tools: add udev rule and group
  2021-08-21 16:08 [PR PATCH] i2c-tools: add udev rule and group dkwo
  2021-08-25  9:48 ` dkwo
@ 2021-08-27 17:39 ` ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-08-27 17:39 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

i2c-tools: add udev rule and group
https://github.com/void-linux/void-packages/pull/32615

Description:
Fixes #29152

- [x] I generally don't use the affected packages but briefly tested this PR

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-27 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 16:08 [PR PATCH] i2c-tools: add udev rule and group dkwo
2021-08-25  9:48 ` dkwo
2021-08-27 17:39 ` [PR PATCH] [Merged]: " ericonr

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).