1 |
(Apologies if you get this mail a second time - first i tried with |
2 |
baselayout-prefix/files attached as a tar.gz-ball and did not see this |
3 |
mail in gmane.org for hours. Now these files are attached separately.) |
4 |
|
5 |
|
6 |
On Wed, 2006-09-06 at 21:20 +0200, Grobian wrote: |
7 |
> On 06-09-2006 15:37:31 +0200, Michael Haubenwallner wrote: |
8 |
> With respect, but I think the reason we don't use toolbox is because I |
9 |
> never got it to bootstrap anything :( |
10 |
|
11 |
IIRC you did not manage to inform it where to download things from. |
12 |
But it's ok for me to have a bootstrap-script in the tree, even i don't |
13 |
plan to use it. |
14 |
|
15 |
|
16 |
Well, here are the two portage patches for dynamically duping |
17 |
environment values. Patch-Numbers fit into my previous mail containing a |
18 |
bunch of other patches [1]. |
19 |
|
20 |
[06-env-conf+ext.patch] |
21 |
Let portage create /etc/env.conf containing somewhat a dump of the |
22 |
environment bits found in /etc/env.d/*, to be read by /sbin/extenv, see |
23 |
below (the baselayout-prefix.ebuild). |
24 |
|
25 |
[07-env-dup.patch] |
26 |
Interpret variables PORTAGE_ENVDUP* found in /etc/env.d/*, to dupe |
27 |
values from one environment variable to another. Example is to dupe |
28 |
values from LDPATH to LD_LIBRARY_PATH, SHLIB_PATH or LIBPATH, see below |
29 |
(the baselayout-linux.ebuild). |
30 |
|
31 |
|
32 |
[baselayout-prefix-0.1.ebuild] |
33 |
files: [0.1-extenv] [0.1-inputrc] [0.1-profile] [0.1-unprofile] |
34 |
Installs these files: |
35 |
/etc/profile |
36 |
The entry point for this eprefix. |
37 |
Utilizes /sbin/extenv to add values the environment. |
38 |
It also sets up an alias 'eenv-clear', which sources /etc/unprofile, |
39 |
to be able to remove all the environment values for this eprefix. |
40 |
/sbin/extenv |
41 |
Interprets /etc/env.conf and generates a list of shell commands (for |
42 |
sh and csh) adding values to the environment. |
43 |
/etc/unprofile |
44 |
The exit point from this eprefix. |
45 |
Also utilizes /sbin/extenv to remove values from the environment. |
46 |
Also unaliases 'eenv-clear'. |
47 |
/etc/env.d/98secondary |
48 |
Contains values for PATH,ROOTPATH,LDPATH,... for this eprefix. |
49 |
/var/spool/emerge/doasroot |
50 |
Create it as empty file, currently not in use. |
51 |
Intention is to collect commands from enewuser/enewgroup/... when |
52 |
not run as real root (uid 0). |
53 |
/etc/inputrc |
54 |
Some maybe out-of-date inputrc, could be unneccesary here. |
55 |
|
56 |
Additionally, two symlinks are created: |
57 |
/sbin/functions.sh -> /usr/lib/portage/bin/isolated-functions.sh |
58 |
/etc/init.d/functions.sh -> /sbin/functions.sh |
59 |
|
60 |
I use /usr/lib/portage/bin/isolated-functions.sh because i did not know |
61 |
better where to get those /sbin/functions.sh from. |
62 |
|
63 |
|
64 |
[baselayout-linux-0.1.ebuild] |
65 |
Installs only one file: |
66 |
/etc/env.d/99system |
67 |
Only contains two lines: |
68 |
PORTAGE_ENVDUP="LDPATH" |
69 |
PORTAGE_ENVDUP_LDPATH="LD_LIBRARY_PATH" |
70 |
This configures portage (with 07-env-dup.patch) to dupe collected |
71 |
values from LDPATH into LD_LIBRARY_PATH. |
72 |
|
73 |
Idea is to let make.profile symlink unmask different packages for hpux |
74 |
and aix, to dupe LDPATH value into SHLIB_PATH and LIBPATH respectively. |
75 |
|
76 |
Comments welcome! |
77 |
|
78 |
[1] http://thread.gmane.org/gmane.linux.gentoo.macosx/1080/focus=1080 |
79 |
|
80 |
-haubi- |
81 |
-- |
82 |
Michael Haubenwallner SALOMON Automation GmbH |
83 |
Forschung & Entwicklung A-8114 Friesach bei Graz |
84 |
mailto:michael.haubenwallner@×××××××.at http://www.salomon.at |
85 |
No HTML/MIME please, see http://expita.com/nomime.html |