On 28.07.2016 16:30, George Bateman wrote: > Hi, > > I'm packaging Processing (https://processing.org/), and I'm planning > to split it into three packages: processing, processing-doc, and > libprocessing3-java. I understand from > > that I'm supposed to create /usr/share/java/processing-core-3.1.1.jar > in libprocessing3-java. However, I don't understand how to satisfy the > line: > >> Some package must also provide a symbolic link from packagename-extraname.jar to the most compatible version of the available packagename-extraname-version.jar files. > > Clearly at the moment I could just package a symlink > /usr/share/java/processing-core.jar → > /usr/share/java/processing-core-3.1.1.jar, but what happens when I > package libprocessing4? How do I determine the "most compatible > version" of the library, and create only the correct symlink? > Hi, we recommend to use packaging helpers like javahelper, maven-repo-helper or maven-debian-helper that will do most of the work for you. For instance if you create a libprocessing3-java.jlibs file and edit it to point to your output jar file, javahelper will automatically install the jar and a unversioned symlink to /usr/share/java. Continue like that for every jar in your package. The intention is that other packages only need to reference the unversioned processing-core.jar to avoid upgrades of reverse-dependencies every time the processing-core package is updated. That's all. Regards, Markus
Attachment:
signature.asc
Description: OpenPGP digital signature