Skip to end of metadata
Go to start of metadata

 

1. Clone illumos-userland repository. 

 hg clone ssh://anonhg@hg.illumos.org/illumos-userland

2. Install required packages:

 $ sudo apt-get install \
archiver-gnu-tar \
compatibility-ucb \
compress-p7zip \
compress-unzip \
database-mysql-51 \
debhelper \
developer-build-ant \
developer-build-autoconf \
developer-build-automake-110 \
developer-build-gnu-make \
developer-build-libtool \
developer-build-make \
developer-build-makedepend \
developer-documentation-tool-doxygen \
developer-gcc-3 \
developer-gcc-44 \
developer-gnome-gettext \
developer-java-jdk \
developer-java-junit \
developer-lexer-flex \
developer-library-lint \
developer-macro-cpp \
developer-macro-gnu-m4 \
developer-object-file \
developer-parser-bison \
developer-swig \
developer-versioning-mercurial \
docbook-data \
dpkg-dev \
driver-network-bpf \
editor-gnu-emacs \
editor-gnu-emacs-gnu-emacs-no-x11 \
file-gnu-coreutils \
file-gnu-findutils \
image-library-librsvg \
image-scanner-xsane-sane-backends \
library-apr-util-14 \
library-c++-sigcpp \
library-desktop-xdg-libcanberra \
library-guile \
library-ilmbase \
library-lcms \
library-libevent \
library-librsync \
library-libtool-libltdl \
library-libtorrent \
library-libxslt \
library-neon \
library-nspr-header-nspr \
library-pcre \
library-popt \
library-python-2-python-gnome-libs-26 \
library-python-2-setuptools-26 \
library-sdl \
package-pkg \
print-cups \
runtime-erlang \
runtime-lua \
runtime-ocaml \
runtime-perl-512 \
system-font-truetype-liberation \
system-font-xorg-xorg-core \
system-header-header-audio \
system-header-header-ugen \
system-library-math-header-math \
system-library-mozilla-nss-header-nss \
system-network-avahi \
system-library-libpcap \
system-xopen-xcu4 \
text-gawk \
text-gnu-diffutils \
text-gnu-gettext \
text-gnu-grep \
text-gnu-patch \
text-gnu-sed \
text-groff \
text-texinfo \
web-server-apache-22 \
x11-library-messa3 \
x11-library-toolkit-libxaw7

3. Download and install Sun Studio 12.1 and create needed symlink to SUNWspro/sunstudio12.1

  $ sudo mkdir -p /opt/SUNWspro
  $ sudo ln -s /opt/sunstudio12.1 /opt/SUNWspro/sunstudio12.1

4. Create gcc symlinks (this step will be removed in the future)

  $ sudo ln -s /usr/sfw/bin/gcc /usr/bin/
  $ sudo ln -s /usr/sfw/bin/g++ /usr/bin/
  $ sudo ln -s /usr/sfw/bin/gcc /usr/gnu/bin/cc
$ sudo ln -s /usr/sfw/bin/g++ /usr/gnu/bin/CC
$ sudo ln -s /usr/lib/cpp /lib/ 
5. You can build each components by going to into each packages and issue 'gmake deb'. Make sure you use 'root' while building userland.
   # cd illumos-userland/components/<component>
# gmake deb

6. For full userland build,

   # cd illumos-userland
# gmake deb

Please note that you need to have (build and) install following components before full build:

    • doxygen (developer-documentation-tool-doxygen)
    • unixodbc (library-unixodbc)
    • libevent (library-libevent)
    • pcre (library-pcre)
    • lua (runtime-lua)
    • wxwidgets (library-graphics-wxwidgets)
    • spawn-fcgi (web-fastcgi-spawn-fcgi)
    • librsync (library-librsync)
    • libtorrent (library-libtorrent)
    • libneon (library-neon)
    • libxslt (library-libxslt)
    • tcl (runtime-tcl-8)
    • ilmbase (library-ilmbase)
    • stdcxx (library-c++-stdcxx)
    • privoxy (web-proxy-privoxy) Note: Read components/privoxy - INSTALL procedure. We need group and user 'privoxy' as described in manual.
    • libusb/wrapper (system-library-usb-libusb)

References

1 How To Build illumos

Labels: