Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121727 - Weird tetex.eclass self blocks
Summary: Weird tetex.eclass self blocks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-05 14:25 UTC by Ciaran McCreesh
Modified: 2006-02-08 13:21 UTC (History)
0 users

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 Ciaran McCreesh 2006-02-05 14:25:47 UTC
Currently, tetex.eclass causes ptex, tetex and cstetex to block themselves. Although Portage currently ignores this, it would probably be better to check ${PN} in the eclass and avoid setting self blocks.
Comment 1 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-06 02:06:53 UTC
the tetex.eclass contains:
DEPEND="!app-text/tetex
        !app-text/ptex
        !app-text/cstetex
        ..."
because it is inherited (indirectly) by tetex, ptex, cstetex and each of them must exclude the others.
So the above should be replaced by:
if [[ "${PN}" = "tetex" ]] ; then
    DEPEND="!app-text/ptex
            !app-text/cstetex"
fi
and similar for ptex and cstetex.

That is the correct way of doing it, right?
If it is I'll fix it tonight (CET).
Comment 2 Ciaran McCreesh 2006-02-06 10:04:29 UTC
Yes, that looks fine. It's not a hugely urgent issue, since Portage currently ignores these, but it's something that would be nice to get right. Cheers.
Comment 3 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-08 13:21:17 UTC
Fixed in CVS.