[R-pkg-team] Bug#985281: r-cran-dt: unhandled symlink to directory conversion: /usr/lib/R/site-library/DT/htmlwidgets/lib/datatables-extensions -> ../../../../../../share/javascript/jquery-datatables-extensions

Étienne Mollier etienne.mollier at mailoo.org
Mon Mar 29 18:58:28 BST 2021


Hi Andreas,

Andreas Beckmann, on 2021-03-28 21:26:08 +0200:
> On 27/03/2021 22.43, Étienne Mollier wrote:
> > There is however this upgrade path that I struggle to fix, note
> > the missing --distupgrade-to-testdebs, which goes through the
> > existing 0.17+dfsg-2 in Testing, and which is still broken:
> 
> That's a stable2testing2sid test (-d buster -d bullseye -d sid) and you can do that with --d-t-t, too.
> (you could also use -d buster -d bullseye -d bullseye --d-t-t, yes, 2x -d bullseye)
> 
> The breakage is caused by by upgrading to the bullseye version, debsums says
> 
> debsums: missing file /usr/share/javascript/jquery-datatables/css/dataTables.bootstrap.css (from libjs-jquery-datatables package)
> debsums: missing file /usr/share/javascript/jquery-datatables/css/dataTables.bootstrap.min.css (from libjs-jquery-datatables package)
[...]
> debsums: missing file /usr/share/javascript/jquery-datatables-extensions/Buttons/js/dataTables.buttons.js (from libjs-jquery-datatables-extensions package)
> debsums: missing file /usr/share/javascript/jquery-datatables-extensions/Buttons/js/dataTables.buttons.min.js (from libjs-jquery-datatables-extensions package)
> 
> debsums is not entirely right, the files still exist (as in 'test -e'),
> but have been replaced by dangling symlinks:
> (do you want to file a bug against debsums for that?)

Thank you very much Andreas Beckmann for the detailed
explanantion.  I understand that a dangling link can be
considered by the system as a missing file.  But I agree this
can be confusing, so I'm filing a wishlist item.

> # ls -la /usr/share/javascript/jquery-datatables/css /usr/share/javascript/jquery-datatables-extensions/Buttons/js
> /usr/share/javascript/jquery-datatables-extensions/Buttons/js:
> total 0
> drwxr-xr-x 2 root root 420 Mar 28 13:14 .
> drwxr-xr-x 5 root root 100 Mar 28 13:14 ..
> lrwxrwxrwx 1 root root 104 Feb 12 07:11 buttons.bootstrap.js -> ../../../../../../../../../share/javascript/jquery-datatables-extensions/Buttons/js/buttons.bootstrap.js
[...]
> lrwxrwxrwx 1 root root   88 Feb 12 07:11 jquery.dataTables.min.css -> ../../../../../../../../share/javascript/jquery-datatables/css/jquery.dataTables.min.css
> 
> That can't be fixed on the r-cran-dt side alone.
> But I'd consider it pretty bad (haven't seen overwrite problems
> this way so far), as the files are actually destroyed (usually
> they get overwritten with files with the same or similar content,
> not symlinks).
> Since the buggy package has reached testing, there are probably
> people using testing that have the destroyed files.
> 
> The fix should be pretty easy: both libjs-jquery-datatables and
> libjs-jquery-datatables-extensions (from two different source
> packages) need to add
>   Breaks: r-cran-dt (<< 0.17+dfsg-3~)
> That will reinstall the destroyed files after upgrading to the fixed r-cran-dt
> (r-cran-dt could bump its dependencies to the versions with the Breaks,
> but that's primarily to prevent some partial upgrades with messed up files
> and it could even introduce some upgrade unpack ordering fun).
> 
> Can you take care of that?

I was to file bugs to notify Debian Javascript Maintainers this
evening, but I see Andreas Tille already uploaded the fix.
Thanks Andreas Tille!

Kind Regards,
-- 
Étienne Mollier <etienne.mollier at mailoo.org>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/r-pkg-team/attachments/20210329/57fbb151/attachment-0001.sig>


More information about the R-pkg-team mailing list