Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169088 - dev-java/javacup-0.10k-r1 emerge fails with userpriv
Summary: dev-java/javacup-0.10k-r1 emerge fails with userpriv
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-03 06:12 UTC by vicaya
Modified: 2007-05-16 16:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vicaya 2007-03-03 06:12:39 UTC
if userpriv is enabled (in FEATURES) emerge dev-java/javacup-0.10k-r1 fails

>>> Emerging (1 of 1) dev-java/javacup-0.10k-r1 to /
 * java_cup_v10k.tar.gz RMD160 ;-) ...                                             [ ok ]
 * java_cup_v10k.tar.gz SHA1 ;-) ...                                               [ ok ]
 * java_cup_v10k.tar.gz SHA256 ;-) ...                                             [ ok ]
 * java_cup_v10k.tar.gz size ;-) ...                                               [ ok ]
 * checking ebuild checksums ;-) ...                                               [ ok ]
 * checking auxfile checksums ;-) ...                                              [ ok ]
 * checking miscfile checksums ;-) ...                                             [ ok ]
 * checking java_cup_v10k.tar.gz ;-) ...                                           [ ok ]
 * Your CXXFLAGS contains "-fvisibility-inlines-hidden" which can break packages.
 *
 * Before you file a bug, please remove these flags and
 * re-compile the package in question as well as all its dependencies
/etc/portage/color.map
Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 85, in ?
    (options, args) = parser.parse_args()
  File "/usr/lib64/python2.4/optparse.py", line 1275, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib64/python2.4/optparse.py", line 1315, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib64/python2.4/optparse.py", line 1390, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib64/python2.4/optparse.py", line 707, in process
    return self.take_action(
  File "/usr/lib64/python2.4/optparse.py", line 726, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/bin/depend-java-query", line 49, in get_vm
    vm = verman.get_vm(value)
  File "/usr/share/java-config-2/pym/java_config/VersionManager.py", line 123, in get_vm
    matched_atoms = self.parse_depend(atoms)
  File "/usr/share/java-config-2/pym/java_config/VersionManager.py", line 56, in parse_depend
    from portage import flatten
  File "/usr/lib/portage/pym/portage.py", line 8316, in ?
    init_legacy_globals()
  File "/usr/lib/portage/pym/portage.py", line 8272, in init_legacy_globals
    db = create_trees(**kwargs)
  File "/usr/lib/portage/pym/portage.py", line 8228, in create_trees
    config_incrementals=portage_const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage.py", line 1032, in __init__
    self.modules["user"] = getconfig(
  File "/usr/lib/portage/pym/portage_util.py", line 295, in getconfig
    f=open(mycfg,'r')
IOError: [Errno 13] Permission denied: '/etc/portage/modules'
 * Unable to determine VM for building from dependencies:
NV_DEPEND: >=virtual/jdk-1.3
        source? ( app-arch/zip )  >=dev-java/java-config-2.0.31 >=sys-apps/portage-2.1_pre1
VNEED:

!!! ERROR: dev-java/javacup-0.10k-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_unpack
  ebuild.sh, line 707:   Called qa_call 'pre_src_unpack'
  environment, line 4448:   Called pre_src_unpack
  java-pkg-2.eclass, line 105:   Called java-pkg-2_pkg_setup
  java-pkg-2.eclass, line 55:   Called java-pkg_init
  java-utils-2.eclass, line 1774:   Called java-pkg_switch-vm
  java-utils-2.eclass, line 2162:   Called die

!!! Failed to determine VM for building.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-java/javacup-0.10k-r1/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME=""
JAVACFLAGS="-source 1.3 -target 1.3" COMPILER=""
and of course, the output of emerge --info

The error message is misleading as /etc/portage/modules is world readable.

Remove userpriv from FEATURES in make.conf, package emerges fine.

Reproducible: Always
Comment 1 vicaya 2007-03-03 06:24:22 UTC
Note: userpriv has been working with many other packages, until this one. What is it doing? 

Further tweaking shows that if I made everything under /etc/portage world readable, the package emerges fine. 
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-03-03 10:19:41 UTC
depend-java-query is calling into the Portage code because it needs to handle use flags in DEPEND atoms and this does not seem to work with FEATURES="userpriv"
Comment 3 Zac Medico gentoo-dev 2007-03-03 10:22:52 UTC
(In reply to comment #0)
> IOError: [Errno 13] Permission denied: '/etc/portage/modules'

You need to give the portage group read permission to all the portage config files if you want to use userpriv.
Comment 4 Zac Medico gentoo-dev 2007-05-16 16:32:30 UTC
Loosening the permissions for /etc/portage/modules should fixed this.