Alba Experiment
From Gentoo Linux Wiki
This article is still a Stub. You can help Gentoo-Wiki by expanding it.
Contents |
[edit] About
Alba-Experiment aka Let the Sun emerge is an experimental implementation of the Gentoo package management system (portage) and build environment on Solaris 11/OpenSolaris.
[edit] Features
This section higlights the features used to make portage working on Solaris:
- New ARCH KEYWORD: x86-sunos
- New USE flags: g-prefix and gnulinks
- Uses an overlay portage tree.
- Profiles for:
- Solaris 11 (a.k.a. Nevada):
- core: useful for a core or minimal or kernel-only (OpenSolaris) distribution.
- jds: useful for a working full installation of Solaris, just pull in the power of Gentoo in your existing system!
- Solaris 10: under construction.... waiting for Sergio!
- Solaris 11 (a.k.a. Nevada):
[edit] Installation
The best way to test Alba Experiment is on a Solaris Zone to avoid the complete destruction of your Solaris installation.
[edit] Requirements
- a working installation of Solaris 10 (1/06) or Solaris Express (nevada)
[edit] Install
- create a Whole Root Zone on your Solaris
- clean all unneed package, for a list of minimal packages required see docs/Solaris-base-packages.txt TODO.
- Note that if you have a non-core installation of Solaris some files could be overwritten. Using the Solaris package method (pkgadd) to install the stage1.5 should help you in finding conflicting files. To ensure that portage would not overwrite files you don't want while emerging packages, use the FEATURE='collision-protect' parameter into /etc/make.conf.
- download stage-1.5 from Project Page
- add the portage user and group to the zone
zone# groupadd -g 250 portage zone# useradd -u 250 -g portage -G portage -d /var/tmp/portage -m -s /bin/false portage
- install the stage1.5 file
zone# pkgadd -d <STAGEFILE>
- obtain the official snapshot portage tree from Gentoo Mirror
- untar under /usr/portage
- obtain the unofficial portage tree for Solaris through subversion:
zone# cd /opt zone# svn co http://svn.berlios.de/svnroot/repos/alba-experiment/portage-x86-sunos/trunk portage-x86-sunos
- create a link to the profile:
zone# ln -sf ../opt/portage-x86-sunos/profiles/default-sunos/x86/5.11/ /etc/make.profile
- configure the make.conf file:
- add or change PORTDIR_OVERLAY=/opt/portage-x86-sunos
- edit it or copy the make.conf.example file
- add the new architecture to default architecture list:
zone# echo x86-sunos >> /usr/portage/profiles/arch.list
- update the environment:
zone# binutils-config i386-pc-solaris2.11-2.16.1 zone# gcc-config i386-pc-solaris2.11-4.1.0
- Update/create the library cache # ldconfig 99. enjoy
[edit] Working with Portages
- Adapt an exiting ebuild to work with Gentoo/Solaris
[edit] To Do and things that could be done better
- fix the man pages: right now they are gzipped and not suitable for SUN man
- I'm not very proud of the dirty work-around done on portage.py for the shutil.rmtree problem (check the source and the patch for details)
- sandbox does not work at all.
[edit] Known Issues
[edit] Stage1.5 Release 2006.04.06
- problem with zlib: /usr/lib/libz.so is a GNU ld script, it should be a link
- some packages does not compile with National Lang Support enabled. If you have troubles, please fix it and let me know the solutions or workaround the problem by setting '-nls' use flag.
[edit] Recent News
- Next steps:
-
having GTK+ compiling (and working) properly.done for provile 5.11-x11 - release a new 'stage1.5'
- convert the /etc/init.d scripts to SMF
-
- Now working on:
- Switching to Portage-prefix
- 12/Sep/2006: there are currently 746 ebuild installed and working on my laptop!!!
- 01/May/2006: splitted the profiles: 'core' and 'jds'.
- 28/Apr/2006: addedd gcc-3 working ebuild. This will be the default
- 25/Apr/2006: working on making Xorg v7/modular to build. Troubles with GL and DRI stuffs (obviously, as for what I know DRI is not implemented inside Solaris kernel).
- 02/Apr/2006: addedd CUPS dependency tree with foomatic
[edit] Links
Portaris Another project
