| 1 |
Organization of maintenance for src:arduino |
| 2 |
------------------------------------------- |
| 3 |
|
| 4 |
This package is maintained with git-buildpackage(1). |
| 5 |
|
| 6 |
It uses pristine-tar(1) to store enough information in git to generate bit |
| 7 |
identical tarballs when building the package without having downloaded an |
| 8 |
upstream tarball first. |
| 9 |
|
| 10 |
When working with patches it is recommended to use "gbp pq import" to |
| 11 |
import the patches, modify the source and then use "gbp pq export |
| 12 |
--commit" to commit the modifications. |
| 13 |
|
| 14 |
The changelog is generated using "gbp dch" so if you submit any changes |
| 15 |
don't bother to add changelog entries but rather provide a nice git commit |
| 16 |
message that can then end up in the changelog. |
| 17 |
|
| 18 |
It is recommended to build the package with pbuilder using: |
| 19 |
|
| 20 |
gbp builpackage --git-pbuilder |
| 21 |
|
| 22 |
For information on how to set up a pbuilder environment see the |
| 23 |
git-pbuilder(1) manpage. In short: |
| 24 |
|
| 25 |
DIST=sid git-pbuilder create |
| 26 |
gbp clone https://salsa.debian.org/electronics-team/arduino/arduino.git |
| 27 |
cd arduino |
| 28 |
gbp buildpackage --git-pbuilder |
| 29 |
|
| 30 |
|
| 31 |
Importing a new upstream version |
| 32 |
-------------------------------- |
| 33 |
|
| 34 |
To minimize workload and decrease possible mistakes the preferred way to |
| 35 |
import a new version is doing this by git-buildpackage and let d/gbp.conf |
| 36 |
control the whole import process. Importing a new version is done by |
| 37 |
|
| 38 |
gbp import orig --sign-tags [--verbose] /path/to/arduino-$version.tar.xz |
| 39 |
|
| 40 |
In case you need to modify the list of files or folders to exclude you can |
| 41 |
tune this by modifying the section [import-orig] in d/gbp.conf. Don't forget |
| 42 |
to also adjust d/copyright afterwards in case adjustments are needed. |
| 43 |
|
| 44 |
Once the new version is imported you will need to check the patch queue is |
| 45 |
applying or needs also adjustments. Also here git-buildpackage is helping |
| 46 |
with this task. |
| 47 |
|
| 48 |
gbp pq import [--time-machine=x] |
| 49 |
|
| 50 |
In case the upstream changes are small git will discover the changes and will |
| 51 |
apply the patch from the queue. Depending on the upstream changes you will |
| 52 |
need to use the option '--time-machine=' so git-buildpackage will apply the |
| 53 |
patch queue to an older version from there you can use the rebase option. |
| 54 |
In case '--time-machine=' was needed to get used you need to rebase the |
| 55 |
patch-queue branch against the version in your packaging branch which is |
| 56 |
mostly debian/sid (or debian/experimental). |
| 57 |
|
| 58 |
git rebase debian/sid |
| 59 |
|
| 60 |
As usual you need to fix any rebasing issue if pop up. Once finished you |
| 61 |
can export back the patch queue. |
| 62 |
|
| 63 |
gbp pq export |
| 64 |
|
| 65 |
This will switch back to your working packaging branch and also creates all |
| 66 |
files and folder under debian/patches/. Review the changes and commit your |
| 67 |
work, please explain in the commit message what's new or what did change in |
| 68 |
the patch queue. This will help later preparing the d/changelog entry! |
| 69 |
|
| 70 |
|
| 71 |
Using of Debian packaged Java libraries, linking to packaged libraries |
| 72 |
---------------------------------------------------------------------- |
| 73 |
|
| 74 |
As the Arduino IDE is an Java application it is requiring the availability of |
| 75 |
the required libraries. Upstream is shipping them prebuilt and bundled within |
| 76 |
the lib/ folder. |
| 77 |
Debian can't use and pick them as there is no source available in the source |
| 78 |
tarball from there the libraries could be rebuilt. Thus all these files are |
| 79 |
getting cleaned out while import the source. But there is no need to rebuild |
| 80 |
all the various libraries, all the used libs are available within the Debian |
| 81 |
main archive. To get them usable all the required libraries need to get |
| 82 |
linked back into the lib/ folder while the build process of the package. |
| 83 |
This is done within the linking sequencer file 'arduino.links'. |
| 84 |
|
| 85 |
To add such a linking you need to do some things to get the chain working. |
| 86 |
|
| 87 |
1. Have a look at the .jar files within the lib/ folder of the upstream |
| 88 |
tarball. |
| 89 |
2. Search the Debian package which is providing the used Java library. |
| 90 |
3. Add an entry for the library to arduino.links it will get linked. |
| 91 |
Note! Don't use any versioned files, remove the version suffix from the |
| 92 |
upstream file name. |
| 93 |
Example: 'batik-1.8.jar' becomes 'batik.jar' |
| 94 |
4. Check if the Depends field for the package arduino in debian/control needs |
| 95 |
an addition of the package that is providing the Java library you've |
| 96 |
added. Keep new added packages in d/control please in alphabetical order! |
| 97 |
|
| 98 |
There are small exceptions between used upstream Java libraries and by Debian |
| 99 |
provided and used libraries! For the follow libraries upstream is using |
| 100 |
different or other versions. |
| 101 |
|
| 102 |
Upstream version | Debian version |
| 103 |
---------------------+--------------- |
| 104 |
bcpg-jdk15on-*.jar | bcpg-*.jar |
| 105 |
bcprov-jdk15on-*.jar | bcprov-*.jar |
| 106 |
jssc-*-arduino4.jar | jssc.jar |
| 107 |
|
| 108 |
The first two libraries working fine with the IDE, from the modified jssc |
| 109 |
library is no source available so it can't get rebuilt nor do we know what |
| 110 |
Arduino LCC has modified. |