i have -cups in my useflag and sun-jdk doesn't have a cups flag. nevertheless portage insists in wanting to install cups as a depency of sun-jdk-1.5.0. i think this is a bug. Reproducible: Always Steps to Reproduce: 1. emerge -C cups 2. echo "net-print/cups >> /etc/portage/package.mask 3. emerge -pvDu world Actual Results: root@X40 pts/3 emerge -pvDu world These are the packages that I would merge, in order: Calculating world dependencies / !!! All ebuilds that could satisfy "net-print/cups" have been masked. !!! One of the following masked packages is required to complete your request: - net-print/cups-1.1.20-r3 (masked by: package.mask) - net-print/cups-1.1.20-r4 (masked by: package.mask) - net-print/cups-1.1.20-r5 (masked by: package.mask) - net-print/cups-1.1.22 (masked by: package.mask, ~x86 keyword) For more information, see MASKED PACKAGES section in the emerge man page or section 2.2 "Software Availability" in the Gentoo Handbook. !!! (dependency required by "dev-java/sun-jdk-1.5.0" [ebuild]) !!! Problem with ebuild sys-apps/man-pages-1.67 !!! Possibly a DEPEND/*DEPEND problem. !!! Depgraph creation failed. Expected Results: anything, but not a needed dependency of cups root@X40 pts/3 emerge info Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-ck2 i686) ================================================================= System uname: 2.6.9-ck2 i686 Intel(R) Pentium(R) M processor 1200MHz Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -Os -pipe -fforce-addr -falign-functions=4 -msse2 -mfpmath=sse -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -Os -pipe -fforce-addr -falign-functions=4 -msse2 -mfpmath=sse -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc distlocks sandbox userpriv" GENTOO_MIRRORS="http://mirror.switch.ch/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.math.bme.hu http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.iasi.roedu.net/mirrors/gentoo.org/ ftp://ftp.iasi.roedu.net/pub/mirrors/gentoo.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm avi berkdb bitmap-fonts crypt encode esd f77 foomaticdb fortran gcj gdbm gif gpm gtk2 imap imlib java jpeg kde libg++ libwww locales mad maildir mikmod motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang spell ssl svga tcpd tetex truetype x86 xine xml2 xmms xv zlib"
i raise the serverity to blocker because i can't use 'emerge -vDu world' any more if i mask cups as said above.
its a blocker because of your own masking.
as my first additional comment may be misunderstood - i don't have any other dependency problem. it's just a fact that one can't mask cups, i.e. prevent portage from installing any cups package because sun's jdk-1.5.0 depends on it, which must be wrong.
Created attachment 44171 [details] patch to make cups an optional dep I don't see any other places in the ebuild that affect the usage of cups other than the dependancies. I HAVE NOT DONE MUCH TESTING in reguards to usage of sun-jdk-1.5.0 without cups. I do not anticipate any issues, and have been running a bit of eclipse lately without any problems. Andy-
thanks a lot for your effort. i found out another workaround: # cat /etc/portage/profile/package.provided net-print/cups-1.1.20-r5 i tried that first but i created the package.provided file in the wrong location that's why it wasn't working.
We want to add the patch, so we'll close when it's tested and has been applied.
removed the dep and changed the warning too * Some parts of Sun's JDK require virtual/x11 and/or virtual/lpr to be installed. * Be careful which Java libraries you attempt to use.
thanks for the fix and your effort