List Info

Thread: Dealing with circular dependencies




Dealing with circular dependencies
country flaguser name
United States
2007-06-11 00:40:39
I want to build a stage4 with both ldap and sasl use flags
turned on.

However, to build openldap with the sasl use flag requires
that
cyrus-sasl be installed first -- and to build cyrus-sasl
with the ldap
build flag depends on openldap being previously available.
When manually
building a server, we do a --oneshot on these packages with
USE='-ldap
-sasl' before the final build.


How should I resolve this for use with catalyst?

I don't see a stage3 equivalent to stage4/packages (to add
openldap and
cyrus-sasl to the stage3 I build from) short of creating a
custom
profile. Should I build my final stage4 off of a different
stage4 which
has these packages installed but the USE flags disabled, or
is there
another approach I'm missing?

-- 
gentoo-catalystgentoo.org mailing list


Re: Dealing with circular dependencies
country flaguser name
United States
2007-06-11 07:21:07
Charles Duffy wrote:
> I want to build a stage4 with both ldap and sasl use
flags turned on.
> 
> However, to build openldap with the sasl use flag
requires that
> cyrus-sasl be installed first -- and to build
cyrus-sasl with the ldap
> build flag depends on openldap being previously
available. When manually
> building a server, we do a --oneshot on these packages
with USE='-ldap
> -sasl' before the final build.
> 
> How should I resolve this for use with catalyst?

This is one of those "fun" situations.

> I don't see a stage3 equivalent to stage4/packages (to
add openldap and
> cyrus-sasl to the stage3 I build from) short of
creating a custom
> profile.

That's because stage3 is used for release building, and
everything is controlled 
by the profile. There's no reason for someone to need to
specify 
packages...otherwise it's a stage4.

> Should I build my final stage4 off of a different
stage4 which
> has these packages installed but the USE flags
disabled, or is there
> another approach I'm missing?

I've never used the stage4 target before, but if it has the
stage4/fsscript 
option (looking at the code, it does) and the fsscript is
run before the portage 
tree is unmounted (in the code, the "fsscript"
action is run before the "unbind" 
action), you could re-emerge the packages with the proper
USE in an fsscript.

-- 
Andrew Gaffney                                 http://dev.gentoo.or
g/~agaffney/
Gentoo Linux Developer             Catalyst/Installer + x86
release coordinator
-- 
gentoo-catalystgentoo.org mailing list


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )