Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576942 - [R_Overlay] issues with sci-CRAN/ggplot2-2.1.0
Summary: [R_Overlay] issues with sci-CRAN/ggplot2-2.1.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 07:56 UTC by Kalin KOZHUHAROV
Modified: 2016-03-13 07:56 UTC (History)
2 users (show)

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


Attachments
ggplot2-2.1.0.ebuild.patch (ggplot2-2.1.0.ebuild.patch,493 bytes, patch)
2016-03-10 07:56 UTC, Kalin KOZHUHAROV
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kalin KOZHUHAROV 2016-03-10 07:56:51 UTC
Created attachment 427864 [details, diff]
ggplot2-2.1.0.ebuild.patch

I recently discovered the R_Overlay, but trying to use it hit a bug with sci-CRAN/ggplot2-2.1.0. Poking around, I am not yet sure that here is the place to report bugs for that overlay, please point me in the right direction.

The ebuild fails with:
emerge sci-CRAN/ggplot2
Calculating dependencies  ... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sci-CRAN/ggplot2-2.1.0::R_Overlay
 * ggplot2_2.1.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking ggplot2_2.1.0.tar.gz to /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/work
>>> Source unpacked in /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/work
>>> Preparing source in /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/work ...
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (ggplot2)
>>> Source compiled.
>>> Test phase [not enabled]: sci-CRAN/ggplot2-2.1.0

>>> Install ggplot2-2.1.0 into /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/image/ category sci-CRAN
>>> Completed installing ggplot2-2.1.0 into /var/tmp/portage/sci-CRAN/ggplot2-2.1.0/image/

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python3.4/site-packages/_emerge/main.py", line 1174, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python3.4/site-packages/_emerge/actions.py", line 3231, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/python3.4/site-packages/_emerge/actions.py", line 501, in action_build
    retval = mergetask.merge()
  File "/usr/lib64/python3.4/site-packages/_emerge/Scheduler.py", line 1032, in merge
    rval = self._merge()
  File "/usr/lib64/python3.4/site-packages/_emerge/Scheduler.py", line 1434, in _merge
    self._main_loop()
  File "/usr/lib64/python3.4/site-packages/_emerge/Scheduler.py", line 1411, in _main_loop
    self._event_loop.iteration()
  File "/usr/lib64/python3.4/site-packages/portage/util/_eventloop/EventLoop.py", line 270, in iteration
    if not x.callback(f, event, *x.args):
  File "/usr/lib64/python3.4/site-packages/portage/util/_async/PipeLogger.py", line 92, in _output_handler
    self.wait()
  File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.4/site-packages/_emerge/SpawnProcess.py", line 174, in _pipe_logger_exit
    self.wait()
  File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.4/site-packages/_emerge/EbuildPhase.py", line 234, in _ebuild_exit
    _post_src_install_write_metadata(settings)
  File "/usr/lib64/python3.4/site-packages/portage/package/ebuild/doebuild.py", line 1962, in _post_src_install_write_metadata
    deps = evaluate_slot_operator_equal_deps(settings, use, QueryCommand.get_db())
  File "/usr/lib64/python3.4/site-packages/portage/dep/_slot_operator.py", line 63, in evaluate_slot_operator_equal_deps
    uselist=use, eapi=eapi, token_class=Atom)
  File "/usr/lib64/python3.4/site-packages/portage/dep/__init__.py", line 570, in use_reduce
    if not is_active(stack[level][-1]):
  File "/usr/lib64/python3.4/site-packages/portage/dep/__init__.py", line 480, in is_active
    _("invalid use flag '%s' in conditional '%s'") % (flag, conditional))
portage.exception.InvalidDependString: invalid use flag 'r_suggests_r[-minimal]' in conditional 'r_suggests_r[-minimal]?'

I made a very simplistic patch and it seems to work, but I am not sure what is wrong. My hunch tells me that those repeating dev-lang/R[-minimal] requirements are coming from some automatic string replacement:

# fgrep "r_suggests_r[-minimal]?" ggplot2-*
ggplot2-2.0.0.ebuild:	r_suggests_r[-minimal]? ( dev-lang/R[-minimal] dev-lang/R[-minimal] )
ggplot2-2.1.0.ebuild:	r_suggests_r[-minimal]? ( dev-lang/R[-minimal] dev-lang/R[-minimal] dev-lang/R[-minimal] dev-lang/R[-minimal] )
Comment 1 Benda Xu gentoo-dev 2016-03-11 03:09:39 UTC
ack. I found it, too.  Thanks for reporting.

As the overlay is auto-generated, a patch to the generator is more useful.
Comment 2 Benda Xu gentoo-dev 2016-03-13 07:56:13 UTC
Use virtual to express the dependence of recommended packages.

Fixed in the R_Overlay.