[urjtag] Add patch to fix FTBFS on ARMv7

Peter Robinson pbrobinson at fedoraproject.org
Tue Sep 16 15:56:15 UTC 2014


commit 87a2b7eb5aa199ae5338b6e734deafd5a070b891
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Tue Sep 16 16:56:04 2014 +0100

    Add patch to fix FTBFS on ARMv7

 urjtag-fixarm.patch |   11 +++++++++++
 urjtag.spec         |   10 ++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/urjtag-fixarm.patch b/urjtag-fixarm.patch
new file mode 100644
index 0000000..dce5a94
--- /dev/null
+++ b/urjtag-fixarm.patch
@@ -0,0 +1,11 @@
+--- urjtag-20111215-git-e1a4227/urjtag/src/cmd/cmd_bfin.c.orig	2014-09-16 16:28:04.803187159 +0100
++++ urjtag-20111215-git-e1a4227/urjtag/src/cmd/cmd_bfin.c	2014-09-16 16:28:30.823651190 +0100
+@@ -16,7 +16,7 @@
+  * 02111-1307, USA.
+  */
+ 
+-
++#define _SYS_UCONTEXT_H
+ #include "sysdep.h"
+ 
+ #include <stdio.h>
diff --git a/urjtag.spec b/urjtag.spec
index 3e6a95a..a728525 100644
--- a/urjtag.spec
+++ b/urjtag.spec
@@ -1,6 +1,6 @@
 Name:           urjtag
 Version:        0.10
-Release:        8%{?dist}.20111215gite1a4227
+Release:        9%{?dist}.20111215gite1a4227
 Summary:        A tool for communicating over JTAG with flash chips and CPUs
 Group:          Development/Tools
 
@@ -21,6 +21,7 @@ Source0:        urjtag-20111215-git-e1a4227.tar.bz2
 # Sent to the urjtag-development list on Jan 24, 2012:
 # http://sourceforge.net/mailarchive/forum.php?thread_name=1327375235-16426-1-git-send-email-scottt.tw%40gmail.com&forum_name=urjtag-development
 Patch0:         0001-svf-guard-against-chain-cable-being-NULL.patch
+Patch1:         urjtag-fixarm.patch
 
 # We do autoreconf for the git snapshot
 BuildRequires:  gettext-devel
@@ -29,7 +30,6 @@ BuildRequires:  readline-devel
 BuildRequires:  libftdi-devel
 BuildRequires:  swig
 BuildRequires:  python-devel
-ExcludeArch:    armv7hl
 
 %description
 UrJTAG aims to create an enhanced, modern tool for communicating
@@ -58,7 +58,7 @@ Python bindings and examples for %{name}.
 
 %prep
 %setup -q -n %{name}-20111215-git-e1a4227
-
+%patch1 -p1 -b .arm
 
 %build
 cd urjtag
@@ -69,7 +69,6 @@ make %{?_smp_mflags} V=1
 
 
 %install
-rm -rf %{buildroot}
 cd urjtag
 make install DESTDIR=%{buildroot}
 rm -f %{buildroot}%{_libdir}/*.la
@@ -108,6 +107,9 @@ rm -f %{buildroot}%{_libdir}/*.a
 
 
 %changelog
+* Tue Sep 16 2014 Peter Robinson <pbrobinson at fedoraproject.org> 0.10-9.20111215gite1a4227
+- Add patch to fix FTBFS on ARMv7
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10-8.20111215gite1a4227
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list