Bug#734724: bossa-cli: Add Arduino patches

Karl Lenz xorangekiller at gmail.com
Thu Jan 9 12:24:12 UTC 2014


Package: bossa-cli
Version: 1.3~20120408-1
Severity: wishlist
Tags: patch

I wrote a makefile a little more than six months ago for compiling Arduino
projects on command line. I used it for a few of my own simple projects on both
my Arduino Uno R2 and Arduino Due R3. However, since the Arduino Due requires
the Arduino IDE 1.5.x, which was not in Debian at the time, I coded my makefile
to use the version from the binary Linux package provided on the Arduino
website. Since that package includes a pre-build toolchain, I used the version
of gcc and bossac that it provided as well. Now that Arduino IDE 1.5.4 is in
Experimental and gcc-arm-none-eabi ships a C++ compiler, I have been working on
modifying my makefile to use only the tools available in the Debian archive. As
of now I can successfully compile my projects using this new makefile, but I
can't upload any of them to the Arduino Due because the version of bossac in
Debian is missing some of the features and bugfixes found in the Arduino
version.

With that in mind, I took a look at both the upstream bossa git repository and
the git repository for the Arduino bossa fork. While the Arduino fork of bossa
on github appears to be based on a pretty old version of bossa, the diff
between the Arduino fork and the latest version of bossa in its git repository
is actually surprisingly manageable. Based on the complete diff I generated,
the commit history of both bossa versions, and a few hours spent familiarizing
myself with the bossa source code, I separated what I believe are the most
important parts of the Arduino bossa fork into a series of 5 diffs which apply
cleanly to both the Debian bossa source and the latest upstream code. Using
this patched version of bossac I can successfully upload my projects to the
Arduino Due. Would it be acceptable to either apply these patches to the Debian
bossa package or rebase the package on the Arduino bossa fork? A diff of the
changes I made to the current bossa package is attached. I appreciate your
consideration.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (400, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bossa-cli depends on:
ii  libc6         2.17-97
ii  libgcc1       1:4.8.2-10
ii  libreadline6  6.2+dfsg-0.1
ii  libstdc++6    4.8.2-10

bossa-cli recommends no packages.

bossa-cli suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bossa-arduino-patches.patch
Type: text/x-diff
Size: 10931 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20140109/6f91c9d3/attachment.patch>


More information about the debian-science-maintainers mailing list