From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31270 invoked by uid 1002); 25 Aug 2003 00:53:59 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 16803 invoked from network); 25 Aug 2003 00:53:58 -0000 Date: Mon, 25 Aug 2003 09:53:24 +0900 Message-ID: <86vfsm36d7.wl%usata@gentoo.org> From: Mamoru KOMACHI To: gentoo-dev@gentoo.org In-Reply-To: <200308242209.18942.stuart@gentoo.org> References: <1061510935.2407.7.camel@localhost.localdomain> <200308242209.18942.stuart@gentoo.org> User-Agent: Wanderlust/2.11.9 (Wonderwall) SEMI/1.14.5 (Awara-Onsen) LIMIT/1.14.7 (Fujiidera) APEL/10.6 Emacs/21.3 (i686-gentoo-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Subject: [gentoo-dev] conditional dependencies (was: [gentoo-dev] Summary: Install CD Bloat thread) X-Archives-Salt: 0b7bc28c-ae25-4418-b10d-f8a2778da78e X-Archives-Hash: 73fde730f5e95e2209a847a0e49359bc Hi, At Sun, 24 Aug 2003 22:09:12 +0100, Stuart Herbert wrote: > The weird thing is, the ebuild very clearly only depends on perl if the > 'perl' USE flag is set. So, why is perl being pulled in? Well, the > irssi ebuild inherits the perl-module eclass, and *that's* where the > dependency comes from. > > Solution: fix the ebuild to only inherit perl-module if the perl USE flag > is set; until then, ensure -perl is set in the USE flags, and remember to > remove perl when we're done. I have a similar problem in http://bugs.gentoo.org/show_bug.cgi?id=27175 In that bug, carpaski said: "inherit is NEVER allowed to be conditional that way. Either you inherit, or you don't. There is no middle ground. It can be worked around, but any auxdb variables MAY NOT be involved in bash conditional statements." I don't want to inherit if it isn't required, but Portage doesn't allow it ;-( And the problem is there seems no way to remove certain DEPENDs once you inherit it (in net-irc/irsii case, you cannot remove dependency to perl if you inherit perl-module). From a comment about conditional dependencies in net-im/licq-1.2.7.ebuild I thoght it is a work around to remove undesired DEPEND if USE flag is not set, but when I tried to emerge that ebuild I realised that it doesn't work :-( Does anyone know how to deal with the problem? regards, -- Mamoru KOMACHI http://dev.gentoo.org/~usata/ -- gentoo-dev@gentoo.org mailing list