Ticket UUID: | 5916e48806d93dd9b24f8f73c3f4d7ed74b04eb3 | |||
Title: | tcl.pc: hardcoded depedencies, missing build flags | |||
Type: | Bug | Version: | ||
Submitter: | chrstphrchvz | Created on: | 2023-04-29 22:24:48 | |
Subsystem: | 54. Configuration Reporting | Assigned To: | jan.nijtmans | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2023-07-11 09:30:19 | |
Resolution: | Fixed | Closed By: | jan.nijtmans | |
Closed on: | 2023-07-11 09:30:19 | |||
Description: |
I am not very familiar with pkg-config, but there seem to be a few issues with the installed tcl.pc file.
| |||
User Comments: |
jan.nijtmans added on 2023-07-11 09:30:19:
Fixed [4b11db28e63dbe4a|here]. Looks good to me. chrstphrchvz added on 2023-06-26 20:54:00: I am attaching a brief patch for 8.7 and later, which I would consider the bare minimum for improving tcl.pc to correctly indicate bundled or external libtommath dependency. It appears to work with Tkinter. The approach in the patch assumes that if external libtommath is used, then it was installed with pkg-config data; maybe it often is, but that is not guaranteed. (MacPorts, for example, only recently began installing libtommath.pc: https://github.com/macports/macports-ports/pull/18424) Ideally, if a dependency is listed in tcl.pc, then that should mean Tcl used pkg-config to detect it and retrieve its build flags (e.g. -lz, -ltommath); only when a dependency is not detected by pkg-config should Tcl try providing build flags. |
Attachments:
- 5916e48806-ltm-8.7.diff [download] added by chrstphrchvz on 2023-06-26 20:59:25. [details]