As far as I remember, download is only possible at fetch phase, which occurs before unpack phase. However scikits_learn-0.18.2 attempts to download a file from Internet: ======================================================================= downloading Olivetti faces from http://cs.nyu.edu/~roweis/data/olivettifaces.mat to /tmp/portage/sci-libs/scikits_learn-0.18.2/homedir/scikit_learn_data ________________________________________________________________________________ ../examples/plot_multioutput_face_completion.py is not compiling: Traceback (most recent call last): File "/tmp/portage/sci-libs/scikits_learn-0.18.2/work/scikit-learn-0.18.2/doc/sphinxext/sphinx_gallery/gen_rst.py", line 467, in execute_script exec(code_block, example_globals) File "<string>", line 15, in <module> File "/tmp/portage/sci-libs/scikits_learn-0.18.2/work/scikit-learn-0.18.2-python2_7/lib/sklearn/datasets/olivetti_faces.py", line 116, in fetch_olivetti_faces fhandle = urlopen(DATA_URL) File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib64/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib64/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib64/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/lib64/python2.7/urllib2.py", line 1228, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib64/python2.7/urllib2.py", line 1198, in do_open raise URLError(err) URLError: <urlopen error [Errno 110] Connection timed out> ================================================================ Reproducible: Always Steps to Reproduce: 1. use=examples emerge =sci-libs/scikits_learn-0.18.2 Actual Results: Internet access after unpack phase Expected Results: Internet not accessed, once source is in /distfiles
Created attachment 487532 [details] ebuild log
sci-libs/scikits_learn-0.18.1 attempts to illegally access the Net, too: Downloading species data from http://www.cs.princeton.edu/~schapire/maxent/datasets/samples.zip to /tmp/portage/sci-libs/scikits_learn-0.18.1/homedir/scikit_learn_data
Are there hints for malicious code, or is it just silly?
Don't know if it is malicious. I suspect that sphinx attempts to access Internet when building documentation ======================================================================= Warning: Embedding the documentation hyperlinks requires Internet access. Please check your network connection. Unable to continue embedding `nibabel` links due to a URL Error: (error(110, 'Connection timed out'),) Makefile:38: recipe for target 'html' failed ======================================================================= That was a piece of log I attached (USE='doc examples' emerge =sci-libs/scikits_learn-0.18.2). sphinx error logs should be available at $WORKDIR/temp/sphinx-err-*.log
Yes, building docs will execute example that dowloads datasets from internet. This will be true for a number of other Python packages that use sphinx + sphinx-gallery (https://github.com/sphinx-gallery/sphinx-gallery) . This won't be fixed upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7599874114b03ecbc9592d9792e9379a3e8a760b commit 7599874114b03ecbc9592d9792e9379a3e8a760b Author: Aisha Tammy <gentoo@aisha.cc> AuthorDate: 2020-10-15 14:26:05 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2020-11-09 14:01:44 +0000 sci-libs/scikits_learn: version bump to 0.23.2 drop dependency on sci-libs/scikits drop old versions. Closes: https://bugs.gentoo.org/692662 Closes: https://bugs.gentoo.org/626796 Closes: https://bugs.gentoo.org/614558 Closes: https://bugs.gentoo.org/469924 Reported-by: Zoltan Puskas, Roman Yurchak, Крыськов Денис Reported-by: Roman Yurchak, Neil, Tomáš Mózes, Thomas Kemmer Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Signed-off-by: Benda Xu <heroxbd@gentoo.org> sci-libs/scikits_learn/Manifest | 4 +- .../files/scikits_learn-0.18.1-system-cblas.patch | 32 ------ .../files/scikits_learn-0.20.2-fix-cdfast.patch | 42 -------- .../scikits_learn/scikits_learn-0.19.0-r1.ebuild | 107 -------------------- sci-libs/scikits_learn/scikits_learn-0.20.2.ebuild | 109 --------------------- sci-libs/scikits_learn/scikits_learn-0.20.4.ebuild | 109 --------------------- ...p1.ebuild => scikits_learn-0.22.2_p1-r1.ebuild} | 8 +- sci-libs/scikits_learn/scikits_learn-0.23.2.ebuild | 70 +++++++++++++ 8 files changed, 72 insertions(+), 409 deletions(-)