Mich�le Garoche wrote:
Le 5 juil. 2004, � 19:33, Daniel Macks a �crit :
Okay, I'm getting mighty tired of "I can't find system-java14-dev"
questions, and wondered how we could better handle these virtual packages. Currently, when VirtPackage does not find the requisite files for a given system-foo, the system-foo virtual package does not get created. That means users without the files have a fink that has never heard of system-foo. Two similar ideas came to mind,
both aimed at giving these people at least some stub of a package that provides information on how to get the actual files.
1. When the files are not found, generate a package for system-foo
that has a CompileScript that gives a verbose message about where to download whatever-is-needed and then fails. That way 'fink insall bar' where "bar:BuildDepends:x11-dev" will give the usual "do you want xfree86-dev or system-xfree86-dev" instead of assuming
(usually incorrectly) to use the fink package, and then when user picks the system- one will get an error message about having to install X11User.pkg.
2. Have actual system-foo packages with "very low" version numbers
that have the verbose-instructions/exit-with-error as PreInstScript. That way if the virtual package is present it will supercede this one. By having a real package as a backup, even binary-dist folks will benefit (cf. #1, where someone without X11User.pkg using apt would not get the new message).
Since nobody seems to answer, I just put my experience with it here.
I haven't answered 'cause I'm in the middle of working on an implementation. :)
I've been changing VirtPackage.pm to show the 'status' field as "purge ok not-installed" just like debian packages, for virtuals whose dependencies aren't met. I'm now having to go in and look at other guts in Fink and fix them, because it turns out they were treating the package query from VirtPackage.pm wrong, but it always worked out (by pure chance) because things that are in VirtPackage.pm don't also exist in the dpkg database.
I'll keep tinkering on this, but I'm basically making it so they show up in the package list, but as uninstalled, with a package DescDetail saying how to download them.
-- Benjamin Reed, a.k.a. RangerRick [EMAIL PROTECTED] / http://ranger.befunk.com/
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
