[OSUNIX-dev] On the road to self hosting..
"C. Bergström"
cbergstrom at netsyncro.com
Wed Feb 4 09:52:13 GMT 2009
Alexander R. Eremin wrote:
> On Tue, 2009-02-03 at 19:52 +0100, "C. Bergström" wrote:
>
>> If you're curious what I'm doing...
>>
>> Take a quick look around here..
>>
>> http://pkg.osunix.org/packages/dump-dangerous/
>>
>> This should give an idea of what modular onnv-gate packages would be...
>> http://pkg.osunix.org/packages/dump-dangerous/sys-cmds/
>> http://pkg.osunix.org/packages/dump-dangerous/sys-libs/
>>
>> It's all snv_107, but after the hardware based install is rolling I'll
>> bump it to snv_108..
>>
>> Oh.. and before I forget.. it's self hosting from a zone..
>>
>>
>>
> Great work. I am surprised where you take time. I have not enough of it
> unfortunately. Well, the most interesting question now - how to install
> system from these packages? What are necessary and what are not present?
> Right? Need requirements - may be some types of installation: basic,
> basic + X,etc
>
What's missing.. still some pretty important things.. Here's the rough
list I'm down to..
sys-cmds/lvm newtask ypcmd ptools ttymon truss initpkg dtrace isns
modload saf prtconf fs.d dfs.cmds cmd/install.d grub xorg (275 packages)
icedtea6....
For the existing packages the good thing is all they are directly
extractable. So you won't have to delete meta data or worry about
containers/payload etc.. Just xar + xz and in theory a script that loops
through them could do the initial install.. The other option is once the
smart pm file channel is up we can just point the installer at that..
define some base package set and from there it's user choice what they
want to (un)install..
Verbose example - ignorable..
Issue 1
---------------
sys-cmds/lvm
depends on libxslt
which depends on libxml
which depends on libiconv
which depends on zlib
When I was on a pure amd64 platform everything was much easier. When I
had to go back and repackage a lot of things multilib that's where it
started getting tricky..
During the libxslt build I hit this..
/bin/sh ../libtool --tag=CC --mode=link /opt/SUNWspro/prod/bin/cc -i
-xO4 -xspace -xstrconst -Kpic -fast -xregs=no%frameptr -ztext
-L/usr/lib -R/usr/lib -o xsltproc xsltproc.o ../libxslt/libxslt.la
../libexslt/libexslt.la -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread
-liconv -lm -lsocket -lnsl -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread
-liconv -lm -lsocket -lnsl -lm
Which results in this..
ld: fatal: file /usr/lib/amd64/libiconv.so: wrong ELF class: ELFCLASS64
and also the xml2-config --libs including the -L / -R needs to be fixed.
---------------
Issue 2
---------------
I have to make a small change to the template so it can handle
directories with "." dot in the name
fs.d dfs.cmds cmd/install.d
--
./C
More information about the OSUNIX-dev
mailing list