[MacPorts] #71415: tk +quartz +universal installs corrupt libtk86.dylib

MacPorts noreply at macports.org
Wed Nov 27 22:29:18 UTC 2024


#71415: tk +quartz +universal installs corrupt libtk86.dylib
-----------------------+--------------------
 Reporter:  ned-deily  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:
 Keywords:             |       Port:  tk
-----------------------+--------------------
 Attempting to install `tk` with the `+quartz` and `+universal` variants
 from source (on macOS 15.1.1 Apple Silicon Mac) results in a text file
 being installed in `$PREFIX/lib/libtk8.6.dylib` rather than the expected
 shared library. (FTR, this macports installation has a non-standard
 install prefix but I don't expect that this is a factor here.) Without the
 `+universal` variant (just `+quartz`), the shared library is installed as
 expected. The `build`, `install`, or `activate` of the `tk +quartz
 +universal` port variant does not fail but builds of dependent ports, like
 `py312-tkinter +universal` will fail because of the bogus dylib file.


 {{{
 # port activate tk @8.6.14_0+quartz
 --->  Computing dependencies for tk
 --->  Deactivating tk @8.6.14_0+quartz+universal
 --->  Cleaning tk
 --->  Activating tk @8.6.14_0+quartz
 --->  Cleaning tk
 # file /opt/macports/lib/libtk8.6.dylib
 /opt/macports/lib/libtk8.6.dylib: Mach-O 64-bit dynamically linked shared
 library arm64
 # port activate tk @8.6.14_0+quartz+universal
 --->  Computing dependencies for tk
 --->  Deactivating tk @8.6.14_0+quartz
 --->  Cleaning tk
 --->  Activating tk @8.6.14_0+quartz+universal
 --->  Cleaning tk
 # file /opt/macports/lib/libtk8.6.dylib
 /opt/macports/lib/libtk8.6.dylib: ASCII text, with very long lines (391)
 # more /opt/macports/lib/libtk8.6.dylib
 Binary files
 /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tk/tk/work
 /destroot-arm64//opt/macports/lib/libtk8.6.dylib and
 /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tk/tk/work
 /destroot-ppc-intel//opt/macports/lib/libtk8.6.dylib differ
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71415>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list