Skip to content

Commit

Permalink
Merge pull request #134 from Talkless/fix-openssl-perms
Browse files Browse the repository at this point in the history
Fix openssl 1.0.2x shared library permissions
  • Loading branch information
lasote authored Oct 24, 2019
2 parents d29b8c2 + 5a09f9e commit 01f3d33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/openssl/ALL/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,12 @@ def package(self):
with tools.chdir(os.path.join(self.package_folder, 'lib')):
os.rename('libssl.lib', 'libssld.lib')
os.rename('libcrypto.lib', 'libcryptod.lib')
# Old OpenSSL version family has issues with permissions.
# See https://github.com/conan-io/conan/issues/5831
if self._full_version < "1.1.0" and self.options.shared and self.settings.os in ("Android", "FreeBSD", "Linux"):
with tools.chdir(os.path.join(self.package_folder, "lib")):
os.chmod("libssl.so.1.0.0", 0o755)
os.chmod("libcrypto.so.1.0.0", 0o755)
tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))

def package_info(self):
Expand Down

0 comments on commit 01f3d33

Please sign in to comment.