Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssl incorrectly linked in environment #54

Open
h-vetinari opened this issue Apr 12, 2020 · 4 comments
Open

openssl incorrectly linked in environment #54

h-vetinari opened this issue Apr 12, 2020 · 4 comments

Comments

@h-vetinari
Copy link
Member

I installed openssl 1.1.1f into a new environment (full conda list below the fold), but the commandline picks up the openssl from somewhere else (not even the base environment, where I still have 1.1.1d).

(builder) D:\Dev\conda-forge>openssl version
OpenSSL 1.1.1e  17 Mar 2020

(builder) D:\Dev\conda-forge>which openssl
/usr/bin/openssl

(builder) D:\Dev\conda-forge>echo %PATH%
C:\ProgramData\Miniconda3\envs\builder;C:\ProgramData\Miniconda3\envs\builder\Library\mingw-w64\bin;C:\ProgramData\Miniconda3\envs\builder\Library\usr\bin;C:\ProgramData\Miniconda3\envs\builder\Library\bin;C:\ProgramData\Miniconda3\envs\builder\Scripts;C:\ProgramData\Miniconda3\envs\builder\bin;C:\ProgramData\Miniconda3\condabin;C:\ProgramData\Miniconda3;C:\ProgramData\Miniconda3\Library\mingw-w64\bin;C:\ProgramData\Miniconda3\Library\usr\bin;C:\ProgramData\Miniconda3\Library\bin;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\share;C:\Program Files (x86)\[...]

(builder) D:\Dev\conda-forge>conda deactivate

D:\Dev\conda-forge>openssl version
OpenSSL 1.1.1d  10 Sep 2019

D:\Dev\conda-forge>which openssl
/c/ProgramData/Miniconda3/Library/bin/openssl

D:\Dev\conda-forge>echo %PATH%
C:\ProgramData\Miniconda3\condabin;C:\ProgramData\Miniconda3;C:\ProgramData\Miniconda3\Library\mingw-w64\bin;C:\ProgramData\Miniconda3\Library\usr\bin;C:\ProgramData\Miniconda3\Library\bin;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\share;C:\Program Files (x86)\[...]

Certainly, this is not what I would expect, and it seems that an outdated binary in C:\ProgramData\Miniconda3\envs\builder\Library\usr\bin is not being deleted/updated:

D:\Dev\conda-forge>C:\ProgramData\Miniconda3\envs\builder\Library\usr\bin\openssl version
OpenSSL 1.1.1e  17 Mar 2020

D:\Dev\conda-forge>C:\ProgramData\Miniconda3\envs\builder\Library\bin\openssl version
OpenSSL 1.1.1f  31 Mar 2020

I came across this issue because I suspect(ed) that it has something to do with the cryptography feedstock picking up an outdated (system-?)openssl and failing on windows, but maybe the two are not related.

conda list
# packages in environment at C:\ProgramData\Miniconda3\envs\builder:
#
# Name                    Version                   Build  Channel
beautifulsoup4            4.9.0            py37hc8dfbb8_0    conda-forge
blinker                   1.4                        py_1    conda-forge
boolean.py                3.7                        py_0    conda-forge
bzip2                     1.0.8                hfa6e2cd_2    conda-forge
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
certifi                   2020.4.5.1       py37hc8dfbb8_0    conda-forge
cffi                      1.14.0           py37ha419a9e_0    conda-forge
chardet                   3.0.4           py37hc8dfbb8_1006    conda-forge
conda                     4.8.3            py37hc8dfbb8_1    conda-forge
conda-build               3.19.2           py37hc8dfbb8_0    conda-forge
conda-forge-pinning       2020.04.10.23.07.47               1    conda-forge
conda-package-handling    1.6.0            py37h702c6c1_2    conda-forge
conda-smithy              3.6.16                     py_0    conda-forge
cryptography              2.8              py37hb32ad35_1    conda-forge
decorator                 4.4.2                      py_0    conda-forge
deprecated                1.2.8              pyh9f0ad1d_0    conda-forge
filelock                  3.0.10                     py_0    conda-forge
git                       2.26.0                        0    conda-forge
gitdb                     4.0.4                      py_0    conda-forge
gitpython                 3.1.1                      py_0    conda-forge
glob2                     0.7                        py_0    conda-forge
idna                      2.9                        py_1    conda-forge
isodate                   0.6.0                      py_1    conda-forge
jinja2                    2.11.1                     py_0    conda-forge
libarchive                3.3.3             h0c0e0cf_1008    conda-forge
libiconv                  1.15              hfa6e2cd_1006    conda-forge
liblief                   0.9.0                ha925a31_3
libxml2                   2.9.10               h9ce36c8_0    conda-forge
license-expression        1.2                        py_0    conda-forge
lz4-c                     1.9.2                h33f27b4_0    conda-forge
lzo                       2.10              hfa6e2cd_1000    conda-forge
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markupsafe                1.1.1            py37h8055547_1    conda-forge
menuinst                  1.4.16                   py37_0    conda-forge
msrest                    0.6.10                     py_0    conda-forge
msys2-conda-epoch         20160418                      1
networkx                  2.4                        py_1    conda-forge
oauthlib                  3.0.1                      py_0    conda-forge
openssl                   1.1.1f               hfa6e2cd_0    conda-forge
pip                       20.0.2                     py_2    conda-forge
pkginfo                   1.5.0.1                    py_0    conda-forge
psutil                    5.7.0            py37h8055547_1    conda-forge
py-lief                   0.9.0            py37ha925a31_3
pycosat                   0.6.3           py37h8055547_1004    conda-forge
pycparser                 2.20                       py_0    conda-forge
pycrypto                  2.6.1           py37h8055547_1004    conda-forge
pygithub                  1.43.6           py37hc8dfbb8_1    conda-forge
pyjwt                     1.7.1                      py_0    conda-forge
pyopenssl                 19.1.0                     py_1    conda-forge
pysocks                   1.7.1            py37hc8dfbb8_1    conda-forge
python                    3.7.6           h60c2a47_5_cpython    conda-forge
python-libarchive-c       2.9                      py37_0    conda-forge
python_abi                3.7                     1_cp37m    conda-forge
pytz                      2019.3                     py_0    conda-forge
pywin32                   227              py37hfa6e2cd_0    conda-forge
pyyaml                    5.3.1            py37h8055547_0    conda-forge
requests                  2.23.0             pyh8c360ce_2    conda-forge
requests-oauthlib         1.2.0                      py_0    conda-forge
ripgrep                   12.0.1               h301d43c_1    conda-forge
ruamel.yaml               0.16.6           py37h8055547_1    conda-forge
ruamel.yaml.clib          0.2.0            py37h8055547_1    conda-forge
ruamel_yaml               0.15.80         py37h8055547_1001    conda-forge
scrypt                    0.8.13           py37h90766aa_3    conda-forge
setuptools                46.1.3           py37hc8dfbb8_0    conda-forge
six                       1.14.0                     py_1    conda-forge
smmap                     3.0.2              pyh9f0ad1d_0    conda-forge
soupsieve                 1.9.4            py37hc8dfbb8_1    conda-forge
sqlite                    3.30.1               hfa6e2cd_0    conda-forge
toolz                     0.10.0                     py_0    conda-forge
tqdm                      4.45.0             pyh9f0ad1d_0    conda-forge
urllib3                   1.25.8           py37hc8dfbb8_1    conda-forge
vc                        14.1                 h869be7e_1    conda-forge
vs2015_runtime            14.16.27012          h30e32a0_1    conda-forge
vsts-python-api           0.1.22                     py_0    conda-forge
wheel                     0.34.2                     py_1    conda-forge
win_inet_pton             1.1.0                    py37_0    conda-forge
wincertstore              0.2                   py37_1003    conda-forge
wrapt                     1.12.1           py37h8055547_1    conda-forge
xz                        5.2.5                h2fa13f4_0    conda-forge
yaml                      0.2.3                he774522_0    conda-forge
zlib                      1.2.11            h2fa13f4_1006    conda-forge
zstd                      1.4.4                h9f78265_3    conda-forge
@jakirkham
Copy link
Member

jakirkham commented Apr 12, 2020

Windows doesn’t have rpaths though. So this is likely a product of what your PATH looks like.

@h-vetinari
Copy link
Member Author

I don't understand what you mean, sorry.

At the very least, the following binary exists in the builder-env (IMO wrongly) and conflicts with the environment specs (openssl=1.1.1f).

D:\Dev\conda-forge>C:\ProgramData\Miniconda3\envs\builder\Library\usr\bin\openssl version
OpenSSL 1.1.1e  17 Mar 2020

@jjhelmus
Copy link
Contributor

The PREFIX\usr\bin\openssl file is not coming from the openssl package.. The openssl package installs the executable in `PREFIX\Library\bin. If you grep in the conda-meta directory for the environment you may be able to determine which package is installing the file in question.

@jakirkham
Copy link
Member

Maybe git? I think we were just rebundling Git for Windows. There’s probably a cleaner way to build git on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants