6 Commits

Author SHA1 Message Date
Emil Velikov
6091dae925 Enable sanitizers in build-dev.ini
With the sanitizers supported in both gcc + clang and all the issues
resolved, let's enable them via build-dev.ini.

This means, developers will see any issues OOTB without having to run
through the CI.

As a nice bonus, let's re-enable them for ubuntu:22.04 - it should be
working fine now.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/172
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-10-18 13:22:11 -05:00
Emil Velikov
f2c7b08c3b ci: add SPDX copyright/license identifiers
To make it clear and explicit on the topic. Inspired by me reusing some
of those for usbutils and reuse-tool [1] flagging the lack of proper
attribution.

[1] https://github.com/fsfe/reuse-tool

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/145
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-22 17:34:56 -05:00
Emil Velikov
844b019e3a meson: make all warnings fatal on ci/developer builds
Aka "-D werror=true", so we catch as many issues as possible in
automated manner.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/110
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-07 01:31:44 -05:00
Emil Velikov
01bea70795 ci: build: add docs in ci/developer builds
To make it a little bit more obvious that those should be updated as
well...

On Alpine it fails (as below), so we've disabled it for now.

When gtkdoc-mkhtml calls xsltproc, the latter throws dozens of errors and
fails to produce the libkmod.devhelp2 file. Which meson tries to move
and fails.

  Error: no ID for constraint linkend: "int"

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/94
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-06 14:39:06 -05:00
Lucas De Marchi
618cba5fb2 meson: Add build-tests to build-dev.ini
Developers are supposed to run tests to test their code.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/104
2024-09-06 14:36:20 -05:00
Emil Velikov
36d627335e meson: build-dev.ini file
Functionally identical to the autogen.sh c options. This allows devs
(and upcoming CI) to make use of a pre-defined set.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-03 12:01:21 -05:00