Package Details: openocd-git 0.12.0.r59.g0b6f53e94-1

Git Clone URL: https://aur.archlinux.org/openocd-git.git (read-only, click to copy)
Package Base: openocd-git
Description: Debugging, in-system programming and boundary-scan testing for embedded target devices (git version)
Upstream URL: http://openocd.org
Licenses: GPL
Conflicts: openocd
Provides: openocd
Submitter: veox
Maintainer: codyps (AndrevS, mdf, flaviut)
Last Packager: flaviut
Votes: 30
Popularity: 0.002960
First Submitted: 2012-12-30 00:55 (UTC)
Last Updated: 2023-02-03 14:35 (UTC)

Required by (13)

Sources (4)

Latest Comments

1 2 3 4 5 6 Next › Last »

arti commented on 2024-01-08 12:27 (UTC)

NB: openocd fails to compile when newest libgpiod is installed as it does not support the new libgpiod API. Fix is to configure with --disable-linuxgpiod or build without having libgpiod package installed.

arti commented on 2023-01-20 11:45 (UTC)

Looks like OpenOCD now requires external libjaylink in the depends array. Using the internal libjaylink is deprecated (--enable-internal-libjaylink).

justinkb commented on 2023-01-18 19:11 (UTC)

please fix the pkgver, now that 0.12.0 is released, my aur helper thinks 0.12.0.rc1 from the aur api is a higher version than 0.12.0.r40.g(commithash)

codyps commented on 2022-10-23 22:52 (UTC)

Thanks @flaviut, I've applied and pushed the diff you provided.

flaviut commented on 2022-10-23 17:38 (UTC)

There's been a git security update & the file paths in the package have been changed. The following patch is now needed to build this:

diff --git a/PKGBUILD b/PKGBUILD
index 812e534..58fafca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@

 _pkgbase=openocd
 pkgname=openocd-git
-pkgver=0.11.0.r584.g103b1d68d
+pkgver=0.12.0.rc1.r59.g92169e9f5
 pkgrel=1
 pkgdesc="Debugging, in-system programming and boundary-scan testing for embedded target devices (git version)"
 arch=('i686' 'x86_64' 'arm' 'aarch64')
@@ -88,9 +88,9 @@ prepare() {
   sed -i 's|GROUP="plugdev", ||g' contrib/60-openocd.rules
   git submodule init
   git config submodule.jimtcl.url "$srcdir/jimtcl"
-  git config submodule."src/jtag.drivers/libjaylink".url "$srcdir/libjaylink"
+  git config submodule."src/jtag/drivers/libjaylink".url "$srcdir/libjaylink"
   git config submodule."tools/git2cl".url "$srcdir/git2cl"
-  git submodule update
+  git -c protocol.file.allow=always submodule update
 }

 build() {

dale6998 commented on 2022-06-17 02:09 (UTC) (edited on 2022-06-17 02:11 (UTC) by dale6998)

Running into this linker error: Any thoughts? Just did a system upgrade as well.

LINK    jimsh
/usr/bin/ld: libjim.a: error adding symbols: archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:64: jimsh] Error 1
make[2]: Leaving directory '/home/dale/.aur_build/trizen-dale/openocd-git/src/openocd-git/jimtcl'
make[1]: *** [Makefile:4906: all-recursive] Error 1
make[1]: Leaving directory '/home/dale/.aur_build/trizen-dale/openocd-git/src/openocd-git'
make: *** [Makefile:2041: all] Error 2```

JasonP commented on 2022-02-12 12:33 (UTC)

Supplied udev rules make use of plugdev group, which doesn't exist on Arch Linux and most likely is an Ubuntu thing.

Package in community repo already takes care of this: https://github.com/archlinux/svntogit-community/blob/packages/openocd/trunk/PKGBUILD#L27

I suggest doing the same for this one.

JasonP commented on 2022-02-10 13:25 (UTC)

Both files are located here: https://repo.or.cz/openocd.git/tree/HEAD:/tcl/target

They belong to the repo for some years now. It could be that some underlying tool used for building the package doesn't support UTF-8 properly. I don't really know. Web browser seems to render fine those characters for instance.

waxar commented on 2021-12-18 05:39 (UTC)

While building, some warnings pop un in regards to Russian letters in filenames:

==> Creating package "openocd-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
: Can't translate pathname 'usr/share/openocd/scripts/target/1986ве1т.cfg' to UTF-8: Can't translate pathname 'usr/share/openocd/scripts/target/к1879xб1я.cfg' to UTF-8==> Leaving fakeroot environment.
==> Finished making: openocd-git 0.11.0.r542.gfdf17dba5-1 (Fri 17 Dec 2021 09:34:04 PM PST)
==> Cleaning up...

waxar commented on 2021-12-18 05:36 (UTC)

After building, installing and rebooting, this is what I encounter in the logs:

Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:7 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:14 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:17 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:20 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:23 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:26 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:28 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:31 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:34 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:35 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:38 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:41 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:43 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:46 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:49 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:52 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:53 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:56 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:59 Unknown group 'plugdev', ignoring
Dec 17 21:34:33 seny-arch systemd-udevd[240]: /usr/lib/udev/rules.d/60-openocd.rules:62 Unknown group 'plugdev', ignoring
...