
























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
Hi, this is a little bit broken at the moment:
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
}
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.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
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.