[arch-commits] Commit in urjtag/repos (3 files)

Filipe Laíns ffy00 at archlinux.org
Fri Nov 13 17:01:20 UTC 2020


    Date: Friday, November 13, 2020 @ 17:01:19
  Author: ffy00
Revision: 753922

archrelease: copy trunk to community-staging-x86_64

Added:
  urjtag/repos/community-staging-x86_64/
  urjtag/repos/community-staging-x86_64/PKGBUILD
    (from rev 753921, urjtag/trunk/PKGBUILD)
  urjtag/repos/community-staging-x86_64/fix-gcc-10.patch
    (from rev 753921, urjtag/trunk/fix-gcc-10.patch)

------------------+
 PKGBUILD         |   43 +++++++++++++++++++++++++++++++++++++++++++
 fix-gcc-10.patch |   25 +++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

Copied: urjtag/repos/community-staging-x86_64/PKGBUILD (from rev 753921, urjtag/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-13 17:01:19 UTC (rev 753922)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=urjtag
+pkgver=2019.12
+pkgrel=2
+pkgdesc='Enhanced, modern tool for communicating over JTAG with flash chips, CPUs, and many more'
+arch=('x86_64')
+url='http://openocd.org'
+license=('GPL')
+depends=('libftdi-compat' 'libusb-compat')
+makedepends=('python')
+optdepends=('python: Python bindings')
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
+        'fix-gcc-10.patch')
+sha512sums=('e149e53410a6591bdadc2c0138c6f81dac0fd6e35601461e19d356decdb820ec8e6bd53d59a1fd9781dfa1fee88d23dcafbd8df9adc0f8e51256c626d2ee0f36'
+            'a36dd96453e0da225f1974f44fa42e35d9abb6979657457d7f4dd25f8112092085b3520ad3ed4868a194f6628db985df4eaf44232247cbe03f5fbc2fb79e2727')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  patch -p2 -i ../fix-gcc-10.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  autoreconf -vif
+
+  ./configure \
+        --prefix=/usr \
+        --enable-svf \
+        --enable-bsdl \
+        --enable-stapl \
+        --enable-python
+
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+}

Copied: urjtag/repos/community-staging-x86_64/fix-gcc-10.patch (from rev 753921, urjtag/trunk/fix-gcc-10.patch)
===================================================================
--- community-staging-x86_64/fix-gcc-10.patch	                        (rev 0)
+++ community-staging-x86_64/fix-gcc-10.patch	2020-11-13 17:01:19 UTC (rev 753922)
@@ -0,0 +1,25 @@
+commit d4c97a8110dc6e5671b30dd06cdcd31b1833554e
+Author: Dan Horák <dan at danny.cz>
+Date:   Thu Feb 13 16:49:39 2020 +0100
+
+    fix UrjtagError declaration
+
+    Fix build with GCC 10 new default.
+
+    References:
+      https://gcc.gnu.org/gcc-10/porting_to.html#common
+      https://bugzilla.redhat.com/show_bug.cgi?id=1793499
+
+diff --git a/urjtag/bindings/python/py_urjtag.h b/urjtag/bindings/python/py_urjtag.h
+index 38582ebb..16b120d8 100644
+--- a/urjtag/bindings/python/py_urjtag.h
++++ b/urjtag/bindings/python/py_urjtag.h
+@@ -35,7 +35,7 @@ struct urj_pyregister
+ extern PyTypeObject urj_pyregister_Type;
+
+ extern PyObject *urj_py_chkret (int rc);
+-PyObject *UrjtagError;
++extern PyObject *UrjtagError;
+
+ extern int urj_pyc_precheck (urj_chain_t *urc, int checks_needed);
+ #define UPRC_CBL 1



More information about the arch-commits mailing list