Hi Daniel
On 30.09.2004, at 07:24, Daniel Macks wrote:
On Wed, Sep 29, 2004 at 11:12:22PM +0200, Christian Schaffner wrote:Here comes revision 9 of the patch...[snip discussion]This patch is also added to the patch submission tracker at: <http://sourceforge.net/tracker/index.php? func=detail&aid=1037296&group_id=17203&atid=317203>
We discussed on #fink about how it sucks that we had to do so much work that replicated what apt usually does. So I hacked a new "--allow-broken" flag into apt-get that disables dependency tracking.
I completely agree with you that a solution in apt-get would be a lot nicer. I will test your patched apt-get, but it seems that you are missing the patch file in the patch submission item at
<https://sourceforge.net/tracker/index.php? func=detail&aid=1037296&group_id=17203&atid=317203>
Or am i missing something?
While doing that, I noticed that "apt-get --print-uris" does not print things that if one has already compiled a package, apt-get may see that .deb in preference to one from the apt server. Probably best to not "fetch" those file: URIs into the cache/apt dir. Also, that means UseBinaryDist is not "use the apt server" but "use the apt server unless one has already compiled locally and then run scanpackages and had fink rebuild its aptdb".
In the fink man file i wrote:
-b, --use-binary-dist
Download pre-compiled binary packages from the binary distribution
if available.
and that is what the patch makes fink do at the moment: First, check if the .deb is already available on the system (self compiled or from apt-get). Then, if it is not available already, check with PkgVersion::is_aptgetable() to see if the deb could be downloaded. If yes, download it, if now, it needs to be compiled.
Does that answer your reservation? Or were you talking about something else?
But you are correct, --use-binary-dist means: Download from the binary dist, if available on the server and if deb is not already on the system.
And i think that is how it should be. There might be other opinions, though.
Or we might even add a future switch that says something like '--use-only-bin-dist'.
Conversely, if one has built locally, and then installs with UseBinaryDist before remembering to update, one would get a link in /sw/fink/debs to the cache/apt file. That means later even if one does *not* say UseBinaryDist, one gets the apt version. Currently, when one fetches a .deb with apt-get, it is not linked into /sw/fink/debs. This helps maintain a clear distinction between things built locally and things downloaded. Maybe should omit the link, and that way find_debfile() only look in cache/apt iff UseBinaryDist? That way user is more in control over when apt .debs are used and when not.
That might be a valid point. What do others think? bbraun? akh?
Chris.
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel