[Pkg-javascript-devel] Bug#977960: I still have a symlink that points to nowhere

Mattias Ellert mattias.ellert at physics.uu.se
Mon Jan 4 16:35:35 GMT 2021


Hi.

My currently installed version of libjs-jquery is

$ dpkg-query --show libjs-jquery
libjs-jquery	3.5.1+dfsg+~3.5.5-4

which is currently the latest version.

I have a symlink as follows:

$ ls -l /usr/share/javascript/jquery 
lrwxrwxrwx 1 root root 29 12 May  2020 /usr/share/javascript/jquery ->
/usr/share/nodejs/jquery/dist

The target of this symlink does not exist.

$ ls /usr/share/nodejs/jquery/dist
ls: cannot access '/usr/share/nodejs/jquery/dist': No such file or
directory

The problem comes from the install history of the package.

Version 3.5.1+dfsg+~3.5.4-4 changed a symlink to a directory, but
failed to add a maintscript for this change.

The following version 3.5.1+dfsg+~3.5.5-1 did add the missing maint-
script, but put the previous version in it, not the version that added
the script.

symlink_to_dir /usr/share/javascript/jquery
/usr/share/nodejs/jquery/dist 3.5.1+dfsg+~3.5.4-4~

instead of

symlink_to_dir /usr/share/javascript/jquery
/usr/share/nodejs/jquery/dist 3.5.1+dfsg+~3.5.5-1~

This means that for everyone that had already updated to
3.5.1+dfsg+~3.5.4-4, when they later updated to 3.5.1+dfsg+~3.5.5-1 the
maintscript was not run.

To fix this now, there needs to be a 3.5.1+dfsg+~3.5.5-5 update where
the mainscriot is updated to

symlink_to_dir /usr/share/javascript/jquery
/usr/share/nodejs/jquery/dist 3.5.1+dfsg+~3.5.5-5~

For a reproducer

1. Install a version before 3.5.1+dfsg+~3.5.4-4
2. Update to 3.5.1+dfsg+~3.5.4-4
3. Update to a version after 3.5.1+dfsg+~3.5.4-4

	Mattias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4001 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210104/dbca83fc/attachment.bin>


More information about the Pkg-javascript-devel mailing list