sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.59k stars 439 forks source link

The paths in the conffile are relative when doing Debian/packageBin with JDebPackaging plugin #1460

Open gothug opened 3 years ago

gothug commented 3 years ago

Expected: conffile will have a path to config with absolute path: /usr/share/[package]/data/conf/[file]

In fact: conffile has a path without leading slash: usr/share/[package]/data/conf/[file]

This is occurring when using sbt-native-packager=1.9.4 and jdeb=1.9 (org.vafer) with sbt=1.5.5

From my investigations the absolute paths in conffiles are required (i.e. lintian tool for checking deb packages considers it to be an error if relative paths are in conffile).

What is interesting, I tried other versions of jdeb with the latest version of sbt-native-packager (1.9.4) and got the following results:

So, the correct behaviour for sbt-native-packager=1.9.4 is only with jdeb=1.3 and jdeb=1.6