#1134321 uglifyjs: FTBFS: Error: Cannot find module 'source-map'

Package:
src:uglifyjs
Source:
src:uglifyjs
Submitter:
Santiago Vila
Date:
2026-06-06 11:13:03 UTC
Severity:
normal
Tags:
#1134321#5
Date:
2026-04-18 17:32:57 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202604/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:uglifyjs, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
nodejs bin/uglifyjs \
	--self \
	--comments /Copyright/ \
	--output debian/uglify.js
NODE_PATH=lib help2man \
	--name="JavaScript parser, mangler/compressor and beautifier toolkit" \

[... snipped ...]

    Running test [negate_iife_issue_1073]
    Running test [issue_1254_negate_iife_false]
    Running test [issue_1254_negate_iife_true]
    Running test [issue_1254_negate_iife_nested]
    Running test [issue_1288]
    Running test [issue_1288_side_effects]
--- new.js
    Running test [new_statement]
    Running test [new_statements_2]
    Running test [new_statements_3]
    Running test [new_with_rewritten_true_value]
    Running test [new_with_many_parameters]
    Running test [new_constructor_with_unary_arguments]
    Running test [call_with_unary_arguments]
    Running test [new_with_unary_prefix]
--- numbers.js
    Running test [hex_numbers_in_parentheses_for_prototype_functions]
    Running test [comparisons]
    Running test [evaluate_1]
    Running test [evaluate_2]
    Running test [evaluate_3]
    Running test [evaluate_4]
    Running test [issue_1710]
    Running test [unary_binary_parenthesis]
--- properties.js
    Running test [keep_properties]
    Running test [dot_properties]
    Running test [dot_properties_es5]
    Running test [sub_properties]
    Running test [evaluate_array_length]
    Running test [evaluate_string_length]
    Running test [mangle_properties]
    Running test [mangle_unquoted_properties]
    Running test [mangle_debug]
    Running test [mangle_debug_true]
    Running test [mangle_debug_suffix]
    Running test [mangle_debug_suffix_ignore_quoted]
    Running test [first_256_chars_as_properties]
    Running test [first_256_unicode_chars_as_properties]
    Running test [first_256_hex_chars_as_properties]
    Running test [native_prototype]
    Running test [accessor_boolean]
    Running test [accessor_get_set]
    Running test [accessor_null_undefined]
    Running test [accessor_number]
    Running test [accessor_string]
    Running test [accessor_this]
--- pure_funcs.js
    Running test [array]
    Running test [func]
    Running test [side_effects]
    Running test [unused]
    Running test [babel]
    Running test [conditional]
    Running test [relational]
    Running test [arithmetic]
    Running test [boolean_and]
    Running test [boolean_or]
    Running test [assign]
    Running test [unary]
--- pure_getters.js
    Running test [strict]
    Running test [strict_reduce_vars]
    Running test [unsafe]
    Running test [unsafe_reduce_vars]
    Running test [chained]
    Running test [impure_getter_1]
    Running test [impure_getter_2]
--- reduce_vars.js
    Running test [reduce_vars]
    Running test [modified]
    Running test [unsafe_evaluate]
    Running test [unsafe_evaluate_object]
    Running test [unsafe_evaluate_array]
    Running test [unsafe_evaluate_equality_1]
    Running test [unsafe_evaluate_equality_2]
    Running test [passes]
    Running test [iife]
    Running test [iife_new]
    Running test [multi_def_1]
    Running test [multi_def_2]
    Running test [multi_def_3]
    Running test [use_before_var]
    Running test [inner_var_if]
    Running test [inner_var_label]
    Running test [inner_var_for]
    Running test [inner_var_for_in_1]
    Running test [inner_var_for_in_2]
    Running test [inner_var_catch]
    Running test [issue_1533_1]
    Running test [issue_1533_2]
    Running test [toplevel_on]
    Running test [toplevel_off]
    Running test [toplevel_on_loops_1]
    Running test [toplevel_off_loops_1]
    Running test [toplevel_on_loops_2]
    Running test [toplevel_off_loops_2]
    Running test [toplevel_on_loops_3]
    Running test [toplevel_off_loops_3]
    Running test [defun_reference]
    Running test [defun_inline_1]
    Running test [defun_inline_2]
    Running test [defun_inline_3]
    Running test [defun_call]
    Running test [defun_redefine]
    Running test [func_inline]
    Running test [func_modified]
    Running test [defun_label]
    Running test [double_reference]
    Running test [iife_arguments_1]
    Running test [iife_arguments_2]
    Running test [iife_eval_1]
    Running test [iife_eval_2]
    Running test [iife_func_side_effects]
    Running test [issue_1595_1]
    Running test [issue_1595_2]
    Running test [issue_1595_3]
    Running test [issue_1595_4]
    Running test [issue_1606]
    Running test [issue_1670_1]
    Running test [issue_1670_2]
    Running test [issue_1670_3]
    Running test [issue_1670_4]
    Running test [issue_1670_5]
    Running test [issue_1670_6]
    Running test [unary_delete]
    Running test [redefine_arguments_1]
    Running test [redefine_arguments_2]
    Running test [redefine_arguments_3]
    Running test [redefine_farg_1]
    Running test [redefine_farg_2]
    Running test [redefine_farg_3]
    Running test [delay_def]
    Running test [booleans]
    Running test [side_effects_assign]
    Running test [pure_getters_1]
    Running test [pure_getters_2]
    Running test [pure_getters_3]
    Running test [catch_var]
    Running test [issue_1814_1]
    Running test [issue_1814_2]
    Running test [try_abort]
    Running test [issue_1865]
    Running test [issue_1922_1]
    Running test [issue_1922_2]
    Running test [accessor]
--- return_undefined.js
    Running test [return_undefined]
--- screw-ie8.js
    Running test [do_screw]
    Running test [dont_screw]
    Running test [do_screw_constants]
    Running test [dont_screw_constants]
    Running test [do_screw_try_catch]
    Running test [dont_screw_try_catch]
    Running test [do_screw_try_catch_undefined]
    Running test [dont_screw_try_catch_undefined]
    Running test [reduce_vars]
    Running test [issue_1586_1]
    Running test [issue_1586_2]
--- sequences.js
    Running test [make_sequences_1]
    Running test [make_sequences_2]
    Running test [make_sequences_3]
    Running test [make_sequences_4]
    Running test [lift_sequences_1]
    Running test [lift_sequences_2]
    Running test [lift_sequences_3]
    Running test [lift_sequences_4]
    Running test [lift_sequences_5]
    Running test [for_sequences]
    Running test [limit_1]
    Running test [limit_2]
    Running test [negate_iife_for]
    Running test [iife]
    Running test [unsafe_undefined]
    Running test [issue_1685]
    Running test [func_def_1]
    Running test [func_def_2]
    Running test [func_def_3]
    Running test [func_def_4]
    Running test [func_def_5]
    Running test [issue_1758]
    Running test [delete_seq_1]
    Running test [delete_seq_2]
    Running test [delete_seq_3]
    Running test [delete_seq_4]
    Running test [delete_seq_5]
    Running test [delete_seq_6]
    Running test [reassign_const]
--- string-literal.js
    Running test [octal_escape_sequence]
--- switch.js
    Running test [constant_switch_1]
    Running test [constant_switch_2]
    Running test [constant_switch_3]
    Running test [constant_switch_4]
    Running test [constant_switch_5]
    Running test [constant_switch_6]
    Running test [constant_switch_7]
    Running test [constant_switch_8]
    Running test [constant_switch_9]
    Running test [drop_default_1]
    Running test [drop_default_2]
    Running test [keep_default]
    Running test [issue_1663]
    Running test [drop_case]
    Running test [keep_case]
    Running test [issue_376]
    Running test [issue_441_1]
    Running test [issue_441_2]
    Running test [issue_1674]
    Running test [issue_1679]
    Running test [issue_1680_1]
    Running test [issue_1680_2]
    Running test [issue_1690_1]
    Running test [issue_1690_2]
    Running test [if_switch_typeof]
    Running test [issue_1698]
    Running test [issue_1705_1]
    Running test [issue_1705_2]
    Running test [issue_1705_3]
    Running test [beautify]
    Running test [issue_1758]
--- transform.js
    Running test [booleans_evaluate]
    Running test [booleans_global_defs]
    Running test [condition_evaluate]
    Running test [if_else_empty]
    Running test [label_if_break]
    Running test [while_if_break]
    Running test [if_return]
--- typeof.js
    Running test [typeof_evaluation]
    Running test [typeof_in_boolean_context]
    Running test [issue_1668]
--- unicode.js
    Running test [unicode_parse_variables]
--- wrap_iife.js
    Running test [wrap_iife]
    Running test [wrap_iife_in_expression]
    Running test [wrap_iife_in_return_call]
node:internal/modules/cjs/loader:1386
  throw err;
  ^

Error: Cannot find module 'source-map'
Require stack:
- /<<PKGBUILDDIR>>/test/mocha/input-sourcemaps.js
- /usr/share/nodejs/mocha/lib/mocha.js
- /usr/share/nodejs/mocha/index.js
- /<<PKGBUILDDIR>>/test/mocha.js
- /<<PKGBUILDDIR>>/test/run-tests.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Module._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/<<PKGBUILDDIR>>/test/mocha/input-sourcemaps.js:3:25)
    at Module._compile (node:internal/modules/cjs/loader:1705:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/<<PKGBUILDDIR>>/test/mocha/input-sourcemaps.js',
    '/usr/share/nodejs/mocha/lib/mocha.js',
    '/usr/share/nodejs/mocha/index.js',
    '/<<PKGBUILDDIR>>/test/mocha.js',
    '/<<PKGBUILDDIR>>/test/run-tests.js'
  ]
}

Node.js v22.22.2
make[1]: *** [debian/rules:26: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1134321#10
Date:
2026-04-19 05:55:54 UTC
From:
To:
Le 18/04/2026 à 19:32, Santiago Vila a écrit :
Hi,

even if the fix is easy, this package is waiting for ROM-RM: no more
reverse dependency and strongly outdated.

Cheers,
Xavier

#1134321#17
Date:
2026-06-06 11:10:07 UTC
From:
To:
Dear submitter,

as the package uglifyjs has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1127304

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)