[...]
Anyway, the symlink points to some path inside the package build path, here: /srv/debian-policy/debian-policy-4.6.2.1/debian/debian-policy/usr/share/sphinx_rtd_theme_static/css/theme.css
and that path does not exist.
Same in the debian-policy binary package.
On Fri, Mar 22, 2024 at 01:46:48PM +0100, Holger Wansing wrote:
[...]
Anyway, the symlink points to some path inside the package build path, here:
/srv/debian-policy/debian-policy-4.6.2.1/debian/debian-policy/usr/share/sphinx_rtd_theme_static/css/theme.css
and that path does not exist.
Same in the debian-policy binary package.
This is expected. The path in the build tree is relative in a way that when
a package is built and installed, it becomes working.
The symlink is generated relative per Policy 10.5. And I think that even if dh_sphinxdoc generated it as absolute, dh_link would later change it to relative.
If you are trying to rely on something that is in the build directory, you have to turn relative symlinks into absolute ones on your own. Or just don't call dh_sphinxdoc, then you will get normal files.
Ok, I see.
So, we will need to get sphinx-rtd-theme-common installed on all debian.org website mirrors, and it will just work (?) ...
On Fri, Mar 22, 2024 at 03:30:55PM +0100, Holger Wansing wrote:
Ok, I see.
So, we will need to get sphinx-rtd-theme-common installed on all debian.org website mirrors, and it will just work (?) ...
From your earlier message it seemed to me like you are using the build
tree in your deploy process, not the built package.
That is why I suggested not running dh_sphinxdoc, however my suggestion applied only to your deploy procedure. The package which is being uploaded
to Debian archive should still use dh_sphinxdoc.
If you are using the built package and installing it on the remote server, then yes, install sphinx-rtd-theme-common and you should be good.
Actually, I would move ${sphinxdoc:Depends} from Recommends to Depends, because the documentation is mostly unusable without the static files.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 07:21:12 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,636 |