#993500 Watch sould honor npm source

#993500#5
Date:
2021-09-02 09:13:35 UTC
From:
To:
Dear Maintainer,

Node-resolve watch fail with:
 uscan had problems while searching for a new upstream version:

unknown ctype nodejs


Could we support ctype nodejs ?

Thanks

Bastien

#993500#12
Date:
2022-12-23 13:34:50 UTC
From:
To:
Control: retitle -1 UDD/upstream: Watch should honor npm source

So I looked into this, and don't understand what happens.

The watch file info comes from the UDD 'upstream' importer.

ullmann.debian.org uses devscripts 2.21.3+deb11u1, which should know
about ctypes according to devscripts' changelog.

However, running uscan manually on node-resolve's watch file gives:

$ HTTPS_CA_DIR=/etc/ssl/ca-global uscan --pasv --dehs --no-download --watchfile w --package node-resolve --upstream-version '1.22.1+~cs5.32.10'
<dehs>
uscan warn: unknown ctype nodejs
<package>node-resolve</package>
<debian-uversion>1.22.1</debian-uversion>
<debian-mangled-uversion>1.22.1</debian-mangled-uversion>
<upstream-version>1.22.1</upstream-version>
<upstream-url>https://github.com/browserify/resolve/archive/refs/tags/v1.22.1.tar.gz</upstream-url>
<status>up to date</status>
<warnings>unknown ctype nodejs</warnings>
</dehs>

Even more strange, tracing using strace shows that uscan opens
Devscripts/Uscan/Ctype/nodejs.pm:

$ HTTPS_CA_DIR=/etc/ssl/ca-global strace -f uscan --pasv --dehs --no-download --watchfile w --package node-resolve --upstream-version '1.22.1+~cs5.32.10' 2>&1 |grep open |grep -i devscripts
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/Config.pm", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/Output.pm", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Output.pm", O_RDONLY|O_CLOEXEC) = 6
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Config.pm", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/FindFiles.pm", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Versort.pm", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/WatchFile.pm", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/Downloader.pm", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/CatchRedirections.pm", O_RDONLY|O_CLOEXEC) = 6
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/Utils.pm", O_RDONLY|O_CLOEXEC) = 6
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Utils.pm", O_RDONLY|O_CLOEXEC) = 7
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/WatchLine.pm", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/Keyring.pm", O_RDONLY|O_CLOEXEC) = 6
[pid 4176178] openat(AT_FDCWD, "/etc/devscripts.conf", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/http.pm", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/_xtp.pm", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/share/perl5/Devscripts/Uscan/Ctype/nodejs.pm", O_RDONLY|O_CLOEXEC) = 3

I cannot reproduce the warning outside ullmann, with the same devscripts
version.

Lucas

#993500#19
Date:
2022-12-23 14:06:36 UTC
From:
To:
DSA upgraded devscripts to the latest backport version (2.22.2~bpo11+1)
but it does not solve the issue. "fun".

Lucas

#993500#24
Date:
2024-02-27 13:09:52 UTC
From:
To:
Hello,

Bug #993500 in qa.debian.org reported by you has been fixed in the Git repository.
You can see the commit message below and you can check the diff of the fix at:

https://salsa.debian.org/qa/udd/-/commit/3b306f643beab14948d59bb8bfa93f7e930e27a0
------------------------------------------------------------------------ upstream: use vendorized devscripts/uscan (Closes: #1059892, #993500) ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/993500
#993500#29
Date:
2024-02-27 13:45:23 UTC
From:
To:
reopen 993500
thanks

Hi,

I made another try, since I switch UDD to a vendorized uscan.
Unfortunately I was too optimistic.

The reason for this failure is that uscan requires libjson-perl to be
installed for the nodejs ctype to work. I asked DSA to install it.

Lucas

#993500#36
Date:
2024-02-27 17:48:24 UTC
From:
To:
... and DSA installed it (thanks!) so this is fixed (pending
re-processing of packages, that should happen soon)

Lucas