[MacPorts] #40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support -----------------------+-------------------------------- Reporter: howarth@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: x11 | Port: blt -----------------------+-------------------------------- Currently the blt in MacPort segfaults when used by the apbstool plugin of pymol.[[BR]] This is fixed by using the http://svnweb.freebsd.org/ports/head/x11-toolkits/blt/files/patch-use- tkInt?revision=300897 [[BR]] patch with the addition of the required tcl/tk internal headers from tcl/tk 8.6.0.[[BR]] The attached Portfile.diff and patch-tcltk86_internals implements this change and[[BR]] eliminates the segfaults when clicking the "Choose Externally Generated PQR" button[[BR]] in pymol's APBS Tools plugin window when blt is installed. Note the submitted pymol update from https://trac.macports.org/ticket/38516#comment:2 needs to be used[[BR]] to provide additional fixes for the apbstools plugin to run under tcl/tk 8.6.0. -- Ticket URL: <https://trac.macports.org/ticket/40203> MacPorts <http://www.macports.org/> Ports system for OS X
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support ------------------------+---------------------- Reporter: howarth@… | Owner: markd@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: blt | ------------------------+---------------------- Changes (by macsforever2000@…): * keywords: x11 => haspatch * owner: macports-tickets@… => markd@… * version: 2.2.0 => Comment: In the future, please Cc the port maintainers (port info --maintainers blt). -- Ticket URL: <https://trac.macports.org/ticket/40203#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support ------------------------+---------------------- Reporter: howarth@… | Owner: markd@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: blt | ------------------------+---------------------- Comment (by howarth@…): Note that the patch has to bundle the private tk headers since MacPorts doesn't install the private headers. On FreeBSD and fink, we do install the private tcl/tk headers so that those are used instead. FYI. -- Ticket URL: <https://trac.macports.org/ticket/40203#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support ------------------------+---------------------- Reporter: howarth@… | Owner: markd@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: blt | ------------------------+---------------------- Comment (by egall@…): Replying to [comment:2 howarth@…]:
Note that the patch has to bundle the private tk headers since MacPorts doesn't install the private headers. On FreeBSD and fink, we do install the private tcl/tk headers so that those are used instead. FYI.
Homebrew also installs the private tcl/tk headers. See also the ticket I opened about this (#39431) and the ticket that it was closed as a duplicate of (#17189) for more on installing the private tcl/tk headers. -- Ticket URL: <https://trac.macports.org/ticket/40203#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support ------------------------+---------------------- Reporter: howarth@… | Owner: markd@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: blt | ------------------------+---------------------- Comment (by egall@…): Also my copy of the proposed port for tcl84 would also install the private headers (for its version): see #34826 and https://github.com/cooljeanius/LocalPorts/blob/master/lang/tcl84/Portfile#L4... -- Ticket URL: <https://trac.macports.org/ticket/40203#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support ------------------------+---------------------- Reporter: howarth@… | Owner: markd@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: blt | ------------------------+---------------------- Comment (by howarth@…): Both fink and fedora use a different approach which in fink looks like... [[BR]] for pkg in tcl tk; do[[BR]] mkdir -p %i/include/tcltk- private/${pkg}${MAJORVER}/{generic,unix}[[BR]] cp ${pkg}%v/generic/*.h %i/include/tcltk- private/${pkg}${MAJORVER}/generic[[BR]] cp ${pkg}%v/unix/*.h %i/include/tcltk- private/${pkg}${MAJORVER}/unix[[BR]] [[BR]] pushd %i/include[[BR]] for hdr in *.h ; do[[BR]] if [ -f tcltk- private/${pkg}${MAJORVER}/generic/${hdr} ]; then[[BR]] ln -sf ../../../${hdr} tcltk- private/${pkg}${MAJORVER}/generic[[BR]] fi[[BR]] done[[BR]] popd[[BR]] [[BR]] perl -pi -e "s,%b/${pkg}%v/unix,%p/lib,; s,%b,%p/include /tcltk-private,; s,/${pkg}%v,/${pkg}${MAJORVER},g" %i/lib/${pkg}Config.sh[[BR]] done[[BR]] Note that only the generic headers get symlinked outside of the private header subdirectory -- Ticket URL: <https://trac.macports.org/ticket/40203#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support ------------------------+-------------------------------- Reporter: howarth@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: blt | ------------------------+-------------------------------- Changes (by mf2k@…): * owner: markd@… => macports-tickets@… Old description:
Currently the blt in MacPort segfaults when used by the apbstool plugin of pymol.[[BR]] This is fixed by using the http://svnweb.freebsd.org/ports/head/x11-toolkits/blt/files/patch-use- tkInt?revision=300897 [[BR]] patch with the addition of the required tcl/tk internal headers from tcl/tk 8.6.0.[[BR]] The attached Portfile.diff and patch-tcltk86_internals implements this change and[[BR]] eliminates the segfaults when clicking the "Choose Externally Generated PQR" button[[BR]] in pymol's APBS Tools plugin window when blt is installed.
Note the submitted pymol update from https://trac.macports.org/ticket/38516#comment:2 needs to be used[[BR]] to provide additional fixes for the apbstools plugin to run under tcl/tk 8.6.0.
New description: Currently the blt in MacPort segfaults when used by the apbstool plugin of pymol.[[BR]] This is fixed by using the http://svnweb.freebsd.org/ports/head/x11-toolkits/blt/files/patch-use- tkInt?revision=300897 [[BR]] patch with the addition of the required tcl/tk internal headers from tcl/tk 8.6.0.[[BR]] The attached Portfile.diff and patch-tcltk86_internals implements this change and[[BR]] eliminates the segfaults when clicking the "Choose Externally Generated PQR" button[[BR]] in pymol's APBS Tools plugin window when blt is installed. Note the submitted pymol update from ticket:38516#comment:2 needs to be used[[BR]] to provide additional fixes for the apbstools plugin to run under tcl/tk 8.6.0. -- Comment: markd has retired. See #44782. -- Ticket URL: <https://trac.macports.org/ticket/40203#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts