[Bug 256626] lang/tcl87: add dependency on math/libtommath

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 15 Jun 2021 19:29:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256626

            Bug ID: 256626
           Summary: lang/tcl87: add dependency on math/libtommath
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: m.ne@gmx.net
                CC: gahr@FreeBSD.org, tcltk@FreeBSD.org
                CC: gahr@FreeBSD.org, tcltk@FreeBSD.org

Created attachment 225835
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225835&action=edit
Patch adding dependency on math/libtommath

When trying to build x11-toolkits/py-tkinter with the latest tcl87 the build
failed. Adding math/libtommath as a run-time dependency fixed the build for me.
An alternative approach might be to patch out the offending #include from
tclTomMath.h, but the dependency route seemed easier (and cleaner) to me.

The relevant part of the build log:

===>  Building for py38-tkinter-3.8.10_6
running build
running build_ext
building '_tkinter' extension
creating build
creating build/temp.freebsd-13.0-STABLE-amd64-3.8
cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DWITH_APPINIT=1
-I/usr/local/include -I/usr/local/include/tcl8.7 -I/usr/local/include/tk8.7
-I/usr/local/include -I/usr/local/include/python3.8 -c _tkinter.c -o
build/temp.freebsd-13.0-STABLE-amd64-3.8/_tkinter.o
In file included from _tkinter.c:60:
/usr/local/include/tcl8.7/tclTomMath.h:43:13: fatal error: 'tommath.h' file not
found
#   include "tommath.h"
            ^~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1
*** Error code 1

Stop.
make: stopped in /usr/ports/x11-toolkits/py-tkinter

-- 
You are receiving this mail because:
You are on the CC list for the bug.