Merge pull request #1063 from IdrisKalp/master

python bootstrap with openssl
This commit is contained in:
Idris Kalp
2020-03-01 15:38:54 +03:00
committed by GitHub
2 changed files with 13 additions and 4 deletions
+9 -1
View File
@@ -22,6 +22,14 @@ def setup():
autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR())
shelltools.cd("..")
shelltools.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ")
shelltools.cd("openssl-1.1.1d")
shelltools.system("./Configure --prefix=%s/temp --openssldir=%s/openssl/etc/ssl --libdir=lib no-shared enable-ec_nistp_64_gcc_128 linux-x86_64 -Wa,--noexecstack" %(get.workDIR(), get.workDIR()))
autotools.make()
autotools.make("install")
shelltools.cd("..")
shelltools.system("echo -e '\033[0;36mBuilding Python\033[0m' ")
pisitools.cflags.add("-fwrapv")
@@ -37,7 +45,7 @@ def setup():
shelltools.unlinkDir("Modules/%s" % dir)
shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR())
shelltools.export("LDFLAGS", "-L%s/temp/lib -lssl -lcrypto -lbz2 -lpthread -ldl" %get.workDIR())
autotools.autoreconf("-vif")
+4 -3
View File
@@ -14,8 +14,9 @@
<Description>Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days.</Description>
<Archive sha1sum="dc5784d11d09c29fbf3fc155e2f242b3d3309454" type="tarxz">https://www.python.org/ftp/python/2.7.17/Python-2.7.17.tar.xz</Archive>
<Archive sha1sum="bf7badf7e248e0ecf465d33c2f5aeec774209227" type="targz" target="Python-2.7.17">https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz</Archive>
<Archive sha1sum="056057782325134b76d1931c48f2c7e6595d7ef4" type="targz" target="Python-2.7.17">ftp://ftp.openssl.org/source/openssl-1.1.1d.tar.gz</Archive>
<BuildDependencies>
<Dependency>bzip2</Dependency>
<!-- <Dependency>bzip2</Dependency> -->
<!--<Dependency>tcl-devel</Dependency>-->
<Dependency>gdbm-devel</Dependency>
<Dependency>zlib-devel</Dependency>
@@ -24,7 +25,7 @@
<Dependency>libffi-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<!-- <Dependency>openssl-devel</Dependency> -->
<Dependency>readline-devel</Dependency>
<!-- Bootstrap -->
<!-- Comment these deps when bootstrapping -->
@@ -53,7 +54,7 @@
<Dependency>libffi</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>ncurses</Dependency>
<Dependency>openssl</Dependency>
<!-- <Dependency>openssl</Dependency> -->
<Dependency>readline</Dependency>
</RuntimeDependencies>
<Files>