| Ticket UUID: | acb3684f666f00e60b2ec58a6c34ef9957209c0d | |||
| Title: | Tk 9.1.0 fails to cross-build from sources (fails to find harfbuzz) | |||
| Type: | Bug | Version: | 9.1.0 | |
| Submitter: | anonymous | Created on: | 2026-10-31 16:12:40 | |
| Subsystem: | 84. Unix Build | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2026-11-06 23:08:12 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2026-11-06 23:08:12 | |||
| Description: |
Hi! Recently, Helmut Grohne reported a bug in Tk 9.1 concerning failure to cross-build from the source to the Debian bug tracking system: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1152372 Appears that configure.ac hardcodes pkg-config for the build architecture, which does not allow to find harfbuzz for the intended architecture to build for. He proposes a patch, please, consider applying it (or making other changes which would allow Tk cross-build from the sources with harfbuzz enabled). | |||
| User Comments: |
jan.nijtmans added on 2026-11-06 23:08:12:
Merge to [ddd7e6de|trunk] Many thanks! serhiy.storchaka added on 2026-11-02 14:05:36: Jan, PKG_CHECK_MODULES is defined in pkg.m4, which autoreconf (used by Debian) pulls in, but plain autoconf does not, hence the errors. Branch unix-cross-pkg-config, [8fc8d8eaf1], adds unix/pkg.m4 and includes it in unix/aclocal.m4, as CPython does with its aclocal.m4. It is based on Helmut's patch, also converts the newer libspeechd check, and keeps the old behavior for HarfBuzz older than 2.8.2: bidi is disabled instead of failing. configure is regenerated with Autoconf 2.73. Not tested with a real cross-build; with --host=aarch64-linux-gnu and a fake toolchain, configure now uses aarch64-linux-gnu-pkg-config. jan.nijtmans added on 2026-11-02 12:58:45: Applying the patch, and running "autoconf", I get:
$ autoconf
configure.ac:41: error: undefined or overquoted macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:165: error: undefined or overquoted macro: AC_DEFINE
configure.ac:309: error: undefined or overquoted macro: AC_CHECK_LIB
configure.ac:395: error: undefined or overquoted macro: AC_CHECK_HEADER
configure.ac:407: error: undefined or overquoted macro: AC_SUBST
| |||
Attachments:
- cross.diff [download] added by anonymous on 2026-10-31 16:14:16. [details]
