Skip to content

Can't add tkinter because of missing libx11-dev package #19

@8tm

Description

@8tm

Every time I'm trying to build python with all modules it failing on tkinter.
Main reason is missing libx11-dev package but even if I install libx11-dev package it's still failing because of "1 problematic" issue with tkinter.

INFO Symlink build/cpython-3.9.12/ppp-marker/3.9.12/lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a <- build/cpython-3.9.12/ppp-marker/3.9.12/lib/libpython3.9.a
        prefix  build/cpython-3.9.12/ppp-marker/3.9.12
          _bz2  _bz2*.so
       _ctypes  1.1.0 _ctypes*.so
       _curses  2.2 _curses*.so
          _dbm  _dbm*.so
      _decimal  1.70 _decimal*.so
         _gdbm  1.23.0 _gdbm*.so
         _lzma  _lzma*.so
      _sqlite3  3.42.0 _sqlite3*.so
          _ssl  OpenSSL 1.1.1u  30 May 2023 _ssl*.so
      _tkinter  *absent* None
         _uuid  _uuid*.so
           pip  23.1.2 lib/python3.9/site-packages/pip
       pyexpat  2.4.7 pyexpat*.so
      readline  8.2 readline*.so
    setuptools  *absent* build/cpython-3.9.12/ppp-marker/3.9.12/lib/python3.9/distutils/core.py
          zlib  1.2.13 zlib*.so
  libpython*.a  54 MB lib/libpython3.9.a lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a
 libpython*.so  -not used-
  install size  123 MB
ERROR Build failed: 
-- 1 problematic
_tkinter*_failed.so
INFO Compiling cpython took 3 minutes 32 seconds
INFO Overall compilation took 5 minutes 5 seconds

Used command:
portable-python -c portable-python.yml build 3.9.12 -m libffi,zlib,xz,bzip2,readline,openssl,sqlite,bdb,gdbm,uuid,tkinter

Tested in docker with and without installed libx11-dev packages.

Build without libx11-dev:
13-tk.log

Build with installed libx11-dev:
13-tk.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions