* [gentoo-dev] cyclic dependency
@ 2007-07-02 14:54 Vieri Di Paola
2007-07-02 15:17 ` [gentoo-dev] " Christian Faulhammer
0 siblings, 1 reply; 9+ messages in thread
From: Vieri Di Paola @ 2007-07-02 14:54 UTC (permalink / raw
To: gentoo-dev
Hi.
How can one avoid cyclic dependencies in custom
ebuilds?
eg.
soft1.ebuild DEPENDs on soft2
but
soft2.ebuild also DEPENDs on soft1
(both packages are required; none of the two works
alone so it wouldn't make sense to install just one)
Is there a function that can be used to check whether
a certain package+version has already been emerged?
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-dev] Re: cyclic dependency
2007-07-02 14:54 [gentoo-dev] cyclic dependency Vieri Di Paola
@ 2007-07-02 15:17 ` Christian Faulhammer
2007-07-02 15:31 ` Vieri Di Paola
2007-07-05 8:53 ` Vieri Di Paola
0 siblings, 2 replies; 9+ messages in thread
From: Christian Faulhammer @ 2007-07-02 15:17 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
Vieri Di Paola <vieridipaola@yahoo.com>:
> Is there a function that can be used to check whether
> a certain package+version has already been emerged?
has_version, but in what way do they depend on each other? Is a
PDEPEND possible?
V-Li
--
http://www.gentoo.org/
http://www.faulhammer.org/
http://www.gnupg.org/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: cyclic dependency
2007-07-02 15:17 ` [gentoo-dev] " Christian Faulhammer
@ 2007-07-02 15:31 ` Vieri Di Paola
2007-07-02 16:14 ` Marijn Schouten (hkBst)
2007-07-05 8:53 ` Vieri Di Paola
1 sibling, 1 reply; 9+ messages in thread
From: Vieri Di Paola @ 2007-07-02 15:31 UTC (permalink / raw
To: gentoo-dev
--- Christian Faulhammer <opfer@gentoo.org> wrote:
> Vieri Di Paola <vieridipaola@yahoo.com>:
>
> > Is there a function that can be used to check
> whether
> > a certain package+version has already been
> emerged?
>
> has_version, but in what way do they depend on each
> other? Is a
> PDEPEND possible?
I'm not an experienced ebuild scripter.
I only knew of RDEPEND and DEPEND.
Now I'm reading this on PDEPEND:
http://devmanual.gentoo.org/general-concepts/dependencies/index.html
The two software packages depend at run-time.
I'll try PDEPEND.
Thank you.
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: cyclic dependency
2007-07-02 15:31 ` Vieri Di Paola
@ 2007-07-02 16:14 ` Marijn Schouten (hkBst)
2007-07-02 17:01 ` Vieri Di Paola
2007-07-03 0:16 ` Ryan Hill
0 siblings, 2 replies; 9+ messages in thread
From: Marijn Schouten (hkBst) @ 2007-07-02 16:14 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vieri Di Paola wrote:
> The two software packages depend at run-time.
then they can simply RDEPEND on eachother. The package manager should do the
right thing.
Questions like this one are best asked in #gentoo-dev-help IRC channel,
Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGiSRLp/VmCx0OL2wRAjMrAJ9l1l5O4kV3a68LjLin/wbFj3g/pQCfTUTf
d/DVeP4aI3/cVlukcD10gOg=
=SbnS
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: cyclic dependency
2007-07-02 16:14 ` Marijn Schouten (hkBst)
@ 2007-07-02 17:01 ` Vieri Di Paola
2007-07-03 0:16 ` Ryan Hill
1 sibling, 0 replies; 9+ messages in thread
From: Vieri Di Paola @ 2007-07-02 17:01 UTC (permalink / raw
To: gentoo-dev
--- "Marijn Schouten (hkBst)" <hkBst@gentoo.org>
wrote:
> Vieri Di Paola wrote:
> > The two software packages depend at run-time.
>
> then they can simply RDEPEND on eachother. The
> package manager should do the
> right thing.
No, it reports a cyclic dependency.
> Questions like this one are best asked in
> #gentoo-dev-help IRC channel,
I currently don't have an IRC client and am not really
used to using them, especially without X.
Anyway, I guess I'll end up connecting some day.
Thanks for your time.
____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-dev] Re: cyclic dependency
2007-07-02 16:14 ` Marijn Schouten (hkBst)
2007-07-02 17:01 ` Vieri Di Paola
@ 2007-07-03 0:16 ` Ryan Hill
2007-07-03 1:02 ` Vlastimil Babka
1 sibling, 1 reply; 9+ messages in thread
From: Ryan Hill @ 2007-07-03 0:16 UTC (permalink / raw
To: gentoo-dev
Marijn Schouten (hkBst) wrote:
> Vieri Di Paola wrote:
>> The two software packages depend at run-time.
>
> then they can simply RDEPEND on eachother. The package manager should do the
> right thing.
It doesn't. See freetype which requires >=fontconfig-2.3 at runtime
which in turn requires freetype at runtime. Bug #179736.
--
dirtyepic salesman said this vacuum's guaranteed
gentoo org it could suck an ancient virus from the sea
9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8)
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: cyclic dependency
2007-07-03 0:16 ` Ryan Hill
@ 2007-07-03 1:02 ` Vlastimil Babka
2007-07-04 0:48 ` Ryan Hill
0 siblings, 1 reply; 9+ messages in thread
From: Vlastimil Babka @ 2007-07-03 1:02 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ryan Hill wrote:
> Marijn Schouten (hkBst) wrote:
>> Vieri Di Paola wrote:
>>> The two software packages depend at run-time.
>> then they can simply RDEPEND on eachother. The package manager should do the
>> right thing.
>
> It doesn't. See freetype which requires >=fontconfig-2.3 at runtime
> which in turn requires freetype at runtime. Bug #179736.
I think the problem is that fontconfig has freetype not just in RDEPEND
but also DEPEND (see how in the emerge error output one dep is reported
as medium and the other as hard). Which is interpreted as 'needed at
build time in working state, thus with all its RDEPENDs (which includes
satisfied', creating the circular deps.
So, just RDEPEND on each other should be fine (at least in recent
portage, I think older ones treated RDEPEND and DEPEND the same). But if
one package has DEPEND, the other one needs PDEPEND.
P.S. I think the solution with PDEPEND is wrong for bug 179736. If I
understand it correctly, then >freetype-2.2 doesn't NEED
>=fontconfig-2.4, but, if installed, will crash older versions. Then
there should be a blocker on <fontconfig-2.4 in freetype. I think
portage handles that correctly since some point. And if not, it should :)
- --
Vlastimil Babka (Caster)
Gentoo/Java
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGiaA2tbrAj05h3oQRAuyAAJ4nu6QcexxRQkQEpg98pXGn09Ry+gCfVDtk
H3ENhWchaop/RzVBH8kNQoI=
=Ad8b
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-dev] Re: cyclic dependency
2007-07-03 1:02 ` Vlastimil Babka
@ 2007-07-04 0:48 ` Ryan Hill
0 siblings, 0 replies; 9+ messages in thread
From: Ryan Hill @ 2007-07-04 0:48 UTC (permalink / raw
To: gentoo-dev
Vlastimil Babka wrote:
> Ryan Hill wrote:
>> It doesn't. See freetype which requires >=fontconfig-2.3 at runtime
>> which in turn requires freetype at runtime. Bug #179736.
> I think the problem is that fontconfig has freetype not just in RDEPEND
> but also DEPEND
Doh. You're right of course.
> P.S. I think the solution with PDEPEND is wrong for bug 179736. If I
> understand it correctly, then >freetype-2.2 doesn't NEED
> >=fontconfig-2.4, but, if installed, will crash older versions. Then
> there should be a blocker on <fontconfig-2.4 in freetype. I think
> portage handles that correctly since some point. And if not, it should :)
I'm a firm believer that blockers absolutely suck and should be avoided
at all costs. But in this case I don't see another way around it, since
while playing around just now I discovered another way to break the
depgraph with the current PDEPEND.
Thanks for the advice. :)
--
dirtyepic salesman said this vacuum's guaranteed
gentoo org it could suck an ancient virus from the sea
9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8)
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: cyclic dependency
2007-07-02 15:17 ` [gentoo-dev] " Christian Faulhammer
2007-07-02 15:31 ` Vieri Di Paola
@ 2007-07-05 8:53 ` Vieri Di Paola
1 sibling, 0 replies; 9+ messages in thread
From: Vieri Di Paola @ 2007-07-05 8:53 UTC (permalink / raw
To: gentoo-dev
--- Christian Faulhammer <opfer@gentoo.org> wrote:
> Is a
> PDEPEND possible?
I followed your suggestion and posted a couple of
ebuilds for the upcoming Shorewall 4 package:
http://bugs.gentoo.org/show_bug.cgi?id=174588
I am not seeing cyclic dependency issues anymore.
Thanks for any suggestions.
Vieri
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-07-05 8:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 14:54 [gentoo-dev] cyclic dependency Vieri Di Paola
2007-07-02 15:17 ` [gentoo-dev] " Christian Faulhammer
2007-07-02 15:31 ` Vieri Di Paola
2007-07-02 16:14 ` Marijn Schouten (hkBst)
2007-07-02 17:01 ` Vieri Di Paola
2007-07-03 0:16 ` Ryan Hill
2007-07-03 1:02 ` Vlastimil Babka
2007-07-04 0:48 ` Ryan Hill
2007-07-05 8:53 ` Vieri Di Paola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox