[Pkg-javascript-devel] Bug#1029670: node-browser-pack: puts relative path to prelude into source map

Yadd yadd at debian.org
Thu Jan 26 13:30:18 GMT 2023


On 1/26/23 13:04, Thorsten Glaser wrote:
> Package: node-browser-pack
> Version: 6.1.0+ds+~6.1.1-2
> Severity: normal
> User: reproducible-builds at lists.alioth.debian.org
> Usertags: buildpath toolchain
> X-Debbugs-Cc: tg at mirbsd.de
> Control: affects -1 src:dygraphs
> 
>      var preludePath = opts.preludePath ||
>          path.relative(basedir, defaultPreludePath).replace(/\\/g, '/');
> 
> … leads to reproducible-builds differences:
> 
>   ····"sources":·[
> -········"../../../../usr/share/nodejs/browser-pack/_prelude.js",
> +········"../../../../../usr/share/nodejs/browser-pack/_prelude.js",
> 
> I think for Debian it should just always write the absolute path in.

Hi,

could you try attached patch ? It keeps related paths where needed.

Cheers,
Yadd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drop-global-relative-paths.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20230126/cc67becc/attachment.bin>


More information about the Pkg-javascript-devel mailing list