Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DEPEND '||' atoms are not commutative
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ZZamboni
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 96
Location: Zurich, Switzerland

PostPosted: Thu May 03, 2007 11:02 am    Post subject: DEPEND '||' atoms are not commutative Reply with quote

Hi,

It seems that the "||" (OR) atoms in DEPEND are not commutative?

I need to use several ebuilds (for a specific example, see dev-java/c3p0) that depend on something like this:
Code:
DEPEND="|| ( =virtual/jdk-1.4* =virtual/jdk-1.5* )"

I already have virtual/jdk-1.5 installed:
Code:
# eix -Ic jdk
[I] dev-java/sun-jdk (1.5.0.11(1.5)@04/26/2007): Sun's J2SE Development Kit, version 1.6.0
[I] virtual/jdk (1.5.0(1.5)@04/26/2007): Virtual for JDK

and still, when I emerge c3p0, it wants to bring in virtual/jdk-1.4:
Code:
# emerge -pvt c3p0
These are the packages that would be merged, in reverse order:

[ebuild  N    ] dev-java/c3p0-0.9.0.4  USE="-doc -source" 291 kB
[ebuild  NS   ]  virtual/jdk-1.4.2  0 kB
[ebuild  N    ]  dev-java/log4j-1.2.14-r1  USE="-doc -javamail -jms -jmx -source" 2,707 kB
[ebuild  N    ]   dev-java/ant-core-1.7.0  USE="-doc -source" 6,683 kB
[ebuild  NSF  ]  dev-java/sun-jdk-1.4.2.14  USE="-X -alsa -doc -examples -jce -nsplugin" 35,516 kB
[ebuild  N    ]  dev-java/javatoolkit-0.2.0-r1  20 kB


I thought that the "||" is supposed to mean either one will satisfy the dependency, but portage seems to want the first one necessarily. To verify this, I switched the order of jdk-1.4 and jdk-1.5 in the ebuild, and indeed, the need for virtual/jdk-1.4 goes away.

Any idea how to fix this, other than modifying all the ebuilds I need? I could not find any mentions to it.

Thanks for any help.

My emerge --info:
Code:
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.15-23-386 i686)
=================================================================
System uname: 2.6.15-23-386 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 03 May 2007 10:00:10 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-misc"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb billygoat bitmap-fonts cli cracklib crypt cups dri fortran gdbm iconv ipv6 isdnlog java libg++ midi ncurses nls nptl nptlonly pam pcre perl postgres ppds pppd python readline reflection session spl ssl tcpd truetype-fonts unicode x86 xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum