mirror of https://github.com/google/oss-fuzz.git
This reverts commit fa0c1b4c6d
.
This commit is contained in:
parent
2b2f5c504f
commit
0deeef6e31
|
@ -14,31 +14,29 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
################################################################################
|
||||
"""
|
||||
openssl.py
|
||||
"""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
import package
|
||||
|
||||
|
||||
def add_no_asm_arg(config_path):
|
||||
def AddNoAsmArg(config_path):
|
||||
"""Add --no-asm to config scripts."""
|
||||
shutil.move(config_path, config_path + '.real')
|
||||
with open(config_path, 'w') as out_file:
|
||||
out_file.write('#!/bin/sh\n' '%s.real no-asm "$@"\n' % config_path)
|
||||
os.chmod(config_path, 0o755)
|
||||
with open(config_path, 'w') as f:
|
||||
f.write(
|
||||
'#!/bin/sh\n'
|
||||
'%s.real no-asm "$@"\n' % config_path)
|
||||
os.chmod(config_path, 0755)
|
||||
|
||||
|
||||
class Package(package.Package): # pylint: disable=too-few-public-methods
|
||||
class Package(package.Package):
|
||||
"""openssl package."""
|
||||
|
||||
def __init__(self, apt_version):
|
||||
super(Package, self).__init__('openssl', apt_version)
|
||||
|
||||
# pylint: disable=no-self-use,unused-argument
|
||||
def pre_build(self, source_directory, env, custom_bin_dir):
|
||||
""" pre_build() """
|
||||
add_no_asm_arg(os.path.join(source_directory, 'Configure'))
|
||||
add_no_asm_arg(os.path.join(source_directory, 'config'))
|
||||
def PreBuild(self, source_directory, env, custom_bin_dir):
|
||||
AddNoAsmArg(os.path.join(source_directory, 'Configure'))
|
||||
AddNoAsmArg(os.path.join(source_directory, 'config'))
|
||||
|
|
Loading…
Reference in New Issue