On Fri, Mar 22, 2024 at 11:29:11AM +0100, Holger Wansing wrote: > > I cannot reproduce this. I downloaded debian-policy source package and built > > it in an up-to-date sid chroot. And the built package has this: > > > > $ dpkg-deb -c debian-policy_4.6.2.1_all.deb | grep theme.css > > lrwxrwxrwx root/root 0 2024-02-24 15:39 > > ./usr/share/doc/debian-policy/policy.html/_static/css/theme.css -> > > ../../../../../sphinx_rtd_theme/static/css/theme.css > > But above output shows a filesize of 0B. > Shouldn't that be something different? Not for symlinks.
> Has ./usr/share/doc/debian-policy/policy.html/_static/css/theme.css any > useful content, when you open it? It's a symlink, it can't have content. It's target does have content, as shown in the quote below: > > So, it is a symlink, not an empty file. When resolving the relative path, > > I get /usr/share/sphinx_rtd_theme/static/css/theme.css, and that file > > exists in sphinx-rtd-theme-common and is non-empty. > if you open that theme.css file in the debian/debian-policy build path, > does it have any content? :-/ > Maybe it was bad wording, when I wrote > "replaces files provided by read-the-doc theme by empty symlinks" in the > subject of this bug. > Probably "symlinks pointing to a not-existing file" is more correct? To which non-existent files? Are they non-existent only when you don't have sphinx-rtd-theme-common installed? > I don't know where's the problem in detail, I only see that in the > debian-policy binary package that file is empty, and therefore the html > layout is broken. It's not empty, it's a symlink that points to a non-existent (on your system) file. > BTW: the same counts for all the symlinks under _static/fonts/: > > holgerw@t520:~/debian-policy$ ls -la > policy/debian/debian-policy/usr/share/doc/debian-policy/policy.html/_static/fonts/ > total 64 > drwxr-xr-x 2 holgerw holgerw 4096 Mar 22 11:17 . > drwxr-xr-x 5 holgerw holgerw 4096 Mar 22 11:17 .. > lrwxrwxrwx 1 holgerw holgerw 68 Mar 22 11:17 fontawesome-webfont.eot -> > ../../../../../sphinx_rtd_theme/static/fonts/fontawesome-webfont.eot > lrwxrwxrwx 1 holgerw holgerw 68 Mar 22 11:17 fontawesome-webfont.svg -> > ../../../../../sphinx_rtd_theme/static/fonts/fontawesome-webfont.svg > lrwxrwxrwx 1 holgerw holgerw 68 Mar 22 11:17 fontawesome-webfont.ttf -> > ../../../../../sphinx_rtd_theme/static/fonts/fontawesome-webfont.ttf > lrwxrwxrwx 1 holgerw holgerw 69 Mar 22 11:17 fontawesome-webfont.woff -> > ../../../../../sphinx_rtd_theme/static/fonts/fontawesome-webfont.woff > lrwxrwxrwx 1 holgerw holgerw 70 Mar 22 11:17 fontawesome-webfont.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/fontawesome-webfont.woff2 > lrwxrwxrwx 1 holgerw holgerw 64 Mar 22 11:17 Lato-BoldItalic.ttf -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-BoldItalic.ttf > lrwxrwxrwx 1 holgerw holgerw 66 Mar 22 11:17 Lato-BoldItalic.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-BoldItalic.woff2 > lrwxrwxrwx 1 holgerw holgerw 58 Mar 22 11:17 Lato-Bold.ttf -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-Bold.ttf > lrwxrwxrwx 1 holgerw holgerw 60 Mar 22 11:17 Lato-Bold.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-Bold.woff2 > lrwxrwxrwx 1 holgerw holgerw 60 Mar 22 11:17 Lato-Italic.ttf -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-Italic.ttf > lrwxrwxrwx 1 holgerw holgerw 62 Mar 22 11:17 Lato-Italic.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-Italic.woff2 > lrwxrwxrwx 1 holgerw holgerw 61 Mar 22 11:17 Lato-Regular.ttf -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-Regular.ttf > lrwxrwxrwx 1 holgerw holgerw 63 Mar 22 11:17 Lato-Regular.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/Lato-Regular.woff2 > lrwxrwxrwx 1 holgerw holgerw 66 Mar 22 11:17 RobotoSlab-Bold.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/RobotoSlab-Bold.woff2 > lrwxrwxrwx 1 holgerw holgerw 69 Mar 22 11:17 RobotoSlab-Regular.woff2 -> > ../../../../../sphinx_rtd_theme/static/fonts/RobotoSlab-Regular.woff2 > > All those symlinks are pointing to a not-existing target here. Only because you don't have sphinx-rtd-theme-common installed. -- WBR, wRAR
signature.asc
Description: PGP signature