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