Opened 10 years ago

Closed 10 years ago

#46841 closed defect (fixed)

rNMR: build fails when R is not installed with the +tcltk variant

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: howarth.at.macports@…
Priority: Normal Milestone:
Component: ports Version: 2.3.99
Keywords: haspatch Cc:
Port: rNMR

Description

rNMR fails to build if the R port is not installed with the +tcltk variant:

--->  Building rNMR
DEBUG: Executing org.macports.build (rNMR)
* installing *source* package ‘rNMR’ ...
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Tcl/Tk support is not available on this system
Error : package ‘tcltk’ could not be loaded
ERROR: lazy loading failed for package ‘rNMR’
* removing ‘/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_rNMR/rNMR/work/rNMR_1.1.7/pkg/rNMR’
Command failed: /opt/local/bin/R CMD INSTALL -l pkg --byte-compile --build /Users/rschmidt/macports/distfiles/rNMR/rNMR_1.1.7.tar.gz
Exit code: 1

The only fix we currently have available for this situation is to use the active_variants 1.1 portgroup to inform the user that they must rebuild the dependency with the required variant. The attached patch does this. May I commit it?

Attachments (1)

rNMR.diff (410 bytes) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: rNMR.diff added

comment:1 Changed 10 years ago by howarth.at.macports@…

Go ahead and commit that. Thanks.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.