GeezerVison is showing github.com — configure script in node-v10.11.0.tar.gz source tarball appears truncated · Issue #23111 · nodejs/node
configure script in node-v10.11.0.tar.gz source tarball appears truncated #23111Labels buildIssues and PRs related to Node.js builds or CI infrastructure. Description
- Version: 10.11.0 source code
- Platform: Unix (Ubuntu 18.04 LTS)
- Subsystem: /na
When compiling node-v10.11.0 from the source code tarball, the output of './configure --prefix=prefix returns silently. I get this:
/node-v10.11.0$ ./configure --prefix=$MY_NODE_PREFIX
$ [no output from ./configure]
in the 10.10.0 source code, the same command will result in console output giving configuration settings.
When I look at the configure file in node-v10.11.0, the file is 790 bytes in length:
-rwxr-xr-x 1 usbob2 usbob2 790 Sep 20 03:28 configure
When I look at the same file in node-v10.10.0, it is 55,153 bytes in length.
-rwxr-xr-x 1 usbob2 usbob2 55153 Sep 6 16:44 configure
Clearly, the configure file in node-v10.11.0 has been truncated and is unusable.
The tarball did sha256sum properly:
$ egrep 'node-v10.11.0.tar.gz' SHASUMS256.txt.asc | sha256sum -c -
node-v10.11.0.tar.gz: OK
The signed SHA256SUMS file did get a "GOOD SIGNATURE" when verified:
$ gpg --verify SHASUMS256.txt.asc
gpg: Signature made Thu 20 Sep 2018 07:34:32 AM EDT
gpg: using RSA key 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600
gpg: Good signature from "Michaël Zasso (Targos) [email protected]" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 8FCC A13F EF1D 0C2E 9100 8E09 770F 7A9A 5AE1 5600 Activityrichardlau commented on Sep 27, 2018 Coincidentally I had a coworker ask me about this yesterday.
#22450 moved the bulk of the configure script to configure.py but also made it so that configure no longer outputs anything to the console (it still writes config.gypi) unless you pass --verbose. In my opinion suppressing all output from configure by default was a mistake and it should at least indicate it has done something, perhaps the
creating icu_config.gypi
creating config.gypi
creating config.status
creating config.mk
lines reported by:
|
print_verbose('creating %s' % filename) |
cc @refack BobCochran commented on Sep 27, 2018 Traditionally ./configure on Unix/Linux platforms has always given output,
without need to give a --verbose option. Not having output from ./configure
made me think something had broken. It could make a lot of build scripts
out in the wild break too, since automated scripts might be expecting
console output, just as it always happens in *nix builds. The referenced
change is indeed a mistake, and should be refactored to give console output
for command line builds under *nix. This is not just for the convenience of
IDEs.
…refack commented on Sep 27, 2018 The #22450 change should have been semver-major, that one slipped through the cracks...
One convention I did make sure we followed is the exit code (which is still 0 on success).
The Node.js configure script is not a classical automake configure, so deciding what to output will be arbitrary anyway. So while I'm working on an improvement, what output would be preferable?
-
creating icu_config.gypi
creating config.gypi
creating config.status
creating config.mk
-
configure completed successfully
BobCochran commented on Sep 27, 2018 I'm so accustomed to the output that I've had up to and including 10.10.0:
`~/node-v10.10.0$ ./configure --prefix=$MY_NODE_PREFIX
creating icu_config.gypi
- Using ICU in deps/icu-small
creating icu_config.gypi
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'asan': 0,
'build_v8_with_gn': 'false',
'coverage': 'false',
'debug_nghttp2': 'false',
'enable_lto': 'false',
'force_dynamic_crt': 0,
'gas_version': '2.30',
'host_arch': 'x64',
'icu_data_in': '../../deps/icu-small/source/data/in/icudt62l.dat',
'icu_endianness': 'l',
'icu_gyp_path': 'tools/icu/icu-generic.gyp',
'icu_locales': 'en,root',
'icu_path': 'deps/icu-small',
'icu_small': 'true',
'icu_ver_major': '62',
'llvm_version': 0,
'node_byteorder': 'little',
'node_debug_lib': 'false',
'node_enable_d8': 'false',
'node_enable_v8_vtunejit': 'false',
'node_install_npm': 'true',
'node_module_version': 64,
'node_no_browser_globals': 'false',
'node_prefix': '/home/usbob2/local',
'node_release_urlbase': '',
'node_shared': 'false',
'node_shared_cares': 'false',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
'node_shared_nghttp2': 'false',
'node_shared_openssl': 'false',
'node_shared_zlib': 'false',
'node_tag': '',
'node_target_type': 'executable',
'node_use_bundled_v8': 'true',
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_openssl': 'true',
'node_use_pch': 'false',
'node_use_perfctr': 'false',
'node_use_v8_platform': 'true',
'node_with_ltcg': 'false',
'node_without_node_options': 'false',
'openssl_fips': '',
'openssl_no_asm': 0,
'shlib_suffix': 'so.64',
'target_arch': 'x64',
'v8_enable_gdbjit': 0,
'v8_enable_i18n_support': 1,
'v8_enable_inspector': 1,
'v8_no_strict_aliasing': 1,
'v8_optimized_debug': 0,
'v8_promise_internal_field_count': 1,
'v8_random_seed': 0,
'v8_trace_maps': 0,
'v8_typed_array_max_size_in_heap': 0,
'v8_use_snapshot': 'true',
'want_separate_host_toolset': 0}}
creating config.gypi
creating config.status
creating config.mk
`
If we could keep that the same it would be great. If something must change here, then for a *nix build I would like to see console output showing the configuration files are being created and the final line 'configure completed successfully'.
mscdex commented on Sep 30, 2018 +1 to reverting to verbose by default richardlau commented on Oct 5, 2018
The #22450 change should have been semver-major, that one slipped through the cracks...
@refack Should we revert the whole of #22450 in v10.x or just the --verbose part? (Undoing the configure->configure.py change would mean any configure.py changes on master having to be manually backported to v10.x in the future.)
cc @nodejs/release Trott commented on Nov 16, 2018 @refack You self-assigned this one. Are you still working on it? refack commented on Nov 17, 2018
You self-assigned this one. Are you still working on it?
Oops I lost track of this...
So I'm a bit conflicted; this got into node11, so that's Ok as a semver-major.
And node10 entered LTS with this, so I'm hesitant to submit a patch now... (although it adds information, so it might be semver-minor).
I'll make a patch for 10.x and see what the reviewers say.
Fixed in #22450
Fixed in #23408
MetadataMetadatabuildIssues and PRs related to Node.js builds or CI infrastructure. DevelopmentNo branches or pull requestsIssue actions
|