55changelog-file-missing-in-native-package
66
77# we intentionally copy our copyright file for all deb packages
8- copyright-file-contains-full-apache-2-license
9- copyright-not-using-common-license-for-apache2
108copyright-without-copyright-notice
119
1210# we still put all our files under /usr/share/elasticsearch even after transition to platform dependent packages
@@ -16,37 +14,23 @@ arch-dependent-file-in-usr-share
1614missing-dep-on-jarwrapper
1715
1816# we prefer to not make our config and log files world readable
19- non-standard-file-perm etc/default/elasticsearch 0660 != 0644
20- non-standard-dir-perm etc/elasticsearch/ 2750 != 0755
21- non-standard-dir-perm etc/elasticsearch/jvm.options.d/ 2750 != 0755
22- non-standard-file-perm etc/elasticsearch/*
23- non-standard-dir-perm var/lib/elasticsearch/ 2750 != 0755
24- non-standard-dir-perm var/log/elasticsearch/ 2750 != 0755
25-
26- # this lintian tag is simply wrong; contrary to the explanation, Debian systemd
27- # does actually look at /usr/lib/systemd/system
28- systemd-service-file-outside-lib usr/lib/systemd/system/elasticsearch.service
17+ non-standard-file-perm 0660 != 0644 [etc/default/elasticsearch]
18+ non-standard-dir-perm 2750 != 0755 [etc/elasticsearch/]
19+ non-standard-dir-perm 2750 != 0755 [etc/elasticsearch/jvm.options.d/]
20+ non-standard-file-perm 0660 != 0644 [etc/elasticsearch/*]
21+ non-standard-dir-perm 2750 != 0755 [var/lib/elasticsearch/]
22+ non-standard-dir-perm 2750 != 0755 [var/log/elasticsearch/]
2923
3024# the package scripts handle systemd directly and don't need to use deb helpers
3125maintainer-script-calls-systemctl
3226
3327# bundled JDK
3428embedded-library
35- unstripped-binary-or-object usr/share/elasticsearch/jdk/*
36- extra-license-file usr/share/elasticsearch/jdk/legal/*
37- hardening-no-pie usr/share/elasticsearch/jdk/bin/*
38- hardening-no-pie usr/share/elasticsearch/jdk/lib/*
29+ unstripped-binary-or-object [usr/share/elasticsearch/jdk/*]
3930
4031# the system java version that lintian assumes is far behind what elasticsearch uses
4132unknown-java-class-version
4233
43- # elastic licensed modules contain elastic license
44- extra-license-file usr/share/elasticsearch/modules/*
45-
46- # This dependency appears to have a packaging flaw, and includes a
47- # generated source file alongside the compiled version
48- jar-contains-source usr/share/elasticsearch/modules/repository-gcs/api-common*.jar *
49-
5034# There's no `License` field in Debian control files, but earlier versions
5135# of `lintian` were more permissive. Override this warning so that we can
5236# run `lintian` on different releases of Debian. The format of this override
@@ -58,8 +42,27 @@ unknown-field License
5842# indirectly to libc via libdl. This might not be best practice but we
5943# don't build them ourselves and the license precludes us modifying them
6044# to fix this.
61- library-not-linked-against-libc usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/lib/libmkl_*.so
45+ library-not-linked-against-libc [usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/lib/libmkl_*.so*]
46+
47+
48+ # Below is the copy of some of the above rules in format for Lintian versions <= 2.104 (Debian 11)
49+ # Override syntax changes between Lintian versions in a non-backwards compatible way, so we handle it with
50+ # duplication and ignoring some issues in the test code.
51+
52+
53+ # we prefer to not make our config and log files world readable
54+ non-standard-file-perm etc/default/elasticsearch 0660 != 0644
55+ non-standard-dir-perm etc/elasticsearch/ 2750 != 0755
56+ non-standard-dir-perm etc/elasticsearch/jvm.options.d/ 2750 != 0755
57+ non-standard-file-perm etc/elasticsearch/*
58+ non-standard-dir-perm var/lib/elasticsearch/ 2750 != 0755
59+ non-standard-dir-perm var/log/elasticsearch/ 2750 != 0755
6260
63- # shared-lib-without-dependency-information (now shared-library-lacks-prerequisites) is falsely reported for libvec.so
64- # which has no dependencies (not even libc) besides the symbols in the base executable.
65- shared-lib-without-dependency-information usr/share/elasticsearch/lib/platform/linux-x64/libvec.so
61+ # bundled JDK
62+ unstripped-binary-or-object usr/share/elasticsearch/jdk/*
63+
64+ # Intel MKL libraries are not linked directly to libc. They are linked
65+ # indirectly to libc via libdl. This might not be best practice but we
66+ # don't build them ourselves and the license precludes us modifying them
67+ # to fix this.
68+ library-not-linked-against-libc usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/lib/libmkl_*.so*
0 commit comments