Skip to content

Commit efce0a0

Browse files
committed
Removed efence
1 parent 5bfe36a commit efce0a0

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ env:
66
- CONAN_LOGIN_USERNAME: "lasote"
77
- CONAN_CHANNEL: "testing"
88
- CONAN_UPLOAD: "https://api.bintray.com/conan/lasote/conan-repo"
9-
- CONAN_STABLE_BRANCH_PATTERN="release/*"
10-
- CONAN_TOTAL_PAGES=2
9+
- CONAN_STABLE_BRANCH_PATTERN: "release/*"
10+
- CONAN_TOTAL_PAGES: 2
11+
# REMOVE THIS WHEN MERGED TO CONAN-CENTER!
12+
- REMOTES: "https://api.bintray.com/conan/lasote/conan-repo"
1113

1214
linux: &linux
1315
os: linux

build.py

-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
if __name__ == "__main__":
55
builder = ConanMultiPackager()
66
builder.add_common_builds(shared_option_name="OpenSSL:shared", pure_c=True)
7-
efence_builds = []
8-
for settings, options in builder.builds:
9-
efence_builds.append([settings, dict(options.items() + [('OpenSSL:no_electric_fence', True)])])
10-
efence_builds.append([settings, dict(options.items() + [('OpenSSL:no_electric_fence', False)])])
11-
builder.builds = efence_builds
127
builder.run()

conanfile.py

+5-20
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class OpenSSLConan(ConanFile):
1313
"toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols"
1414
# https://github.com/openssl/openssl/blob/OpenSSL_1_0_2l/INSTALL
1515
options = {"no_threads": [True, False],
16-
"no_electric_fence": [True, False],
1716
"no_zlib": [True, False],
1817
"zlib_dynamic": [True, False],
1918
"shared": [True, False],
@@ -56,22 +55,13 @@ def source(self):
5655
os.unlink("openssl.tar.gz")
5756

5857
def config_options(self):
59-
if not self.options.no_electric_fence and self.settings.os == "Linux":
60-
self.options["electric-fence"].shared = self.options.shared
6158
if not self.options.no_zlib:
6259
self.options["zlib"].shared = self.options.zlib_dynamic
6360

6461
def configure(self):
6562
del self.settings.compiler.libcxx
6663

6764
def requirements(self):
68-
if not self.options.no_electric_fence and self.settings.os == "Linux":
69-
private = False if self.options.shared else True
70-
self.requires.add("electric-fence/2.2.0@lasote/stable", private=private)
71-
else:
72-
if "electric-fence" in self.requires:
73-
del self.requires["electric-fence"]
74-
7565
if not self.options.no_zlib:
7666
self.requires.add("zlib/1.2.11@conan/stable", private=False)
7767
else:
@@ -101,15 +91,9 @@ def build(self):
10191
lib_path = self.deps_cpp_info["zlib"].lib_paths[0] # Just path, linux will find the right file
10292
config_options_string += ' --with-zlib-include="%s"' % include_path
10393
config_options_string += ' --with-zlib-lib="%s"' % lib_path
104-
# EFENCE LINK
105-
if "electric-fence" in self.requires:
106-
libs = " ".join(["-l%s" % lib for lib in self.deps_cpp_info["electric-fence"].libs])
107-
config_options_string += ' -L"%s" -I"%s" %s' % (self.deps_cpp_info["electric-fence"].lib_paths[0],
108-
self.deps_cpp_info["electric-fence"].include_paths[0],
109-
libs)
110-
else:
111-
tools.replace_in_file("./openssl-%s/Configure" % self.version, "::-lefence::", "::")
112-
tools.replace_in_file("./openssl-%s/Configure" % self.version, "::-lefence ", "::")
94+
95+
tools.replace_in_file("./openssl-%s/Configure" % self.version, "::-lefence::", "::")
96+
tools.replace_in_file("./openssl-%s/Configure" % self.version, "::-lefence ", "::")
11397
self.output.warn("=====> Options: %s" % config_options_string)
11498

11599
for option_name in self.options.values.fields:
@@ -140,7 +124,8 @@ def run_in_src(self, command, show_output=False):
140124
def linux_build(self, config_options_string):
141125
m32_suff = " -m32" if self.settings.arch == "x86" else ""
142126
if self.settings.build_type == "Debug":
143-
config_options_string = "-d " + config_options_string
127+
config_options_string = "-d no-asm -g3 -O0 -fno-omit-frame-pointer " \
128+
"-fno-inline-functions" + config_options_string
144129

145130
m32_pref = "setarch i386" if self.settings.arch == "x86" else ""
146131
config_line = "%s ./config -fPIC %s %s" % (m32_pref, config_options_string, m32_suff)

0 commit comments

Comments
 (0)