[R-pkg-team] Bug#903819: Am I missing something with symlink_to_dir? Re: Bug#903819: r-cran-rmarkdown: Broken link /usr/lib/R/site-library/rmarkdown/rmd/h/bootstrap-3.3.5/shim
Andreas Tille
andreas at fam-tille.de
Sun Jul 15 21:55:54 BST 2018
Control: tags -1 help
Hi Ralf,
On Sun, Jul 15, 2018 at 12:06:49PM +0200, Ralf Stubner wrote:
> lrwxrwxrwx 1 root root 43 Jun 29 16:16 shim -> ../../../../shiny/www/shared/bootstrap/shim
>
> Please let me know if you need further info.
No further info is needed. I actually realised the issue before and
fixed it in r-cran-rmarkdown_1.10+dfsg-2. So if you remove
r-cran-rmarkdown_1.10+dfsg-1 and install r-cran-rmarkdown_1.10+dfsg-2
you will succeed with your test.
Unfortunately the issue persists since dpkg can not replace a symlink
with a directory or vice versa and thus if you have installed
r-cran-rmarkdown_1.10+dfsg-1 before the symlink issue remains.
This can be solved by using symlink_to_dir (see
dpkg-maintscript-helper(1)) and I tried this. Unfortunately my
debian/maintscript[2] does not work (despite the resulting
preinst script looks like
#!/bin/sh
set -e
# Automatically added by dh_installdeb/11.3.5
dpkg-maintscript-helper symlink_to_dir /usr/lib/R/site-library/rmarkdown/rmd/h/bootstrap-3.3.5 ../../../../../../share/javascript/bootstrap 1.10\+dfsg-2 -- "$@"
# End automatically added section
My question to debian-mentors list is now: Am I missing something? How
can I turn the link
/usr/lib/R/site-library/rmarkdown/rmd/h/bootstrap-3.3.5 successfully into
a dir?
Thanks for any help
Andreas.
[1] https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_Will_dpkg_replace_a_symlink_with_a_directory_or_vice_versa.3F
[2] https://salsa.debian.org/r-pkg-team/r-cran-rmarkdown/blob/master/debian/maintscript
--
http://fam-tille.de
More information about the R-pkg-team
mailing list