Proposed pkgmk distfile repository support for 2.4 (patch)
Greetings, all. Attached is a patch for pkgutils 5.30.0 that adds distfile repository support via a pkgmk.conf variable, PKGMK_DISTFILE_REPOS. By default it's defined empty which causes no behavioral changes. If you define it to a list of URLs, like PKGMK_DISTFILE_REPOS=(http://gentoo.osuosl.org/distfiles/ http://fileserver.intranet/crux/distfiles/), it'll attempt to fetch the source archive from the listed hosts before falling back to the host defined in the source=() array in the Pkgfile. Yes, this has been brought up before and by other people besides me. The reason I bring it up again now is that I'd like to see it in 2.4. The opinions in the IRC meeting were favorable but I'm posting it here for more exposure. Please give it a look and feel free to comment. Matt -- Matt Housh (jaeger@freenode/#crux)
Hello, Matt. On Tue, 27 Nov 2007 14:37:57 -0600 Matt Housh <jaeger@morpheus.net> wrote:
Attached is a patch for pkgutils 5.30.0 that adds distfile repository support via a pkgmk.conf variable, PKGMK_DISTFILE_REPOS. Just a notice: as pkgmk.conf and handbook do not mention 'distfile(s)' word at all, shouldn't it be named PKGMK_SOURCE_MIRRORS or PKGMK_SOURCE_REPOS to avoid confusion and relation with other distros?
By default it's defined empty which causes no behavioral changes. If you define it to a list of URLs, like PKGMK_DISTFILE_REPOS=(http://gentoo.osuosl.org/distfiles/ http://fileserver.intranet/crux/distfiles/), it'll attempt to fetch the source archive from the listed hosts before falling back to the host defined in the source=() array in the Pkgfile.
Yes, this has been brought up before and by other people besides me. The reason I bring it up again now is that I'd like to see it in 2.4. The opinions in the IRC meeting were favorable but I'm posting it here for more exposure. Please give it a look and feel free to comment.
Thanks a lot for bringing this feature up for discussion again. -- Mikhail Kolesnik ICQ: 260259143 IRC: mike_k at freenode/#crux, rusnet/#yalta
On Wed, 2007-11-28 at 14:37 +0200, Mikhail Kolesnik wrote:
Hello, Matt.
On Tue, 27 Nov 2007 14:37:57 -0600 Matt Housh <jaeger@morpheus.net> wrote:
Attached is a patch for pkgutils 5.30.0 that adds distfile repository support via a pkgmk.conf variable, PKGMK_DISTFILE_REPOS. Just a notice: as pkgmk.conf and handbook do not mention 'distfile(s)' word at all, shouldn't it be named PKGMK_SOURCE_MIRRORS or PKGMK_SOURCE_REPOS to avoid confusion and relation with other distros? [...]
I honestly don't care what it's called as long as it works, though PKGMK_SOURCE_MIRRORS is perhaps more obvious than PKGMK_SOURCE_REPOS. Matt -- Matt Housh (jaeger@freenode/#crux)
Hello, Mikhail / Matt! Mikhail Kolesnik schrieb:
On Tue, 27 Nov 2007 14:37:57 -0600 Matt Housh <jaeger@morpheus.net> wrote:
Attached is a patch for pkgutils 5.30.0 that adds distfile repository support via a pkgmk.conf variable, PKGMK_DISTFILE_REPOS. Just a notice: as pkgmk.conf and handbook do not mention 'distfile(s)' word at all, shouldn't it be named PKGMK_SOURCE_MIRRORS or PKGMK_SOURCE_REPOS to avoid confusion and relation with other distros?
It is more working like a CACHE, isn't it? Maybe not yet? ;-) So I would prefer PKGMK_SOURCE_CACHE.
By default it's defined empty which causes no behavioral changes. If you define it to a list of URLs, like PKGMK_DISTFILE_REPOS=(http://gentoo.osuosl.org/distfiles/ http://fileserver.intranet/crux/distfiles/), it'll attempt to fetch the
Will it support local folders or nfs shares as well? And then, will it support pushing once downloaded files to the cache?
source archive from the listed hosts before falling back to the host defined in the source=() array in the Pkgfile.
Yes, this has been brought up before and by other people besides me. The reason I bring it up again now is that I'd like to see it in 2.4. The opinions in the IRC meeting were favorable but I'm posting it here for more exposure. Please give it a look and feel free to comment.
Thanks a lot for bringing this feature up for discussion again.
Yes, thanks, too! Seems to be the right direction. :-) Regards, -- Clemens Koller __________________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Straße 45/1 Linhof Werksgelände D-81379 München Tel.089-741518-50 Fax 089-741518-19 http://www.anagramm-technology.com
On Wed, 2007-11-28 at 15:53 +0100, Clemens Koller wrote:
Hello, Mikhail / Matt! Mikhail Kolesnik schrieb:
On Tue, 27 Nov 2007 14:37:57 -0600 Matt Housh <jaeger@morpheus.net> wrote:
Attached is a patch for pkgutils 5.30.0 that adds distfile repository support via a pkgmk.conf variable, PKGMK_DISTFILE_REPOS. Just a notice: as pkgmk.conf and handbook do not mention 'distfile(s)' word at all, shouldn't it be named PKGMK_SOURCE_MIRRORS or PKGMK_SOURCE_REPOS to avoid confusion and relation with other distros?
It is more working like a CACHE, isn't it? Maybe not yet? ;-) So I would prefer PKGMK_SOURCE_CACHE.
For this case, I don't see any real distinction.
By default it's defined empty which causes no behavioral changes. If you define it to a list of URLs, like PKGMK_DISTFILE_REPOS=(http://gentoo.osuosl.org/distfiles/ http://fileserver.intranet/crux/distfiles/), it'll attempt to fetch the
Will it support local folders or nfs shares as well? And then, will it support pushing once downloaded files to the cache?
In its current form it simply uses wget. Can wget fetch from local folders or nfs shares? As for pushing, no. It's a lot simpler than that. Following the KISS principle I would just rsync my source files to a central location and use that for the rest of my installs. [...] I'm glad there's some positive feedback but I think we should take care not to overcomplicate this feature. Matt -- Matt Housh (jaeger@freenode/#crux)
Matt Housh [2007-11-28 09:07]:
On Wed, 2007-11-28 at 15:53 +0100, Clemens Koller wrote:
Hello, Mikhail / Matt! Mikhail Kolesnik schrieb:
On Tue, 27 Nov 2007 14:37:57 -0600 Matt Housh <jaeger@morpheus.net> wrote:
Attached is a patch for pkgutils 5.30.0 that adds distfile repository support via a pkgmk.conf variable, PKGMK_DISTFILE_REPOS. Just a notice: as pkgmk.conf and handbook do not mention 'distfile(s)' word at all, shouldn't it be named PKGMK_SOURCE_MIRRORS or PKGMK_SOURCE_REPOS to avoid confusion and relation with other distros?
It is more working like a CACHE, isn't it? Maybe not yet? ;-) So I would prefer PKGMK_SOURCE_CACHE.
For this case, I don't see any real distinction.
By default it's defined empty which causes no behavioral changes. If you define it to a list of URLs, like PKGMK_DISTFILE_REPOS=(http://gentoo.osuosl.org/distfiles/ http://fileserver.intranet/crux/distfiles/), it'll attempt to fetch the
Will it support local folders or nfs shares as well? And then, will it support pushing once downloaded files to the cache?
In its current form it simply uses wget. Can wget fetch from local folders or nfs shares? As for pushing, no. It's a lot simpler than that. Following the KISS principle I would just rsync my source files to a central location and use that for the rest of my installs.
I agree. You could also run webfs to export the sources. It's quick and painless :) Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
participants (4)
-
Clemens Koller
-
Matt Housh
-
Mikhail Kolesnik
-
Tilman Sauerbeck