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

Cannot install openssl-mingw #4271

Closed
jeffrson opened this issue Feb 25, 2021 · 4 comments
Closed

Cannot install openssl-mingw #4271

jeffrson opened this issue Feb 25, 2021 · 4 comments

Comments

@jeffrson
Copy link

jeffrson commented Feb 25, 2021

Hi,

updating or installing openssl-mingw leads to this error:

...
Checking hash of openssl-1.1.1j_3-win64-mingw.tar.xz ... ok.
Extracting openssl-1.1.1j_3-win64-mingw.tar.xz ... Exception: ...\scoop\apps\scoop\current\lib\core.ps1:510
Line |
 510 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'openssl-1.1.1j_3-win64-mingw'! (error 16)

I tried to return to 1.1.1i (by scoop install from an older json), but this give the same error (citing the other version of course).

@jeffrson
Copy link
Author

jeffrson commented Mar 5, 2021

Same error with in openssl-1.1.1j_4

@jeffrson
Copy link
Author

jeffrson commented Mar 12, 2021

The point is that for this package file of openssl-1.1.1j_4-win64-mingw.tar.xz the installer expects files inside the .tar.xz archive file in a sub folder called "openssl-1.1.1j_4-win64-mingw".

However, the folder is called openssl-1.1.1j-win64-mingw (without "_4") instead.

Hence, in openssl-mingw.json, extract_dir for installation is wrong, and for auto update $version seems to be a bad choice (given the archive structure).

@jeffrson
Copy link
Author

Temporary workaround:

diff --git a/bucket/openssl-mingw.json b/bucket/openssl-mingw.json
index d4db8d483..740101944 100644
--- a/bucket/openssl-mingw.json
+++ b/bucket/openssl-mingw.json
@@ -7,12 +7,12 @@
         "64bit": {
             "url": "https://curl.haxx.se/windows/dl-7.75.0_4/openssl-1.1.1j_4-win64-mingw.tar.xz",
             "hash": "d36670740c4b94616adf95acfa0dd329c03fc875e4ff0b326295c510e0114280",
-            "extract_dir": "openssl-1.1.1j_4-win64-mingw"
+            "extract_dir": "openssl-1.1.1j-win64-mingw"
         },
         "32bit": {
             "url": "https://curl.haxx.se/windows/dl-7.75.0_4/openssl-1.1.1j_4-win32-mingw.tar.xz",
             "hash": "40059506192533822a79bb6867ec0c70060da3b69d60673def88759448474081",
-            "extract_dir": "openssl-1.1.1j_4-win32-mingw"
+            "extract_dir": "openssl-1.1.1j-win32-mingw"
         }
     },
     "bin": "openssl.exe",

@rashil2000
Copy link
Member

ScoopInstaller/Main#1834

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

2 participants