Bug#802580: arduino-mk: fails to parse certain boards.txt files
Ssn Kleinmann
ssn at kleinmann.com
Wed Oct 21 11:51:50 UTC 2015
Package: arduino-mk
Version: 1.5-2
Severity: normal
Tags: upstream patch
Dear Maintainer,
I am using some boards from Adafruit, so I downloaded their
boards.txt file from github
(https://github.com/adafruit/Adafruit_Arduino_Boards).
This file contains some sections for similarly named boards:
e.g., 'trinket3' and 'protrinket3'.
The Arduino.mk file defines a variable, PARSE_BOARD, which parses
the boards.txt file. However, PARSE_BOARD does not match the
board name at the *beginning of the line*. Consequently, it treats
all of the lines for 'trinket3' and 'protrinket3' as one large
stanza, and therefore erroneously gets multiple values for some
parameters, e.g., mcu or maximum_size.
The attached patch fixes this.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages arduino-mk depends on:
ii arduino-core 2:1.0.5+dfsg2-4
ii make 4.0-8.2
ii python 2.7.9-1
ii python-serial 2.7-1
Versions of packages arduino-mk recommends:
ii screen 4.3.1-2
arduino-mk suggests no packages.
-- no debconf information
-------------- next part --------------
563c563
< PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT) | grep $(1).$(2)= | cut -d = -f 2 )
---
> PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT) | grep -e "^$(1).$(2)=" | cut -d = -f 2 )
1215a1216
More information about the debian-science-maintainers
mailing list