Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832930 - dev-python/ipyparallel-8.2.0: fails with network sandbox due to yarn registry access
Summary: dev-python/ipyparallel-8.2.0: fails with network sandbox due to yarn registry...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-08 13:36 UTC by Denis Lisov
Modified: 2022-02-08 23:21 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,19.01 KB, text/plain)
2022-02-08 13:37 UTC, Denis Lisov
Details
full build log (ipyparallel-8.2.0:20220208-131850.log,6.85 KB, text/plain)
2022-02-08 13:38 UTC, Denis Lisov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2022-02-08 13:36:25 UTC
Fragment of the build log:

 * Package:    dev-python/ipyparallel-8.2.0
[...]
>>> Compiling source in /tmp/portage/dev-python/ipyparallel-8.2.0/work/ipyparallel-8.2.0 ...
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile

[...]

 *   Building the wheel via setuptools.build_meta
running bdist_wheel
running pre_dist
Installing build dependencies with npm.  This may take a while...
> jlpm install
yarn install v1.21.1
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@types%2freact: connect ENETUNREACH 104.16.16.35:443 - Local (0.0.0.0:0)".
info If you think this is a bug, please open a bug report with the information provided in "/tmp/portage/dev-python/ipyparallel-8.2.0/work/ipyparallel-8.2.0/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Traceback (most recent call last):
[...]
subprocess.CalledProcessError: Command '['/usr/sbin/jlpm', 'install']' returned non-zero exit status 1.
 * ERROR: dev-python/ipyparallel-8.2.0::gentoo failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3123:  Called distutils-r1_src_compile
 *   environment, line 1361:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  555:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2795:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2280:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2278:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  862:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1349:  Called distutils-r1_python_compile
 *   environment, line 1160:  Called die
 * The specific snippet of code:
 *           "${EPYTHON}" -c "import ${build_backend%:*}; 			import os; 			${build_backend/:/.}.build_wheel(os.environ['WHEEL_BUILD_DIR'])" || die "Wheel build failed";

Reproducible: Always
Comment 1 Denis Lisov 2022-02-08 13:37:06 UTC
Created attachment 764621 [details]
emerge --info
Comment 2 Denis Lisov 2022-02-08 13:38:44 UTC
Created attachment 764622 [details]
full build log
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-08 16:36:50 UTC
I've installed yarn and still can't reproduce.  Any clue what else I may be missing?
Comment 4 Bernd Feige 2022-02-08 18:29:29 UTC
(In reply to Michał Górny from comment #3)
> I've installed yarn and still can't reproduce.  Any clue what else I may be
> missing?

Get exactly the same here - maybe it depends on something in the profile (systemd?)
(here: default/linux/amd64/17.1/systemd)
Comment 5 Bernd Feige 2022-02-08 18:43:32 UTC
(In reply to Bernd Feige from comment #4)
> (In reply to Michał Górny from comment #3)
> > I've installed yarn and still can't reproduce.  Any clue what else I may be
> > missing?
> 
> Get exactly the same here - maybe it depends on something in the profile
> (systemd?)
> (here: default/linux/amd64/17.1/systemd)

With:
FEATURES=-network-sandbox emerge -1 dev-python/ipyparallel

the yarn build works but then "jupyter labextension build ."
fails with:

running install_data
error: can't copy 'ipyparallel/labextension/static/572.d4c49c9e00ca709b9f1d.js': doesn't exist or not a regular file

in a second attempt:

running install_data
error: can't copy 'ipyparallel/labextension/static/remoteEntry.34efbd5c8b146e4195cf.js': doesn't exist or not a regular file

It still fails every time.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-08 19:30:34 UTC
Could you try setting:

  export IPP_DISABLE_JS=1

and then emerging it?  If that helps, I'll put it into the ebuild.
Comment 7 Denis Lisov 2022-02-08 21:15:09 UTC
Built successfully with
IPP_DISABLE_JS=1 emerge -1u ipyparallel
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-08 22:30:23 UTC
Thanks for testing.  I'm going to push it when I'm done building kernels.
Comment 9 Larry the Git Cow gentoo-dev 2022-02-08 23:21:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7847c8678e84286eec1b07c5aed34b39c3a09bc

commit d7847c8678e84286eec1b07c5aed34b39c3a09bc
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-02-08 22:30:07 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-02-08 23:21:37 +0000

    dev-python/ipyparallel: Prevent rebuilding stuff via nodejs
    
    Closes: https://bugs.gentoo.org/832930
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/ipyparallel/ipyparallel-8.2.0.ebuild | 4 ++++
 1 file changed, 4 insertions(+)