[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building with nodoc build profile



On Fri, 10 Oct 2025 17:54:47 +0200, Santiago Vila wrote:

I'd like to share this with you before announcing it widely:

Thanks.

After building the archive (unstable) using the "nodoc" build profile,

Thank you, this is an interesting inititative.

the following packages failed to build:
https://people.debian.org/~sanvila/build-logs/nodoc-20251010/
Sorted by maintainer, 244 out of 955 packages are maintained by
"Debian Perl Group".

Hu!

Could it be the case that some tool (like dh_perl) is misbehaving?

I checked the first couple of logs of "-perl" package; most failed in override_dh_installexamples, one in override_dh_installdocs, where we try, in debian/rules, to manipulate files in
/<<PKGBUILDDIR>>/debian/<PKG>/usr/share/doc/<PKG>/{,examples/}

(If yes, it would not make any sense to announce a MBF yet).

So this is not perl specific (or related to dh_perl); I guess that ~25% of the failures in your tests is caused by us having many packages :)

Having to guard all those actions with something like

override_dh_installexamples:
    ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
        # do something
    endif

sounds quite cumbersome.

For the nocheck profile this was solved in debhelper by not running {override-,}dh_auto_test if DEB_BUILD_OPTIONS=nocheck is set.

Maybe this can be done similarily for (at least) {override_,}dh_installexamples; {override_,}dh_installdocs is probably harder but this seems to be more of a niche case.


Cheers,
gregor

--
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
`-

Attachment: signature.asc
Description: Digital Signature


Reply to: