Re: Building with nodoc build profile

gregor herrmann <[email protected]> Fri, 10 Oct 2025 21:24:41 +0200
Newsgroups gmane.linux.debian.devel.perl
Message-ID <[email protected]>
------------=_1760124286-10014-34
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

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
    `-   

------------=_1760124286-10014-34
Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: inline; filename="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: Digital Signature

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmjpXX5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgYlSg/+O5LKnIqaA2j7eyT9++FD3m5OUHtNhCtWF4cL6cYadTcReYpiGS3DM8sE
YmCcV32WvoN5aFe0B4z146HycYJHaKoLY2bGAe0xWuiGljwVUnIVV6L3rZ6NY7td
OCnOshrHznYucOIkeHC7kakzseKmeP6L9ZXBP+XRpmBWEpZLGVWU1i237a5nBvI7
VAodGNPcQuGrVTZExlcqy2rBBz7Z/XUliV/+01eBsH58tPq+v6l9mchOWq0Vqr1O
tIkXkruEo3mersEx5Z8T2Ws78n+h9ZRJIld0wIrBn7SVYPhpBGZURb7dS9qubwG4
VGUKnm7ExVTtJasExApi4gj43SQxA4zlWXXIymDUhWnC/IGTD705QN2StFvo5VeM
eunW2mO2NM1SDdH6byQimajnEvQbhyzNdAf+vI3N5TXhBqL6y6Zx+xv/rctmtaGx
4E+eIFYh8WjQQHtXKlgbrGG2vcXk+i1asPvV4wUmcYGPJe1h5SXDz6YSoUjAObrJ
UsbFeUDRmuv7sSh0NmJRUtdlo7u3OFkwVG55XD6fRjtdNyhs7bApIWLGtqvRG9as
1lKbWknwQCcFIoygWBhE4W1VID7WVpvOKpQHcTynQaOnZ37Ck4bL232L44C7g0+r
N1hp+ur3EG/80+U5sq5wo5FhcJPgw7uXtgi7T+5i6Vt1vRXX8v8=
=72yq
-----END PGP SIGNATURE-----

------------=_1760124286-10014-34--