Thread View: linux.debian.devel
3 messages
3 total messages
Started by Ben Finney
Fri, 06 Nov 2026 04:30
Re: Interrogate PyBuild for build directory of *only* the current Python interpreter version
Author: Ben Finney
Date: Fri, 06 Nov 2026 04:30
Date: Fri, 06 Nov 2026 04:30
84 lines
5288 bytes
5288 bytes
Howdy all,
What is (the?) recommended way to have DebHelper build, from one source
package, a collection of binary packages including a documentation
binary package, all of which have the “main package” for their
documentation?
Debian Policy §12.3 says, of “Additional documentation”:
If the documentation is packaged separately, as package-doc for
example […] installing the documentation into the documentation
directory of the main package is encouraged since it is independent
of the packaging method and will be easier for users to find.
For a hypothetical source package ‘foo’ that builds binary packages:
* ‘foo’, that installs a program of that name
* ‘libfoo42’, that installs the run-time library
* ‘foo-doc’, that installs the user documentation
that passage of Policy §12.3 recommends one directory for the “main
package”, ‘/usr/share/doc/foo/’, and the user documentation from
‘foo-doc’ should be installed to there (maybe to
‘/usr/share/doc/foo/html/’).
The examples I'm dealing with often use Sphinx to build documentation
from source, if that matters; but I assume this should be relatively
standardised no matter what builds the documentation.
How do we then best convince DebHelper to make the “main package”
documentation directory when needed, construct ‘foo-doc’ so that it
installs that documentation to ‘/usr/share/doc/foo/…’, and symlink the
various binary package documentation directories to the main package
documentation directory?
In a recent discussion, this came up:
Stuart Prescott <stuart@debian.org> writes:
> […] I'd also not do that dh_link dance until I was installing things
> from the staging output into the packages, but that's a matter of
> taste.
Stuart refers to this dance in the ‘towncrier’ packaging, in
‘debian/rules’:
=====
[…]
PACKAGE_NAME = towncrier
[…]
LIBRARY_PACKAGE_NAME = python3-${MAIN_PYTHON_PACKAGE}
DOC_PACKAGE_NAME = ${PACKAGE_NAME}-doc
[…]
override_dh_auto_build: ${private_bin_dir}
dh_link -p "${LIBRARY_PACKAGE_NAME}" \
usr/share/doc/"${LIBRARY_PACKAGE_NAME}" \
usr/share/doc/"${PACKAGE_NAME}"
dh_link -p "${DOC_PACKAGE_NAME}" \
usr/share/doc/"${DOC_PACKAGE_NAME}" \
usr/share/doc/"${PACKAGE_NAME}"
dh_auto_build
[…]
=====
and for completeness, here is the functional content of
‘debian/towncrier-doc.install’:
=====
docs/_build/html/ usr/share/doc/towncrier/
=====
This certainly is more complex than I want it to be. It's the latest
result of beating my forehead against DebHelper magic trying to convince
it to put things where I want them.
Am I missing something; can DebHelper do this automatically without
these manual ‘dh_link’ invocations?
--
\ “The Vatican is not a state.… a state must have people. There |
`\ are no Vaticanians.… No-one gets born in the Vatican except by |
_o__) an unfortunate accident.” —Geoffrey Robertson, 2010-09-18 |
Ben Finney
Re: Interrogate PyBuild for build directory of *only* the current Python interpreter version
Author: gregor herrmann
Date: Fri, 06 Nov 2026 12:20
Date: Fri, 06 Nov 2026 12:20
58 lines
4439 bytes
4439 bytes
------------=_1793966998-9717-97
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, 06 Nov 2026 15:22:44 +1100, Ben Finney wrote:
>What is (the?) recommended way to have DebHelper build, from one source
>package, a collection of binary packages including a documentation
>binary package, all of which have the =E2=80=9Cmain package=E2=80=9D for t=
heir
>documentation?
>
>Debian Policy =C2=A712.3 says, of =E2=80=9CAdditional documentation=E2=80=
=9D:
dh_installdocs has a --doc-main-package switch which references this=20
policy section.
Cheers,
gregor
--=20
.''`. 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 Eu=
rope
`-=20=20=20
------------=_1793966998-9717-97
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-----
iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmrtw5ZfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgZUBA/+I4v7KBdUBnbKApVyHwvtBmdoEc2GKIdkgfATjHOI5DQI2SNguWtPhZwN
KquJbJR1ITzylVqxdKKUKOJDeeredKwCEXHflYEnA7nCoiA69dDS9FhL5W176Mvw
SoGdVzi5RYR5KW1c69rEb4GaLhDXtn4g20r+5la9Nc9IAAebE50+/d3Lkb9sC4yO
yJX3oXWa+pYFa4jSfXJ1emqBwHSOkeGy28zKpk5grtU0UE0olKzmNvppGXs+DyX7
X3ft55fTGwJwBtCNYGQPshXSVQ6mlkE8zu9UWuFDZjWlqLzTqXGrdI7ThP0EDMe/
BhFJFqWC6STihAwZBMj2r6w5NgEHDEBOmd54ILFxksPhlup8C0FTDbtUPCJNefhZ
d4UDUOeXdb/VKMtr/RrysOcDhjBfJcBP2GGIZGKsLR5XZYbptbSXpUejrJaR/Pbo
KuKQN6Rro/wgC4Rkg0kdt9Dlf7/nBxHCbP0Hhcjh7vXwRYpSoPGl8CWArnYBUNFL
qC9CFjO62ltut5yqUMeLrXCSIFGJP7MoMJOKJgoSx2HHRUO7TYO2dw5rZU88aR9N
p+UzUPGtq8ieJ005XKEpRp5votjIs6sO///4TozkGLrpMOIOoH/39B6KgYxUWgAw
z/KdRQ3VpAsJLS8SfHgE9EOJctgXrtcQY9wDEmu3ycO1YmXm0mk=
=JBAf
-----END PGP SIGNATURE-----
------------=_1793966998-9717-97--
Re: Interrogate PyBuild for build directory of *only* the current Python interpreter version
Author: Niels Thykier
Date: Fri, 06 Nov 2026 16:10
Date: Fri, 06 Nov 2026 16:10
14 lines
5810 bytes
5810 bytes
gregor herrmann: > On Fri, 06 Nov 2026 15:22:44 +1100, Ben Finney wrote: > >> What is (the?) recommended way to have DebHelper build, from one source >> package, a collection of binary packages including a documentation >> binary package, all of which have the “main package” for their >> documentation? >> >> Debian Policy §12.3 says, of “Additional documentation”: > > dh_installdocs has a --doc-main-package switch which references this > policy section. > > > Cheers, > gregor > Related, the default is for `debhelper` to follow §12.3 out of the box based on heuristic. It is entirely possible the correct cause of action is to do nothing at all. Best regards, Niels
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads