<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>154829</bug_id>
          
          <creation_ts>2011-02-16 19:30:11 +0000</creation_ts>
          <short_desc>[PATCH] devel/arduino: Eliminate references to legacy include</short_desc>
          <delta_ts>2011-03-24 00:30:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Ports &amp; Packages</product>
          <component>Individual Port(s)</component>
          <version>Latest</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Normal</priority>
          <bug_severity>Affects Only Me</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Craig Leres">leres</reporter>
          <assigned_to name="freebsd-ports-bugs (Nobody)">ports-bugs</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>599573</commentid>
    <comment_count>0</comment_count>
    <who name="Craig Leres">leres</who>
    <bug_when>2011-02-16 19:30:11 +0000</bug_when>
    <thetext>	The include file avr/delay.h in avr-libc 1.7.0 has been
	depreciated; the new include is util/delay.h. If you include
	avr/delay.h, a gcc warning is generated.

	This is true for the FreeBSD port version of arduino (0019)
	as well as the current released version (0022).

Fix: I have filed an upstream ticket:

	    http://code.google.com/p/arduino/issues/detail?id=480

	which I assume will be part of some future release &gt; 0022.

	The attached patch files are to be put in devel/arduino/files.
	They work work with both 0019 (current port version) and 0022
	(current released version).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1cI8cACgkQWxlAhAje3JuPwQCdEvxLIokz8lvnOZOy7q8TrJqm
s5AAn29Nxybj05M80v3yw4oc1qTZiOVJ
=nWk1
-----END PGP SIGNATURE-----

--------------010701030806060300050103
Content-Type: text/plain;
 name=&quot;patch-hardware-arduino-bootloaders-atmega8-ATmegaBOOT.c&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0=&quot;patch-hardware-arduino-bootloaders-atmega8-ATmegaBOOT.c&quot;

--------------010701030806060300050103
Content-Type: text/plain;
 name=&quot;patch-hardware-arduino-cores-arduino-wiring_private.h&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0=&quot;patch-hardware-arduino-cores-arduino-wiring_private.h&quot;



--------------010701030806060300050103
Content-Type: application/octet-stream;
 name=&quot;patch-hardware-arduino-bootloaders-atmega8-ATmegaBOOT.c.sig&quot;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*0=&quot;patch-hardware-arduino-bootloaders-atmega8-ATmegaBOOT.c.sig&quot;

iEYEABECAAYFAk1cI8cACgkQWxlAhAje3JuQkQCdFP1mvlcB/0glwfjNU9j9c7cuyYQAn0QL
X2nZ6IUDI8VW93AxFFJaNCMz
--------------010701030806060300050103
Content-Type: application/octet-stream;
 name=&quot;patch-hardware-arduino-cores-arduino-wiring_private.h.sig&quot;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*0=&quot;patch-hardware-arduino-cores-arduino-wiring_private.h.sig&quot;

iEYEABECAAYFAk1cI8cACgkQWxlAhAje3JsnkQCggJingpiG0KEmBsozg4PYpre6UwkAmgPT
/ndtJaOHb8Q3SUg5dYnGZQtr
--------------010701030806060300050103----2W61Mu9gYUILEPyDnefaFMY8LGnO1hUzsF3A5QMbcaR8rO43
Content-Type: text/plain; name=&quot;file.diff&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;file.diff&quot;

--- hardware/arduino/bootloaders/atmega8/ATmegaBOOT.c.orig	2010-09-20 08:54:44.000000000 -0700
+++ hardware/arduino/bootloaders/atmega8/ATmegaBOOT.c	2011-02-16 10:49:29.000000000 -0800
@@ -36,7 +36,7 @@
 #include &lt;avr/pgmspace.h&gt;
 #include &lt;avr/eeprom.h&gt;
 #include &lt;avr/interrupt.h&gt;
-#include &lt;avr/delay.h&gt;
+#include &lt;util/delay.h&gt;
 
 //#define F_CPU			16000000
 
How-To-Repeat: 	Try to build a sketch with -Werror turned on:

	    /usr/local/bin/avr-gcc -c -Werror -mmcu=atmega328p -DF_CPU=16000000
- -I. -I/usr/local/arduino/hardware/arduino/cores/arduino
- -I/usr/local/arduino -I/usr/local/arduino/local/libraries
- -I/usr/local/arduino/libraries/EEPROM -g -Os -w -Wall
- -ffunction-sections -fdata-sections -std=gnu99
/usr/local/arduino/hardware/arduino/cores/arduino/WInterrupts.c -o
build-cli/WInterrupts.o
	    In file included from
/usr/local/arduino/hardware/arduino/cores/arduino/wiring_private.h:30,
			     from
/usr/local/arduino/hardware/arduino/cores/arduino/WInterrupts.c:33:
	
/usr/local/lib/gcc/avr/4.3.4/../../../../avr/include/avr/delay.h:36:2:
error: #warning &quot;This file has been moved to &lt;util/delay.h&gt;.&quot;
	    gmake: *** [build-cli/WInterrupts.o] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599577</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Groothuis">edwin</who>
    <bug_when>2011-02-16 19:30:15 +0000</bug_when>
    <thetext>Maintainer of devel/arduino,

Please note that PR ports/154829 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/154829

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599574</commentid>
    <comment_count>2</comment_count>
    <who name="Edwin Groothuis">edwin</who>
    <bug_when>2011-02-16 19:30:18 +0000</bug_when>
    <thetext>State Changed
From-To: open-&gt;feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599578</commentid>
    <comment_count>3</comment_count>
    <who name="Warren Block">wblock</who>
    <bug_when>2011-02-20 00:12:31 +0000</bug_when>
    <thetext>On Wed, 16 Feb 2011, Edwin Groothuis wrote:

&gt; Maintainer of devel/arduino,
&gt;
&gt; Please note that PR ports/154829 has just been submitted.
&gt;
&gt; If it contains a patch for an upgrade, an enhancement or a bug fix
&gt; you agree on, reply to this email stating that you approve the patch
&gt; and a committer will take care of it.
&gt;
&gt; The full text of the PR can be found at:
&gt;    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/154829

Approved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599575</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Linimon">linimon</who>
    <bug_when>2011-02-20 04:13:03 +0000</bug_when>
    <thetext>State Changed
From-To: feedback-&gt;open

Maintainer approved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599579</commentid>
    <comment_count>5</comment_count>
    <who name="dfilter service">dfilter</who>
    <bug_when>2011-03-24 00:23:32 +0000</bug_when>
    <thetext>wen         2011-03-24 00:23:18 UTC

  FreeBSD ports repository

  Modified files:
    devel/arduino        Makefile distinfo 
  Added files:
    devel/arduino/files  
                         patch-hardware-arduino-bootloaders-atmega8-ATmegaBOOT.c 
                         patch-hardware-arduino-cores-arduino-wiring_private.h 
  Log:
  - Eliminate references to legacy includeEliminate references to legacy include
  
  PR:             ports/154829
  Submitted by:   Craig Leres &lt;leres@ee.lbl.gov&gt;
  Approved by:    maintainer
  
  Revision  Changes    Path
  1.3       +3 -0      ports/devel/arduino/Makefile
  1.3       +0 -1      ports/devel/arduino/distinfo
  1.1       +11 -0     ports/devel/arduino/files/patch-hardware-arduino-bootloaders-atmega8-ATmegaBOOT.c (new)
  1.1       +11 -0     ports/devel/arduino/files/patch-hardware-arduino-cores-arduino-wiring_private.h (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to &quot;cvs-all-unsubscribe@freebsd.org&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599576</commentid>
    <comment_count>6</comment_count>
    <who name="Wen Heping">wen</who>
    <bug_when>2011-03-24 00:26:33 +0000</bug_when>
    <thetext>State Changed
From-To: open-&gt;closed

Committed, with minor changes. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599580</commentid>
    <comment_count>7</comment_count>
    <who name="dfilter service">dfilter</who>
    <bug_when>2011-03-24 00:29:45 +0000</bug_when>
    <thetext>wen         2011-03-24 00:29:31 UTC

  FreeBSD ports repository

  Modified files:
    devel/arduino        Makefile distinfo pkg-descr pkg-plist 
  Log:
  - Eliminate references to legacy include
  
  PR:             ports/154829
  Submitted by:   Craig Leres &lt;leres@ee.lbl.gov&gt;
  Approved by:    maintainer
  
  Revision  Changes    Path
  1.4       +0 -0      ports/devel/arduino/Makefile
  1.4       +0 -0      ports/devel/arduino/distinfo
  1.2       +0 -0      ports/devel/arduino/pkg-descr
  1.3       +0 -0      ports/devel/arduino/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to &quot;cvs-all-unsubscribe@freebsd.org&quot;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>113308</attachid>
            <date>2011-02-16 19:30:11 +0000</date>
            <delta_ts>2011-02-16 19:30:11 +0000</delta_ts>
            <desc>file.diff</desc>
            <filename>file.diff</filename>
            <type>text/plain</type>
            <size>341</size>
            <attacher name="Craig Leres">leres</attacher>
            
              <data encoding="base64">LS0tIGhhcmR3YXJlL2FyZHVpbm8vY29yZXMvYXJkdWluby93aXJpbmdfcHJpdmF0ZS5oLm9yaWcJ
MjAxMC0wOS0yMCAwODo1NDo0NS4wMDAwMDAwMDAgLTA3MDAKKysrIGhhcmR3YXJlL2FyZHVpbm8v
Y29yZXMvYXJkdWluby93aXJpbmdfcHJpdmF0ZS5oCTIwMTEtMDItMTYgMTA6NTI6NTQuMDAwMDAw
MDAwIC0wODAwCkBAIC0yNyw3ICsyNyw3IEBACiAKICNpbmNsdWRlIDxhdnIvaW8uaD4KICNpbmNs
dWRlIDxhdnIvaW50ZXJydXB0Lmg+Ci0jaW5jbHVkZSA8YXZyL2RlbGF5Lmg+CisjaW5jbHVkZSA8
dXRpbC9kZWxheS5oPgogI2luY2x1ZGUgPHN0ZGlvLmg+CiAjaW5jbHVkZSA8c3RkYXJnLmg+CiA=
</data>

          </attachment>
      

    </bug>

</bugzilla>