#1092160 dh_doxygen should do nothing in nodoc build profile

Package:
doxygen
Source:
doxygen
Description:
Documentation system for C, C++, Java, Python and other languages
Submitter:
Nicholas Guriev
Date:
2025-11-30 07:07:02 UTC
Severity:
normal
#1092160#5
Date:
2025-01-05 13:46:58 UTC
From:
To:
Dear Maintainer,

My package depending on dh-sequence-doxygen is not built with "nodoc" build
profile because dh_installdocs skips an HTML generated documentation and
dh_doxygen does not see it then fails. Please turn the helper into no-op under
"nodoc" build profile (set either via DEB_BUILD_OPTIONS or DEB_BUILD_PROFILES).

$ DEB_BUILD_OPTIONS="nodoc" dpkg-buildpackage -b
...

   dh_doxygen -i
dh_doxygen: error: Doxygen documentation not found


The next workaround in d/rules can ignore the error.

ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
override_dh_doxygen:
endif

#1092160#10
Date:
2025-11-30 06:58:51 UTC
From:
To:
Hi Nicholas, and thanks for the suggestion. Can you please create a
Merge Request on salsa:
https://salsa.debian.org/debian/doxygen

... or provide a patch?

Thanks