You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sbt debian:packageBin should set meta "config" flag (in linuxPackageMappings) for all config files (i.e. those under "conf" directory) so they will be put in debian conffiles (and for other usages of the flag). Obviously the permission of files should not affect this.
Actual behaviour
sbt debian:packageBin will not put files under "conf" directory if they have execute permission set. So the conffiles does not contain them and this will cause problem when using that deb for upgrade purposes. This problem specially will occur when using Windows platform to generate packages (by using JDeb for example) because Windows has no notion of that permissions and by default all files are "777".
The issue is because of this line. The files are categorized sequentially in "executable", "doc", ... . But the order is wrong. Any file under conf should not be executable.
Information
What sbt-native-packager are you using
v1.8.0-RC14
What sbt version
What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
Ubuntu and Windows (but issue is generic)
What package are you building (e.g. docker, rpm, ...)
debian
What version has your build tool (find out with e.g. rpm --version)
dpkg 1.17.5
What is your target system (e.g. Ubuntu 16.04, CentOS 7)
Debian
The text was updated successfully, but these errors were encountered:
Expected behaviour
sbt debian:packageBin
should set meta "config" flag (inlinuxPackageMappings
) for all config files (i.e. those under "conf" directory) so they will be put in debian conffiles (and for other usages of the flag). Obviously the permission of files should not affect this.Actual behaviour
sbt debian:packageBin
will not put files under "conf" directory if they have execute permission set. So the conffiles does not contain them and this will cause problem when using that deb for upgrade purposes. This problem specially will occur when using Windows platform to generate packages (by using JDeb for example) because Windows has no notion of that permissions and by default all files are "777".The issue is because of this line. The files are categorized sequentially in "executable", "doc", ... . But the order is wrong. Any file under conf should not be executable.
Information
What sbt-native-packager are you using
v1.8.0-RC14
What sbt version
What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
Ubuntu and Windows (but issue is generic)
What package are you building (e.g. docker, rpm, ...)
debian
What version has your build tool (find out with e.g.
rpm --version
)dpkg 1.17.5
What is your target system (e.g. Ubuntu 16.04, CentOS 7)
Debian
The text was updated successfully, but these errors were encountered: