@@ -41,48 +41,30 @@ class OpenSSLRecipe(Recipe):
41
41
- Add ability to build a legacy version of the openssl libs when using
42
42
python2legacy or python3crystax.
43
43
44
+ .. versionchanged:: 2019.06.06.1.dev0
45
+
46
+ - Removed legacy version of openssl libraries
47
+
44
48
'''
45
49
46
- standard_version = '1.1'
50
+ version = '1.1'
47
51
'''the major minor version used to link our recipes'''
48
- legacy_version = '1.0'
49
- '''the major minor version used to link our recipes when using
50
- python2legacy or python3crystax'''
51
52
52
- standard_url_version = '1.1.1'
53
+ url_version = '1.1.1'
53
54
'''the version used to download our libraries'''
54
- legacy_url_version = '1.0.2q'
55
- '''the version used to download our libraries when using python2legacy or
56
- python3crystax'''
57
55
58
56
url = 'https://www.openssl.org/source/openssl-{url_version}.tar.gz'
59
57
60
- @property
61
- def use_legacy (self ):
62
- if not self .ctx .recipe_build_order :
63
- return False
64
- return 'python3crystax' in self .ctx .recipe_build_order
65
-
66
- @property
67
- def version (self ):
68
- if self .use_legacy :
69
- return self .legacy_version
70
- return self .standard_version
71
-
72
- @property
73
- def url_version (self ):
74
- if self .use_legacy :
75
- return self .legacy_url_version
76
- return self .standard_url_version
77
-
78
58
@property
79
59
def versioned_url (self ):
80
60
if self .url is None :
81
61
return None
82
62
return self .url .format (url_version = self .url_version )
83
63
84
64
def get_build_dir (self , arch ):
85
- return join (self .get_build_container_dir (arch ), self .name + self .version )
65
+ return join (
66
+ self .get_build_container_dir (arch ), self .name + self .version
67
+ )
86
68
87
69
def include_flags (self , arch ):
88
70
'''Returns a string with the include folders'''
@@ -113,22 +95,18 @@ def should_build(self, arch):
113
95
'libcrypto' + self .version + '.so' )
114
96
115
97
def get_recipe_env (self , arch = None ):
116
- env = super (OpenSSLRecipe , self ).get_recipe_env (arch , clang = not self . use_legacy )
98
+ env = super (OpenSSLRecipe , self ).get_recipe_env (arch , clang = True )
117
99
env ['OPENSSL_VERSION' ] = self .version
118
100
env ['MAKE' ] = 'make' # This removes the '-j5', which isn't safe
119
- if self .use_legacy :
120
- env ['CFLAGS' ] += ' ' + env ['LDFLAGS' ]
121
- env ['CC' ] += ' ' + env ['LDFLAGS' ]
122
- else :
123
- env ['ANDROID_NDK' ] = self .ctx .ndk_dir
101
+ env ['ANDROID_NDK' ] = self .ctx .ndk_dir
124
102
return env
125
103
126
104
def select_build_arch (self , arch ):
127
105
aname = arch .arch
128
106
if 'arm64' in aname :
129
- return 'android-arm64' if not self . use_legacy else 'linux-aarch64'
107
+ return 'android-arm64'
130
108
if 'v7a' in aname :
131
- return 'android-arm' if not self . use_legacy else 'android-armv7'
109
+ return 'android-arm'
132
110
if 'arm' in aname :
133
111
return 'android'
134
112
if 'x86_64' in aname :
@@ -144,24 +122,15 @@ def build_arch(self, arch):
144
122
# so instead we manually run perl passing in Configure
145
123
perl = sh .Command ('perl' )
146
124
buildarch = self .select_build_arch (arch )
147
- # XXX if we don't have no-asm, using clang and ndk-15c, i got:
148
- # crypto/aes/bsaes-armv7.S:1372:14: error: immediate operand must be in the range [0,4095]
149
- # add r8, r6, #.LREVM0SR-.LM0 @ borrow r8
150
- # ^
151
- # crypto/aes/bsaes-armv7.S:1434:14: error: immediate operand must be in the range [0,4095]
152
- # sub r6, r8, #.LREVM0SR-.LSR @ pass constants
153
- config_args = ['shared' , 'no-dso' , 'no-asm' ]
154
- if self .use_legacy :
155
- config_args .append ('no-krb5' )
156
- config_args .append (buildarch )
157
- if not self .use_legacy :
158
- config_args .append ('-D__ANDROID_API__={}' .format (self .ctx .ndk_api ))
125
+ config_args = [
126
+ 'shared' ,
127
+ 'no-dso' ,
128
+ 'no-asm' ,
129
+ buildarch ,
130
+ '-D__ANDROID_API__={}' .format (self .ctx .ndk_api ),
131
+ ]
159
132
shprint (perl , 'Configure' , * config_args , _env = env )
160
- self .apply_patch (
161
- 'disable-sover{}.patch' .format (
162
- '-legacy' if self .use_legacy else '' ), arch .arch )
163
- if self .use_legacy :
164
- self .apply_patch ('rename-shared-lib.patch' , arch .arch )
133
+ self .apply_patch ('disable-sover.patch' , arch .arch )
165
134
166
135
shprint (sh .make , 'build_libs' , _env = env )
167
136
0 commit comments