@@ -30,7 +30,7 @@ BUILD_NUMBER=custom
30
30
MACOSX_DEPLOYMENT_TARGET =10.8
31
31
32
32
# Version of packages that will be compiled by this meta-package
33
- PYTHON_VERSION =3.8.0
33
+ PYTHON_VERSION =3.8.3
34
34
PYTHON_VER =$(basename $(PYTHON_VERSION ) )
35
35
36
36
OPENSSL_VERSION_NUMBER =1.1.1
@@ -227,16 +227,12 @@ endif
227
227
228
228
# Build OpenSSL
229
229
$$(OPENSSL_DIR-$1 ) /libssl.a $$(OPENSSL_DIR-$1 ) /libcrypto.a: $$(OPENSSL_DIR-$1 ) /Makefile
230
- # Installing multiple times causes problems with the man directory.
231
- # Since we're just overwriting anyway, and we're not going to keep the man files
232
- # delete the man directory (if it exists) first.
233
- rm -rf $(PROJECT_DIR ) /build/$2/openssl/man
234
- # Make the build
230
+ # Make the build, and install just the software (not the docs)
235
231
cd $$(OPENSSL_DIR-$1 ) && \
236
232
CC="$$(CC-$1 ) " \
237
233
CROSS_TOP="$$(dir $$(SDK_ROOT-$1 ) ) .." \
238
234
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1 ) ) " \
239
- make all && make install
235
+ make all && make install_sw
240
236
241
237
# Unpack BZip2
242
238
$$(BZIP2_DIR-$1 ) /Makefile: downloads/bzip2-$(BZIP2_VERSION ) .tgz
@@ -276,17 +272,22 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $$(PYTHON_HOS
276
272
tar zxf downloads/Python-$(PYTHON_VERSION ) .tgz --strip-components 1 -C $$(PYTHON_DIR-$1 )
277
273
# Apply target Python patches
278
274
cd $$(PYTHON_DIR-$1 ) && patch -p1 < $(PROJECT_DIR ) /patch/Python/Python.patch
279
- cp -f $(PROJECT_DIR ) /patch/Python/Setup.embedded $$(PYTHON_DIR-$1 ) /Modules/Setup.embedded
280
-
281
275
# Configure target Python
282
276
ifeq ($2,macOS)
283
- # Make a fully embedded macOS build
277
+ # A locally hosted Python requires a full Setup.local configuration
278
+ # because there's no PYTHON_HOST_PLATFORM to cause Setup.local to be
279
+ # generated
284
280
cat $$(PYTHON_DIR-$1)/Modules/Setup.embedded $(PROJECT_DIR)/patch/Python/Setup.macOS-x86_64 > $$(PYTHON_DIR-$1)/Modules/Setup.local
281
+ # Make a fully embedded macOS build
285
282
cd $$(PYTHON_DIR-$1) && MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) ./configure \
286
283
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
287
284
--without-doc-strings --enable-ipv6 --without-ensurepip \
288
285
$$(PYTHON_CONFIGURE-$2)
289
286
else
287
+ # Copy in the embedded and platform/arch configuration
288
+ cp -f $(PROJECT_DIR)/patch/Python/Setup.embedded $$(PYTHON_DIR-$1)/Modules/Setup.embedded
289
+ if [ -e "$(PROJECT_DIR)/patch/Python/Setup.$2-$$(ARCH-$1)" ]; then \
290
+ cp -f $(PROJECT_DIR)/patch/Python/Setup.$2-$$(ARCH-$1) $$(PYTHON_DIR-$1)/Modules/Setup.$2-$$(ARCH-$1); fi
290
291
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
291
292
CC="$$(CC-$1)" LD="$$(CC-$1)" \
292
293
--host=$$(MACHINE_DETAILED-$1)-apple-$(shell echo $2 | tr '[:upper:]' '[:lower:]') \
0 commit comments