Package Details: riscv-openocd-git v20180629.r2363.g9906763b8-1

Git Clone URL: https://aur.archlinux.org/riscv-openocd-git.git (read-only, click to copy)
Package Base: riscv-openocd-git
Description: Fork of OpenOCD that has RISC-V support
Upstream URL: https://github.com/riscv/riscv-openocd
Licenses: GPL
Submitter: Sequencer
Maintainer: None
Last Packager: pattop
Votes: 2
Popularity: 0.000000
First Submitted: 2019-06-25 08:54 (UTC)
Last Updated: 2022-06-05 22:55 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

pattop commented on 2026-04-25 00:57 (UTC)

I don't use this package any more, so have no way to test whether it's working correctly. I've disowned it, so you can fix it if you like.

gyscos commented on 2026-04-24 19:58 (UTC)

Hi! I think this package depends on jimtcl:

...
checking for jim.h... no
configure: error: jimtcl is required but not found via pkg-config and system includes
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'riscv-openocd-git-v20180629.r2363.g9906763b8-1': 
error: packages failed to build: riscv-openocd-git-v20180629.r2363.g9906763b8-1

pattop commented on 2022-04-12 22:48 (UTC)

Hi, this is a little bit broken at the moment:

  • pkgdatadir doesn't match between build & package steps (this means that the resultant openocd can't find it's configuration files)
  • man/info isn't installed (frustrating if this is your only openocd install)
  • prefix doesn't make much sense (this isn't riscv64 or linux or gnu specific, it's just a fork of openocd and still works for other architectures!)

Here's a patch which addresses these issues:

diff --git a/PKGBUILD b/PKGBUILD
index a4254df..c7603c4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,7 @@ depends=('libftdi' 'hidapi')
 makedepends=('git' 'automake>=1.11' 'autoconf' 'libtool')
 source=("$pkgname::git+https://github.com/riscv/riscv-openocd.git#branch=riscv")
 sha1sums=('SKIP')
+pkgdatadir="/usr/share/riscv-openocd"

 pkgver() {
   cd "$srcdir/$pkgname"
@@ -26,19 +27,21 @@ prepare() {
 build() {
   cd "$srcdir/$pkgname"

+  # rename info file so we don't clash with a normal openocd install
+  sed -i 's/openocd.info/riscv-openocd.info/' doc/openocd.texi
+
   ./bootstrap
   ./configure \
     --prefix=/usr \
-    --program-prefix=riscv64-linux-gnu- \
+    --program-prefix=riscv- \
     --disable-werror \
     --with-gnu-ld

-  make pkgdatadir="/usr/share/$pkgname"
+   make pkgdatadir="$pkgdatadir"
 }

 package() {
   cd "$srcdir/$pkgname"
-  make pkgdatadir="/usr/riscv64-linux-gnu/share/$pkgname" DESTDIR="$pkgdir" install
-  rm -r "$pkgdir/usr/share/info"
+  make pkgdatadir="$pkgdatadir" DESTDIR="$pkgdir" install
 }

yjun commented on 2020-12-17 04:48 (UTC)

autoconf libtool automake are already in base-devel package group, pls remove them from makedepends

Reference URL: https://wiki.archlinux.org/index.php/PKGBUILD#makedepends

Note: The group base-devel is assumed to be already installed when building with makepkg. Members of this group should not be included in makedepends array.