[Pkg-javascript-devel] Bug#1077808: jquery: FTBFS on amd64/unstable: Error: Cannot find module '/usr/lib/nodejs/requirejs/r.js'

Chris Lamb lamby at debian.org
Fri Aug 2 16:43:12 BST 2024


Source: jquery
Version: 3.3.1~dfsg-3
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Tags: fbtfs

Dear maintainer,

jquery fails to build from source in unstable/amd64:

  […]

  Error: Cannot find module '/usr/lib/nodejs/requirejs/r.js'
      at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
      at Module._load (node:internal/modules/cjs/loader:986:27)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
      at node:internal/main/run_main_module:28:49 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
  }
  […]

This looked similar to #847740, so I updated the reference in
debian/rules to /usr/share/nodejs/requirejs/r.js. But it then fails
with a different error:

  TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object
      at Object.writeFileSync (node:fs:2376:5)
      at done (/usr/lib/nodejs/uglify-js/bin/uglifyjs:516:20)
      at cb (/usr/lib/nodejs/uglify-js/bin/uglifyjs:324:39)
      at /usr/lib/nodejs/uglify-js/bin/uglifyjs:391:9
      at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
    code: 'ERR_INVALID_ARG_TYPE'
  }


The full build log of the (first) FTBFS is attached.

Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jquery.3.3.1~dfsg-3.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 944 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20240802/ccb951a6/attachment.obj>


More information about the Pkg-javascript-devel mailing list