1 |
Alec Warner wrote: |
2 |
> On Mon, Mar 16, 2009 at 8:39 PM, Ravi Pinjala <ravi@××××××××.net> wrote: |
3 |
>> One of my occasional frustrations with Gentoo is that it's more |
4 |
>> difficult than it needs to be to install a package from a tarball, and |
5 |
>> still have its files tracked by a package manager. The simplest thing |
6 |
>> I've found to do is to create an ebuild in my personal overlay and use |
7 |
>> that, but not everybody wants/needs to learn how to write ebuilds. |
8 |
>> |
9 |
>> My project idea is a tool to allow users to quickly install packages |
10 |
>> from tarballs, or other sources, and have the installed files tracked by |
11 |
>> their package manager. Ideally, it should be no more difficult than the |
12 |
>> usual "./configure; make; make install" sequence that we're all used to. |
13 |
> |
14 |
> ebuild with blank src_unpack, blank src_compile, src_install that |
15 |
> unpacks the tarball into $D |
16 |
> |
17 |
> config files and whatnot are difficult. |
18 |
|
19 |
Well, it'd be nice to compile the package too, but point taken. :p |
20 |
|
21 |
Even so, that still requires the user to know something about ebuild |
22 |
writing, and maintain a personal overlay. People are much more likely to |
23 |
already know how to install packages from source tarballs; it ought to |
24 |
be possible to install a package (and have the PM be aware of it) using |
25 |
just that knowledge. |
26 |
|
27 |
> |
28 |
>> One obvious issue with this is dependencies; if packages installed using |
29 |
>> this method can be used as dependencies of other packages, it makes it a |
30 |
>> lot easier for users to do strange things to their systems. My initial |
31 |
>> instinct is to say that packages installed by this method will be |
32 |
>> excluded from dependency calculations somehow, but I also think the |
33 |
>> option should be there somewhere. |
34 |
>> |
35 |
> |
36 |
> I don't see how its much different than using any other binary package. |
37 |
> |
38 |
|
39 |
I'm actually not sure how Gentoo binary packages work. If they're just |
40 |
tarballs of the files a package installs, then yeah, it's very similar. |
41 |
I'm assuming they have more information than that, though, since USE |
42 |
deps, for example, would be useless otherwise. |
43 |
|
44 |
Official binary packages also have the advantage of having been checked |
45 |
by a developer. The situation I'm trying to avoid here is that a user |
46 |
installs package A through this method, then installs package B which |
47 |
depends on A, through portage. If the user has done something strange |
48 |
with A, B could fail in interesting ways, and it would not be at all |
49 |
obvious that A was the problem. |
50 |
|
51 |
>> Questions/comments/suggestions? Is this actually a terrible idea, for |
52 |
>> reasons I haven't thought of yet? :) |
53 |
>> |
54 |
>> --Ravi |
55 |
>> |
56 |
>> |
57 |
> |
58 |
> |