Summary: | math/py-rpy2: Broken on FreeBSD: doesn't recognize the system | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuri Victorovich <yuri> | ||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | rhurlin | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(sunpoet) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Created attachment 204213 [details]
patch to recognize FreeBSD as a valid system
Hi Yuri,
It seems to be only a small problem with the detection of FreeBSD as a valid system. The attached patch should solve this.
(In reply to Rainer Hurling from comment #1) Hi Rainer, Thank you for the patch! Yuri Committed. Thanks! A commit references this bug: Author: sunpoet Date: Wed May 15 15:56:07 UTC 2019 New revision: 501733 URL: https://svnweb.freebsd.org/changeset/ports/501733 Log: Fix runtime system detection - Bump PORTREVISION for package change PR: 237736 Submitted by: yuri, Rainer Hurling <rhurlin@gwdg.de> Changes: head/math/py-rpy2/Makefile head/math/py-rpy2/files/ head/math/py-rpy2/files/patch-rpy-situation.py |
Testcase: > from rpy2.robjects.packages import importr > utils = importr('utils') Output: Traceback (most recent call last): File "rama.py", line 1, in <module> from rpy2.robjects.packages import importr File "/usr/local/lib/python3.6/site-packages/rpy2/robjects/__init__.py", line 14, in <module> import rpy2.rinterface as rinterface File "/usr/local/lib/python3.6/site-packages/rpy2/rinterface.py", line 4, in <module> from rpy2.rinterface_lib import openrlib File "/usr/local/lib/python3.6/site-packages/rpy2/rinterface_lib/openrlib.py", line 21, in <module> rlib = _dlopen_rlib(R_HOME) File "/usr/local/lib/python3.6/site-packages/rpy2/rinterface_lib/openrlib.py", line 16, in _dlopen_rlib lib_path = rpy2.situation.get_rlib_path(r_home, platform.system()) File "/usr/local/lib/python3.6/site-packages/rpy2/situation.py", line 71, in get_rlib_path raise ValueError('The system "%s" is not supported.') ValueError: The system "%s" is not supported.