5
5
changelog-file-missing-in-native-package
6
6
7
7
# 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
10
8
copyright-without-copyright-notice
11
9
12
10
# 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
16
14
missing-dep-on-jarwrapper
17
15
18
16
# 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/]
29
23
30
24
# the package scripts handle systemd directly and don't need to use deb helpers
31
25
maintainer-script-calls-systemctl
32
26
33
27
# bundled JDK
34
28
embedded-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/*]
39
30
40
31
# the system java version that lintian assumes is far behind what elasticsearch uses
41
32
unknown-java-class-version
42
33
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
-
50
34
# There's no `License` field in Debian control files, but earlier versions
51
35
# of `lintian` were more permissive. Override this warning so that we can
52
36
# run `lintian` on different releases of Debian. The format of this override
@@ -58,8 +42,27 @@ unknown-field License
58
42
# indirectly to libc via libdl. This might not be best practice but we
59
43
# don't build them ourselves and the license precludes us modifying them
60
44
# 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
62
60
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