1 |
The broader subject you're touching on - reproducable Gentoo installations |
2 |
- is a problem that Gentoo has attempted to solve with catalyst, and Funtoo |
3 |
with metro. They're both barely documented and extraordinarily difficult to |
4 |
work with, because they solve a huge number of problems in one go. |
5 |
|
6 |
You may find that what you're after is a bit harder than you anticipated. |
7 |
|
8 |
To kick things off, though, I can tell you that keeping a consistent |
9 |
portage tree is extremely simple. Just preserve the /usr/portage directory. |
10 |
However, this isn't useful without portage itself, and keeping that locked |
11 |
to a version means you're going to have to capture the process Gentoo |
12 |
Prefix uses to bootstrap a new prefix installation, and inject your own |
13 |
source tarballs (instead of the ones that get downloaded by the script). |
14 |
|
15 |
Some other lurkers here on the mailing list may be able to offer you more |
16 |
comprehensive advice, but I thought I'd at least give you what I know while |
17 |
you wait. |
18 |
|
19 |
|
20 |
On Tue, Jul 15, 2014 at 2:19 PM, Anders Bo Rasmussen <abr@×××××××.com> |
21 |
wrote: |
22 |
|
23 |
> Hi again. |
24 |
> |
25 |
> Today I did some more experiments with Gentoo Prefix and I must say |
26 |
> that I think it looks very good. Basically I just compiled some |
27 |
> different programs ending with gvim, testing that it ran on servers |
28 |
> with different Linux distributions and as different users - and it all |
29 |
> worked :) |
30 |
> |
31 |
> |
32 |
> The only problem I had was that I need to figure out more about the |
33 |
> package system if I want to figure out why I can't have the gtk use |
34 |
> flag enabled when I emerge gvim. But that is a minor problem I will |
35 |
> look into later. |
36 |
> |
37 |
> |
38 |
> What I want to use Gentoo Prefix for is to make a toolchain for |
39 |
> compiling a software project (and at the same time also make a lot of |
40 |
> programs available on different servers). My basic idea is to have a |
41 |
> script that makes a new version of my Gentoo Prefix installation each |
42 |
> time I run it, so it could be placed e.g. at |
43 |
> /<somewhere_global_available>/gentoo-<date>. This script or small set |
44 |
> of scripts should contain which packages to emerge, changes to |
45 |
> make.conf, package.use and other changes that is needed to make an |
46 |
> installation. And of course the scripts will be in a VCS. The software |
47 |
> project will just point to the version it currently uses at |
48 |
> /<somewhere_global_available>/gentoo-<date>. This way old versions of |
49 |
> the software project can be compiled without problems, as all the |
50 |
> tools will be the same version. |
51 |
> |
52 |
> What concerns me is that I think I should only update the Portage Tree |
53 |
> when I need it. With the method described above I'll get a new version |
54 |
> of the Portage Tree each time. That means that I'll not get the same |
55 |
> installation if I run my script with 2 weeks in between, which I don't |
56 |
> like, as I then can't fix small problems without changing everything. |
57 |
> |
58 |
> Any ideas on how I somehow gets the same portage tree or another way |
59 |
> to solve this problem? |
60 |
> And I guess I should also store the source files somewhere and not get |
61 |
> them downloaded, so I don't risk an old version is suddenly not |
62 |
> available anymore - is there a way to do that? |
63 |
> |
64 |
> Regards |
65 |
> Anders Bo Rasmussen |
66 |
> |
67 |
> |
68 |
|
69 |
|
70 |
-- |
71 |
Jacob |