Bug 261779

Summary: math/R: TCLTK option fails when extra tcl package installed
Product: Ports & Packages Reporter: John Hein <jcfyecrayz>
Component: Individual Port(s)Assignee: Joseph Mingrone <jrm>
Status: Closed FIXED    
Severity: Affects Only Me CC: jrm
Priority: --- Flags: bugzilla: maintainer-feedback? (jrm)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
[patch] be explicit regarding which tcl/tk config script to use jcfyecrayz: maintainer-approval? (jrm)

Description John Hein 2022-02-07 17:11:21 UTC
Created attachment 231614 [details]
[patch] be explicit regarding which tcl/tk config script to use

math/R (with the TCLTK option) is on fails to install if tcl87 is installed along with tcl86/tk86 (for instance)...

===>   Registering installation for R-4.1.2
pkg-static: Unable to access file /z1/local/users/jhein/.nobak/wd/usr/ports/math/R/work/stage/usr/local/lib/R/library/tcltk/R/tcltk.rdb:No such file or directory
pkg-static: Unable to access file /z1/local/users/jhein/.nobak/wd/usr/ports/math/R/work/stage/usr/local/lib/R/library/tcltk/R/tcltk.rdx:No such file or directory
pkg-static: Unable to access file /z1/local/users/jhein/.nobak/wd/usr/ports/math/R/work/stage/usr/local/lib/R/library/tcltk/libs/tcltk.so:No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/math/R

This will be a somewhat rare condition, but the attached patch uses configure options to be explicit about which tcl/tk config script to use.

It seems that R gets confused and decides (at 'configure' time) to skip building with tcl support which breaks the plist (noticed later during 'make stage').

QA:
 - portlint (ok, no new warnings, no errors)
 - poudriere testport (ok)


No need to bump PORTREVISION, IMO.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-02-19 15:39:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=440a2e37d269fd244a5bab4fe804bd531daadac5

commit 440a2e37d269fd244a5bab4fe804bd531daadac5
Author:     John Hein <jcfyecrayz@liamekaens.com>
AuthorDate: 2022-02-19 15:34:48 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2022-02-19 15:37:52 +0000

    math/R: Specify tk_config location during configure

    PR:             261779

 math/R/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 Joseph Mingrone freebsd_committer freebsd_triage 2022-02-19 15:39:47 UTC
Committed.  Thanks.u