#!/usr/bin/env bash python3 -c 'from pty import spawn; spawn(["echo", "ok"])' | tee /tmp/python_pty_spawn.log grep "OSError: out of pty devices" /tmp/python_pty_spawn.log && return 1 patch -Np1 -i ../expect-5.45.4-gcc15-1.patch ./configure --prefix=/usr \ --with-tcl=/usr/lib \ --enable-shared \ --disable-rpath \ --mandir=/usr/share/man \ --with-tclinclude=/usr/include make make test make install ln -svf expect5.45.4/libexpect5.45.4.so /usr/lib