AIDA Shinra <[EMAIL PROTECTED]> wrote: > Let A a library depending on neon. If A-shlibs and A-dev has been built > with neon23, A-dev and neon24 should not be installed at the same > time. If both were installed, binary inconsistency happens: > > gcc -o B B.o -lA -lneon > > If B did not directly refer any neon's symbols, > > gcc -o B B.o -lA -lneon > > would work. But GNU libtool's dependency resolution breaks this. GNU > libtool knows A depends on neon from libA.la and appends -lneon. > > glibtool gcc -o B B.lo -lA > -> gcc -o B B.o -lA -lneon > > Only way to avoid this problem is to disallow A-dev and neon24 to > coexist. A-dev should Conflict with neon24 or Depend on neon23. >
Well, actually, there is another way (which is the way we are using now). We follow a rule which says that anything which BuildDepends on A-dev, must also BuildDepend on neon23. My new proposal about InheritedBuildDepends is intended to make this rule easier to follow. Under my proposal, the A-dev package would contain InheritedBuildDepends: neon23 and then fink will enforce the rule automatically. > As you wrote it breaks fink build anything-using-neon24. I suggest > AllowRemovalOnBuild flag to let fink remove conflicting packages such > as A-dev. > This is an interesting idea, but not possible to implement at the moment. The "dependency engine" in fink is very complicated and hard to modify. (Probably it should be rewritten completely, and some people have intended to do that in the past, but nobody ever got very far.) In particular, the way the engine works now is to compute all the dependencies for all the packages you are insatalling *at the beginning*, and then assume that they are present when needed during the entire build run. Nobody has figured out a way to let fink remove packages without breaking this dependency engine. -- Dave ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel