On Sat, Feb 14, 2004 at 05:05:04PM -0500, David R. Morrison wrote:
> I'm jumping into this thread a bit late, since I was out of town for a few
> days.

Glad to see your imput on this. 

> I hope that everyone is bearing in mind a crucial fact of life: whatever
> we do in terms of dependencies has to be translated (at the end of the
> day) into dependencies that the Debian tools (dpkg and apt-get) can handle.
> Moreover, we historically have a goal at fink of making sure that any
> fink package compiles the same way on two different systems.
> As far as I know, the Debian tools can't handle conditional dependencies
> directly.  This suggests that whenever a package is compiled, we'll have
> to write an unconditional set of (runtime) dependencies for that package.

That is pretty much how I'm doing it.

By the time the .deb is generated, the conditional statements will not
be there, and any packages that are conditionalized false will not be
listed. As it stand now, this is all cleared while the .info is being
read, so by the time the package database is written the fields look
like they do now. Have a look at HEAD of PkgVersion and see the
currently-commented-out call to conditional_pkg_list() during
initialize().

> If the runtime dependencies might be different depending on, I suppose,
> different things being installed when you start, then we have to give
> the whole matter some very careful thought.  Perhaps the name, from dpkg's
> point of view, needs to be lengthened to include variant information?
> Could this be done automatically?

Bingo. I'm not doing this in the same way as DarwinPorts, where one
configures a package which means one person's "package foo" could
differ from someone else's. A better way of looking at it is where the
.info is a template (and list of values for it) that fink processes to
generate a bunch of other .info files. To see a not-quite complete
implementation, have a look at HEAD of Package.pm and see how
setup_package_object() handles 'Type: perl (5.8.0 5.8.1)'.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to