Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#66267 - [openocd] Add udev rule support

Attached to Project: Community Packages
Opened by Sean Anderson (Forty-Bot) - Wednesday, 15 April 2020, 17:17 GMT
Last edited by Filipe Laíns (FFY00) - Wednesday, 15 April 2020, 21:41 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

From a4d3a96386cf8ad30fa41f3481a5a8592b0103bd Mon Sep 17 00:00:00 2001
From: Sean Anderson <seanga2@gmail.com>
Date: Wed, 15 Apr 2020 13:11:31 -0400
Subject: [PATCH] Add udev rule support

Without udev rules, openocd has to be run as root for many jtag adapters. By
installing the rules, jtag adapters may be used by normal users. The
GROUP assignment is removed, since plugdev does not exist on arch.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
---
trunk/PKGBUILD | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 2b06790..8de8f85 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -4,11 +4,12 @@
# Contributor: Matthias Bauch <matthias.bauch@gmail.com>
# Contributor: Laszlo Papp <djszapi2 at gmail com>
# Contributor: Samuel Tardieu <sam@rfc1149.net>
+# Contributor: Sean Anderson <seanga2@gmail.com>

pkgname=openocd
pkgver=0.10.0
epoch=1
-pkgrel=2
+pkgrel=3
pkgdesc='Debugging, in-system programming and boundary-scan testing for embedded target devices'
arch=('x86_64')
url='http://openocd.org'
@@ -23,6 +24,7 @@ sha512sums=('6c890c86c3339da49bd529e8674ca62bc7fce4a2a17798dcc5d70b4f7628b640d85

prepare() {
sed -i 's|ftdi_new();|(void*)12345;|g' $pkgname-$pkgver/configure{,.ac}
+ sed -i 's/ GROUP="[^"]*",//g' $pkgname-$pkgver/contrib/60-openocd.rules
}

build() {
@@ -43,5 +45,8 @@ package() {

make DESTDIR="$pkgdir" install

+ install -Dm 644 -t "$pkgdir/usr/lib/udev/rules.d/" contrib/60-openocd.rules
+ rm "$pkgdir/usr/share/openocd/contrib/60-openocd.rules"
+
cd "$pkgdir"/usr/share/openocd/scripts/target && mv 1986*.cfg 1986be1t.cfg
}
--
2.25.1

This task depends upon

Closed by  Filipe Laíns (FFY00)
Wednesday, 15 April 2020, 21:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  openocd 1:0.10.0-3

Loading...