[arduino/f17: 3/3] define __AVR_LIBC_DEPRECATED_ENABLE__ (bug 891556)

T.C. Hollingsworth patches at fedoraproject.org
Fri Feb 1 23:15:48 UTC 2013


commit 987f7ca39e9bbe5003870f64a0684b539ec38ac1
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Fri Feb 1 15:50:51 2013 -0700

    define __AVR_LIBC_DEPRECATED_ENABLE__ (bug 891556)

 arduino-bug891556.patch |   11 +++++++++++
 arduino.spec            |   10 +++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/arduino-bug891556.patch b/arduino-bug891556.patch
new file mode 100644
index 0000000..8545bf8
--- /dev/null
+++ b/arduino-bug891556.patch
@@ -0,0 +1,11 @@
+--- arduino-1.0.1/hardware/arduino/cores/arduino/Arduino.h~	2012-01-02 12:16:04.000000000 -0700
++++ arduino-1.0.1/hardware/arduino/cores/arduino/Arduino.h	2013-01-22 02:58:28.659137703 -0700
+@@ -1,6 +1,8 @@
+ #ifndef Arduino_h
+ #define Arduino_h
+ 
++#define __AVR_LIBC_DEPRECATED_ENABLE__ 1
++
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
diff --git a/arduino.spec b/arduino.spec
index 723d351..fce3033 100644
--- a/arduino.spec
+++ b/arduino.spec
@@ -1,7 +1,7 @@
 Name:		arduino
 Epoch:		1
 Version:	1.0.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	An IDE for Arduino-compatible electronics prototyping platforms
 Group:		Development/Tools
 License:	GPLv2+ and LGPLv2+ and CC-BY-SA
@@ -26,6 +26,10 @@ Patch4:		arduino-icons-etc.patch
 
 Patch6:		arduino-add-to-groups.patch
 
+# define __AVR_LIBC_DEPRECATED_ENABLE__ (bug 891556)
+# temporary; this has been fixed in newer upstreams
+Patch8:     arduino-bug891556.patch
+
 BuildRequires:	java-devel >= 1:1.6.0 jpackage-utils ant ant-apache-regexp desktop-file-utils ecj jna rxtx git
 Requires:	%{name}-core = %{epoch}:%{version}-%{release}, %{name}-doc = %{epoch}:%{version}-%{release}
 Requires:	java >= 1:1.6.0 xorg-x11-fonts-Type1 ecj jna rxtx
@@ -82,6 +86,7 @@ chmod a+rx build/linux/%{name}-add-groups
 %patch0
 %patch3 -p1
 %patch7 -p1
+%patch8 -p1
 
 echo -e "\n# By default, don't notify the user of a new upstream version." \
         "\n# https://bugzilla.redhat.com/show_bug.cgi?id=773519" \
@@ -191,6 +196,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Feb 01 2013 T.C. Hollingsworth <tchollingsworth at gmail.com>
+- define __AVR_LIBC_DEPRECATED_ENABLE__ (bug 891556)
+
 * Sun Jul 22 2012 Peter Oliver <rpm at mavit.org.uk> - 1:1.0.1-1
 - Update to 1.0.1.
 - Compress source with xz.


More information about the scm-commits mailing list