Description: Fix Makefile compatibility
 Change Fedora specific Makefile values to work on Ubuntu.
 These include:
 * MANPAGEXSL path 
 * Python 3 coverage call to use "python3-coverage" instead of "coverage"
 * Skip linting by default as it is not needed for builds

Author: Simon Johnsson <simon.johnsson@canonical.com>
---
Forwarded: not-needed
Last-Update: 2026-02-18

--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,9 @@ DIFFTOOL?=meld
 ASCIIDOC?=asciidoc
 XSLTPROC?=xsltproc
 ifneq ("$(wildcard /usr/lib/python*/*/asciidoc/resources/docbook-xsl/manpage.xsl)","")
-MANPAGEXSL?=$(wildcard /usr/lib/python*/*/asciidoc/resources/docbook-xsl/manpage.xsl)
+	MANPAGEXSL?=$(wildcard /usr/lib/python*/*/asciidoc/resources/docbook-xsl/manpage.xsl)
 else
-MANPAGEXSL?=/usr/share/asciidoc/docbook-xsl/manpage.xsl
+	MANPAGEXSL?=/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
 endif
 
 all: build
@@ -117,14 +117,14 @@ covtest: #doctest unittest
 	@# FIXME: only covers python/cryptopolicies/ files so far
 	@# NOTE: doesn't grasp ternaries and short-circuiting operators
 	# Don't trust coverage testing
-	PYTHONPATH=. coverage run --source python/cryptopolicies/ --branch -m pytest -vv --doctest-modules python/
-	PYTHONPATH=. coverage run --append --source python/cryptopolicies/ --branch -m pytest -vv tests/unit/
-	coverage report --fail-under=100
+	PYTHONPATH=. python3-coverage run --source python/cryptopolicies/ --branch -m pytest -vv --doctest-modules python/
+	PYTHONPATH=. python3-coverage run --append --source python/cryptopolicies/ --branch -m pytest -vv tests/unit/
+	python3-coverage report --fail-under=100
 
 test: doctest unittest check check-alternatives
-ifndef SKIP_LINTING
-test: covtest runruff runcodespell runflake8 runpylint
-endif
+# ifndef SKIP_LINTING
+# test: covtest runruff runcodespell runflake8 runpylint
+# endif
 
 reset-outputs:
 	@rm -rf tests/outputs/*
