spack: OpenSSL checks are too slow

I often work on systems that can’t see the outside world. On such systems, everytime spack queries the OpenSSL package, a 2 minute delay is added to my command. For example:

% time spack spec openssl%intel@16.0.3
<output trimmed>
==> Warning: This installation depends on an old version of OpenSSL, which may have known security issues. 
==> Warning: Consider updating to the latest version of this package.
==> Warning: More details at http://www.openssl.org
<output trimmed>

real    2m9.064s
user    0m0.632s
sys 0m0.216s

Also:

% spack -p spec openssl%intel@16.0.3
  ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1  127.316  127.316  127.316  127.316 {method 'connect' of '_socket.socket' objects}
        3    0.689    0.230    0.689    0.230 {built-in method poll}
<output trimmed>

Is there any way to disable this check? or make it time-out after 15-20 seconds? For now, I just comment out this section of openssl/package.py.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

I would be fine with a system OpenSSL. What if we just got rid of the OpenSSL package and removed all dependencies to it? Would there be any foreseeable consequences?

Ahem #1325 is just around the corner…

I’m not ignoring #1325 I promise!

I think the right place for a check like this would be as a phase of some sort in @alalazo’s #1186 PR, preferably one that is disable-able in a config file somewhere. Right now it’s sort of instrumented into url_for_version, which is the wrong place for it. I’ll make a PR to get rid of the check and we can talk about where it might make sense to put it back.

I really want to remove this check. It adds time to anything that uses the spec, and it gets executed for commands that don’t need it like spack spec. I don’t think the benefits outweigh the cost. I think users need to be responsible for pulling their own updates, at least until we can do something better. I also don’t know of another package manager that pings the OpenSSL site like this.