File tree Expand file tree Collapse file tree 5 files changed +6
-55
lines changed Expand file tree Collapse file tree 5 files changed +6
-55
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sed "${sed_args[@]}" "s|/tools/host|${TOOLS_PATH}/host|g" ${TOOLS_PATH}/host/sha
44
44
# We force linking of external static libraries by removing the shared
45
45
# libraries. This is hacky. But we're building in a temporary container
46
46
# and it gets the job done.
47
- find ${TOOLS_PATH} /deps -name ' *.so*' -exec rm {} \;
47
+ find ${TOOLS_PATH} /deps -name ' *.so*' -a \! \( -name ' libtcl*.so* ' -or -name ' libtk*.so* ' \) - exec rm {} \;
48
48
49
49
tar -xf Python-${PYTHON_VERSION} .tar.xz
50
50
@@ -1253,6 +1253,7 @@ if [ -d "${TOOLS_PATH}/deps/lib/tcl8" ]; then
1253
1253
1254
1254
if [[ " ${PYBUILD_PLATFORM} " != macos* ]]; then
1255
1255
cp -av ${TOOLS_PATH} /deps/lib/Tix8.4.3 ${ROOT} /out/python/install/lib/
1256
+ cp -av ${TOOLS_PATH} /deps/lib/lib* .so ${ROOT} /out/python/install/lib/
1256
1257
fi
1257
1258
fi
1258
1259
Original file line number Diff line number Diff line change @@ -22,21 +22,6 @@ if [ -n "${STATIC}" ]; then
22
22
fi
23
23
fi
24
24
25
- patch -p1 << 'EOF '
26
- diff --git a/unix/Makefile.in b/unix/Makefile.in
27
- --- a/unix/Makefile.in
28
- +++ b/unix/Makefile.in
29
- @@ -1813,7 +1813,7 @@ configure-packages:
30
- $$i/configure --with-tcl=../.. \
31
- --with-tclinclude=$(GENERIC_DIR) \
32
- $(PKG_CFG_ARGS) --libdir=$(PACKAGE_DIR) \
33
- - --enable-shared --enable-threads; ) || exit $$?; \
34
- + --enable-shared=no --enable-threads; ) || exit $$?; \
35
- fi; \
36
- fi; \
37
- fi; \
38
- EOF
39
-
40
25
# Remove packages we don't care about and can pull in unwanted symbols.
41
26
rm -rf pkgs/sqlite* pkgs/tdbc*
42
27
@@ -48,12 +33,9 @@ CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ./conf
48
33
--build=${BUILD_TRIPLE} \
49
34
--host=${TARGET_TRIPLE} \
50
35
--prefix=/tools/deps \
51
- --enable-shared=no \
36
+ --enable-shared \
52
37
--enable-threads
53
38
54
39
make -j ${NUM_CPUS}
55
40
make -j ${NUM_CPUS} install DESTDIR=${ROOT} /out
56
41
make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT} /out
57
-
58
- # For some reason libtcl*.a have weird permissions. Fix that.
59
- chmod 644 ${ROOT} /out/tools/deps/lib/libtcl* .a
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ./configure \
31
31
--host=${TARGET_TRIPLE} \
32
32
--prefix=/tools/deps \
33
33
--with-tcl=${TOOLS_PATH} /deps/lib \
34
- --enable-shared=no \
34
+ --enable-shared \
35
35
--enable-threads \
36
36
${EXTRA_CONFIGURE_FLAGS}
37
37
@@ -53,7 +53,4 @@ touch wish
53
53
make -j ${NUM_CPUS} install DESTDIR=${ROOT} /out
54
54
make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT} /out
55
55
56
- # For some reason libtk*.a have weird permissions. Fix that.
57
- chmod 644 /${ROOT} /out/tools/deps/lib/libtk* .a
58
-
59
56
rm ${ROOT} /out/tools/deps/bin/wish*
Original file line number Diff line number Diff line change @@ -676,40 +676,11 @@ _tkinter:
676
676
- WITH_APPINIT
677
677
includes-deps :
678
678
- include/X11
679
+ build-mode : shared
679
680
links :
680
681
- tcl8.6
681
682
- tk8.6
682
683
683
- # Without -ObjC, we get a crash: -[TKApplication tkProcessEvent:]: unrecognized selector sent to instance.
684
- # See also https://core.tcl-lang.org/tk/tktview/85f316beb15108ac43b03fa6c8608e31f3ae5f92.
685
- # This is apparently an issue with static linking Objective-C binaries.
686
- linker-args :
687
- - args : ["-ObjC"]
688
- targets :
689
- - .*-apple-darwin
690
- links-conditional :
691
- - name : X11
692
- targets :
693
- - .*-unknown-linux-.*
694
- - name : xcb
695
- targets :
696
- - .*-unknown-linux-.*
697
- - name : Xau
698
- targets :
699
- - .*-unknown-linux-.*
700
- # Many of these are dependencies of libtcl and libtk.
701
- frameworks :
702
- - AppKit
703
- - ApplicationServices
704
- - Carbon
705
- - Cocoa
706
- - CoreFoundation
707
- - CoreServices
708
- - CoreGraphics
709
- - IOKit
710
- - QuartzCore
711
- - UniformTypeIdentifiers
712
-
713
684
_tokenize :
714
685
minimum-python-version : " 3.11"
715
686
config-c-only : true
Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ const GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13: &[&str] = &["_msi"];
822
822
const GLOBAL_EXTENSIONS_WINDOWS_NO_STATIC : & [ & str ] = & [ "_testinternalcapi" , "_tkinter" ] ;
823
823
824
824
/// Extension modules that should be built as shared libraries.
825
- const SHARED_LIBRARY_EXTENSIONS : & [ & str ] = & [ "_crypt" ] ;
825
+ const SHARED_LIBRARY_EXTENSIONS : & [ & str ] = & [ "_crypt" , "_tkinter" ] ;
826
826
827
827
const PYTHON_VERIFICATIONS : & str = include_str ! ( "verify_distribution.py" ) ;
828
828
You can’t perform that action at this time.
0 commit comments