[bug] openssl 1.0.1 "Permission denied" when running `conan install . ` second time and imported symlink already exists
See original GitHub issueWith issue https://github.com/conan-io/conan/issues/5831 and commit https://github.com/Talkless/conan-center-index/commit/5a09f9ec1dae2a29b9d9117992fb762820797be5 these type of error is fixed with “libssl.so.1.0.0” and “libcrypto.so.1.0.0”, but not for libs in subfolder “engines”
Following change beginning with line 680 conanfile.py solves this problem:
with tools.chdir(os.path.join(self.package_folder, "lib", "engines")): os.chmod("lib4758cca.so", 0o755) os.chmod("libatalla.so", 0o755) os.chmod("libchil.so", 0o755) os.chmod("libgmp.so", 0o755) os.chmod("libnuron.so", 0o755) os.chmod("libsureware.so", 0o755) os.chmod("libaep.so", 0o755) os.chmod("libcapi.so", 0o755) os.chmod("libcswift.so", 0o755) os.chmod("libgost.so", 0o755) os.chmod("libpadlock.so", 0o755) os.chmod("libubsec.so", 0o755)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
I’d say it’s worth to fix it in the recipe, as it’s pretty straightforward. I’d go with
glob/fnmatch
to find the engines and chmod all of them in similar manner.So… is it worth it to “clutter” currently working code to support OpenSSL versions that Conan repo does not provide? 😃 .
Or maybe it does reproduce with >=1.0.2 with some different setup/environment?