From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 16 19:10:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 298111065674 for ; Fri, 16 Mar 2012 19:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F25A88FC0A for ; Fri, 16 Mar 2012 19:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2GJA1aZ066827 for ; Fri, 16 Mar 2012 19:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2GJA1i4066826; Fri, 16 Mar 2012 19:10:01 GMT (envelope-from gnats) Resent-Date: Fri, 16 Mar 2012 19:10:01 GMT Resent-Message-Id: <201203161910.q2GJA1i4066826@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Craig Leres Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5EB03106566C for ; Fri, 16 Mar 2012 19:05:16 +0000 (UTC) (envelope-from leres@ee.lbl.gov) Received: from fun.ee.lbl.gov (fun.ee.lbl.gov [IPv6:2620:83:8000:102::ca]) by mx1.freebsd.org (Postfix) with ESMTP id 442C18FC14 for ; Fri, 16 Mar 2012 19:05:16 +0000 (UTC) Received: from ice.ee.lbl.gov (ice.ee.lbl.gov [131.243.2.213]) (authenticated bits=0) by fun.ee.lbl.gov (8.14.5/8.14.5) with ESMTP id q2GJ5FDK039916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 16 Mar 2012 12:05:15 -0700 (PDT) Received: from ice.ee.lbl.gov (localhost [127.0.0.1]) by ice.ee.lbl.gov (8.14.5/8.14.5) with ESMTP id q2GJ40hN079691; Fri, 16 Mar 2012 12:04:00 -0700 (PDT) Received: (from leres@localhost) by ice.ee.lbl.gov (8.14.5/8.14.5/Submit) id q2GJ40vZ079690; Fri, 16 Mar 2012 12:04:00 -0700 (PDT) Message-Id: <201203161904.q2GJ40vZ079690@ice.ee.lbl.gov> Date: Fri, 16 Mar 2012 12:04:00 -0700 (PDT) From: Craig Leres To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: leres@ee.lbl.gov Subject: ports/166183: [PATCH] devel/arduino update to work with avr-libc 1.8.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Craig Leres List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 19:10:02 -0000 >Number: 166183 >Category: ports >Synopsis: [PATCH] devel/arduino update to work with avr-libc 1.8.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 16 19:10:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Craig Leres >Release: FreeBSD 8.2-RELEASE amd64 >Organization: Lawrence Berkeley National Laboratory >Environment: System: FreeBSD ice.ee.lbl.gov 8.2-RELEASE FreeBSD 8.2-RELEASE #9 r33: Wed Sep 21 19:41:19 PDT 2011 leres@hot.ee.lbl.gov:/usr/src/8.2-RELEASE/sys/amd64/compile/LBLIPV6 amd64 >Description: avr-libc 1.8.0 changed the way prog_char/PROGMEM works and this breaks hardware/arduino/cores/arduino/Print.cpp >How-To-Repeat: /usr/local/arduino/hardware/arduino/cores/arduino/Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)': /usr/local/arduino/hardware/arduino/cores/arduino/Print.cpp:44:9: error: 'prog_char' does not name a type /usr/local/arduino/hardware/arduino/cores/arduino/Print.cpp:47:23: error: 'p' was not declared in this scope gmake: *** [build-cli/Print.o] Error 1 >Fix: Two patches are attached; patch-Makefile bumps PORTREVISION and patch-hardware-arduino-cores-arduino-Print.cpp should be placed in the files directory. --- patch-Makefile begins here --- --- Makefile.orig 2012-03-16 11:28:36.000000000 -0700 +++ Makefile 2012-03-16 11:22:48.000000000 -0700 @@ -5,7 +5,7 @@ PORTNAME= arduino PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= devel java lang MASTER_SITES= GOOGLE_CODE --- patch-Makefile ends here --- --- patch-hardware-arduino-cores-arduino-Print.cpp begins here --- --- hardware/arduino/cores/arduino/Print.cpp.orig 2012-03-16 11:16:23.000000000 -0700 +++ hardware/arduino/cores/arduino/Print.cpp 2012-03-16 11:17:17.000000000 -0700 @@ -41,7 +41,7 @@ size_t Print::print(const __FlashStringHelper *ifsh) { - const prog_char *p = (const prog_char *)ifsh; + const char PROGMEM *p = (const char PROGMEM *)ifsh; size_t n = 0; while (1) { unsigned char c = pgm_read_byte(p++); --- patch-hardware-arduino-cores-arduino-Print.cpp ends here --- >Release-Note: >Audit-Trail: >Unformatted: