Bug 261779 - math/R: TCLTK option fails when extra tcl package installed
Summary: math/R: TCLTK option fails when extra tcl package installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joseph Mingrone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-07 17:11 UTC by John Hein
Modified: 2022-02-19 15:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (jrm)


Attachments
[patch] be explicit regarding which tcl/tk config script to use (617 bytes, patch)
2022-02-07 17:11 UTC, John Hein
jcfyecrayz: maintainer-approval? (jrm)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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