Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How I managed to install 2008.0_beta2 + paludis + afs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Tue Jun 10, 2008 8:53 pm    Post subject: How I managed to install 2008.0_beta2 + paludis + afs Reply with quote

  1. Get SystemRescueCD, burn and boot.
  2. Assume following disc layout:
      /dev/sda1 boot
      /dev/sda2 extended
      /dev/sda5 swap
      /dev/sda6 root
  3. Prepare filesystems:
      mkfs.reiser4 -L root -o create=ccreg40 /dev/sda6
      mount /dev/sda6 /mnt/gentoo -o noatime
      mkdir /mnt/gentoo/boot
      mount /dev/sda1 /mnt/gentoo/boot -o noatime
      mkswap /dev/sda5
      swapon /dev/sda5
  4. Prepare loop files:
      AFS cache (128 MB)
        dd if=/dev/random of=/mnt/gentoo/AFSFile bs=4M count=32
      ccache (512 MB)
        dd if=/dev/urandom of=/mnt/gentoo/CcacheFile bs=16M count=32
      sparse file (up to 1 GB) for portage tree
        dd if=/dev/null of=/mnt/gentoo/PortageFile bs=1M seek=1024
    Set up loop filesystems:
      mkfs.reiser4 -L portage -f /mnt/gentoo/PortageFile (no -o create=ccreg40 because of unfinished reiser4 loop files support)
      mkfs.reiser4 -L ccache -f /mnt/gentoo/CcacheFile
      mkfs.ext3 -L afs /mnt/gentoo/AfsFile
      tune2fs -o journal_data_writeback
      tune2fs -m 2
    Mount loop files:
      mkdir /mnt/gentoo/usr/local/portage
      mkdir /mnt/gentoo/var/tmp/ccache
      mount -o loop,noatime /mnt/gentoo/CcacheFile /var/tmp/ccache
      mount -o loop,noatime /mnt/gentoo/PortageFile /usr/portage
  5. Install 2008.0_beta2 Portage snapshot:Install 2008.0_beta2 stage3 files:
  6. Prepare chroot:
      cp /etc/resolv.conf /mnt/gentoo/etc
      mount -t proc none /mnt/gentoo/proc
      mount -o bind /dev /mnt/gentoo/dev
    Prepare environment:
      chroot /mnt/gentoo /bin/bash
      env-update ; source /etc/profile
      export PS1="\A $PS1"
  7. Edit make.conf:
      /etc/make.conf wrote:
      CFLAGS="-Os -march=prescott -pipe -fomit-frame-pointer -msse3"
      CXXFLAGS=${CFLAGS}
      CHOST="i686-pc-linux-gnu"
      FEATURES="ccache userfetch userpriv usersandbox"
      MAKEOPTS="-j3 -s"
      ACCEPT_KEYWORDS="~x86"
      PORTDIR_OVERLAY="/usr/local/portage"
      DISTDIR="/usr/local/portage/distfiles"
      GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/"
      SYNC="rsync://rsync.gentoo.org/gentoo-portage"
  8. Prepare to build:
      emerge -avt ccache
      export CCACHE_DIR=/var/tmp/ccache
      ccache -M 510M
  9. Install paludis:
    1. USE=-python emerge -avt paludis
    2. Edit configuration
      1. bashrc
        /etc/paludis/bashrc wrote:
        CHOST="i686-pc-linux-gnu"
        CFLAGS="-Os -march=native -msse3 -pipe -fomit-frame-pointer"
        CXXFLAGS="${CFLAGS}"
        LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,now"
        MAKEOPTS="-j4 -s"

        PATH="/usr/lib/ccache/bin/:${PATH}"
        CCACHE_DIR="/var/tmp/ccache"
        SANDBOX_WRITE="${SANDBOX_WRITE}:${CCACHE_DIR}"

        if [[ "${CATEGORY}/${PN}" == "sys-libs/ncurses" ]] ; then
        CFLAGS="-Os -march=native -msse3 -pipe"
        fi

        if [[ "${CATEGORY}/${PN}" == "sys-fs/udev" ]] ; then
        MAKEOPTS="-j1"
        LDFLAGS="-O ---hash-style=gnu --as-needed -z now"
        fi

        if [[ "${CATEGORY}/${PN}" == "sci-physics/root" ]] ; then
        EXTRA_ECONF="--enable-pythia6 --with-pythia6-libdir=/usr/lib"
        fi

        export PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
      2. environment.conf
        /etc/paludis/environment.conf wrote:
        world = /var/lib/portage/world
        reduced_username = portage
      3. keywords.conf
        /etc/paludis/keywords.conf wrote:
        */* x86 ~x86
      4. licenses.conf
        /etc/paludis/licenses.conf wrote:
        */* *
      5. mirrors.conf
        /etc/paludis/mirrors.conf wrote:
        * http://gentoo.mirror.web4u.cz//distfiles http://ftp.fi.muni.cz/pub/linux/gentoo//distfiles ftp://gentoo.mirror.web4u.cz//distfiles
      6. package_mask.conf
        /etc/paludis/package_mask.conf wrote:
        media-libs/fontconfig::gentoo
        =app-misc/screen-9999:0::berkano
      7. package_unmask.conf
        /etc/paludis/package_unmask.conf wrote:
        app-paludis/paludis-hooks-ask
        www-client/mozilla-firefox
        dev-libs/nss
        dev-libs/nspr
        net-libs/xulrunner
        =net-www/netscape-flash-10_beta20080515
      8. use.conf
        /etc/paludis/use.conf wrote:
        */* bash-completion ithreads sqlite sse2 xattr gmp sasl threads
        */* LINGUAS: -* cs sk en en_US
    3. Configure repositories:
      1. berkano.conf
        /etc/paludis/repositories/berkano.conf wrote:
        location = ${ROOT}/usr/portage/local/berkano
        sync = svn+http://svn.liveforge.org/berkano/trunk
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      2. centerim_mob-branch.conf
        /etc/paludis/repositories/centerim_mob-branch.conf wrote:
        location = ${ROOT}/usr/portage/local/centerim
        sync = rsync://transacid.de/centerim
        sync_options = "--rsync-option=--exclude=profiles"
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      3. custom-kernels.conf
        /etc/paludis/repositories/custom-kernels.conf wrote:
        location = ${ROOT}/usr/portage/local/custom-kernels
        sync = svn+http://opensvn.csie.org/custom_kernels
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      4. desktop-effects.conf
        /etc/paludis/repositories/desktop-effects.conf wrote:
        location = ${ROOT}/usr/portage/local/desktop-effects
        sync = git://git.overlays.gentoo.org/proj/desktop-effects.git
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      5. gentoo.conf
        /etc/paludis/repositories/gentoo.conf wrote:
        location = ${ROOT}/usr/portage
        sync = rsync://rsync.gentoo.org/gentoo-portage/ rsync://rsync.europe.gentoo.org/gentoo-portage/
        profiles = ${location}/profiles/default/linux/x86/2008.0/
        distdir = /usr/local/portage/distfiles
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = ${location}/metadata/cache
      6. installed.conf
        /etc/paludis/repositories/installed.conf wrote:
        location = ${ROOT}/var/db/pkg/
        format = vdb
        names_cache = /var/cache/paludis/names
        provides_cache = /var/cache/paludis/provides
      7. mozilla.conf
        /etc/paludis/repositories/mozilla.conf wrote:
        location = ${ROOT}/usr/portage/local/mozilla
        sync = svn+http://overlays.gentoo.org/svn/proj/mozilla
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/names
        write_cache = /var/cache/paludis/metadata
      8. paludis-extras.conf
        /etc/paludis/repositories/paludis-extra.conf wrote:
        location = ${ROOT}/usr/portage/local/paludis-extras
        sync = rsync://drzile.dyndns.org/paludis-extras/ rsync://server.guldbrand.net/paludis-extras/ rsync://ns-linux.org/paludis-extras/
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      9. soor.conf (adjust qt3 ebuild according to creidiky)
        /etc/paludis/repositories/soor.conf wrote:
        location = ${ROOT}/usr/portage/local/qt-copy
        sync = git://repo.or.cz/gentoo-soor-overlay.git
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      10. rox.conf
        /etc/paludis/repositories/rox.conf wrote:
        location = ${ROOT}/usr/portage/local/rox
        sync = svn+http://overlays.gentoo.org/svn/proj/rox/trunk/overlay/
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      11. science.conf
        /etc/paludis/repositories/science.conf wrote:
        location = ${ROOT}/usr/portage/local/science
        sync = svn+http://overlays.gentoo.org/svn/proj/science/overlay
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      12. sunrise.conf
        /etc/paludis/repositories/sunrise.conf wrote:
        location = ${ROOT}/usr/portage/local/sunrise
        sync = svn+http://overlays.gentoo.org/svn/proj/sunrise/reviewed
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
      13. zen-sources.conf
        zen-sources.conf wrote:
        location = ${ROOT}/usr/portage/local/zen-sources
        sync = git://zen-sources.org/zen/portage-overlay.git
        master_repository = gentoo
        format = ebuild
        names_cache = /var/cache/paludis/names
        write_cache = /var/cache/paludis/metadata
    4. Finish paludis configuration:
        mkdir /var/cache/paludis/names -p
        mkdir /var/db/pkg/.cache/
        paludis -u --permit-unsafe-uninstalls mktemp
        usermod -G portage -a paludisbuild
        usermod -G paludisbuild -a portage
        mkdir /var/tmp/paludis
        chgrp -R portage /var/tmp/paludis
        chgrp -R portage /var/tmp/ccache
        chmod -R g+rwx /var/tmp/paludis
        chmod -R g+rwx /var/tmp/portage
        chmod -R g+rwx /var/tmp/ccache
        chmod +s /var/tmp/paludis
        chmod +s /var/tmp/portage
        chmod +s /var/tmp/ccache
  10. Upgrade GCC: (there's an issue with upgrading from 4.1 to 4.3 on amd64 involving multilib, easy to patch after some googling)
      paludis -i01 gcc
      gcc-config 2
      source /etc/profile
      export PS1="\A $PS1"
  11. Finishing this phase of installation:
      paludis -i01 udev (because of openrc !<sys-fs/udev-118-r2)
      dispatch-conf
      paludis -s

      edit locales:
        /etc/locale.gen wrote:
        cs_CZ.utf8 UTF-8
        cs_CZ ISO-8859-2
        sk_SK.utf8 UTF-8
        sk_SK ISO-8859-2
        en_US.UTF-8 UTF-8
        en_US ISO-8859-1
      time paludis -i1 everything --dl-reinstall always
  12. Install applications:
    1. Set USE flags:
      /etc/paludis/use.conf wrote:
      # use.conf
      # This file created by portage2paludis.bash
      */* 7zip a52 aac -accessibility acl acpi afs alsa amr amrnb amrwb apm avahi bash-completion bindist branding bzip2 caps cairo cdda cddb cdr curl dbus djvu dv dvd dvdr dvi \
      eds exif esd fam ffmpeg flac fontconfig fuse galago gif glib glitz gmp gnome gnome-keyring gphoto2 gs gstreamer gtk hal hpn imagemagick imlib ithreads jbig jpeg jpeg2k \
      -kde kdeenablefinal kdehiddenvisibility kerberos keyring lcms ldap libnotify lm_sensors lzma mmx mng mp3 mp4 mpeg nautilus nsplugin offensive ogg opengl paludis pch pdf peg png qt-copy qt3 qt4 \
      samba slang speex spell sqlite sqlite3 sse sse2 svg theora threads tiff timidity tracker truetype vorbis wmf X X509 x264 xattr \
      xcb xcomposite xine xinerama xml xpm xscreensaver xulrunner xv xvid zeroconf zsh-completion

      */* LINGUAS: -* cs sk en en_US
      */* VIDEO_CARDS: -* fglrx radeon
      */* ALSA_CARDS: -* intel8x0 cmipci
      */* PALUDIS_HOOKS: -* eselect

      dev-libs/boost icu
      sys-apps/paludis glsa inquisitio pink portage ruby visibility
      app-paludis/paludis-wrapper paludis_hooks_ask paludis_hooks_eselect paludis_hooks_nice
      sys-libs/ncurses profile
      app-paludis/paludis-hooks paludis_hooks_ask paludis_hooks_auto-patch paludis_hooks_check-security-updates paludis_hooks_collision-protect paludis_hooks_compress-man paludis_hooks_eselect paludis_hooks_generate-metadata paludis_hooks_locale-purge paludis_hooks_nice paludis_hooks_package-resume paludis_hooks_undo-prelink
      net-im/centerim icq
      www-client/elinks ftp javascript
      x11-libs/cairo opengl svg
      www-client/mozilla-firefox startup-notification
      net-dns/avahi mdnsresponder-compat
      media-video/mplayer ass cdparanoia color-console dts dvdnav dvdread -eac3 ftp -gtk live lzo mga mmxext mp2 mp3 mpeg musepack pnm quicktime rar real rtc samba speex sortsub theora tga win32codecs xv xvid
      net-fs/samba async swat winbind
      x11-libs/qt sqlite qt3support
      sys-fs/ntfs3g suid
      #net-nds/openldap smbkrb5passwd
      sys-auth/pambase consolekit mktemp
      net-fs/samba automount syslog
      app-admin/gkrellm hddtemp lm_sensors
      app-text/ghostscript-gpl -bindist
      app-misc/tracker applet deskbar gsf xine
      app-crypt/pinentry -gtk
      kde-base/kdelibs utempter
      media-gfx/gimp smp
      net-libs/xulrunner startup-notification
      x11-misc/xscreensaver new-login
      dev-python/gnome-python-desktop metacity
      media-video/totem ffmpeg
      gnome-extra/gnome-games artworkextra
      media-libs/sdl-mixer mikmod
      games-simulation/openttd scenarios
      net-misc/openssh -ldap
      gnome-extra/gnome-games guile
      media-gfx/splashutils fbcondecor
      media-gfx/inkscape dia inkjar postscript
      sci-physics/geant athena examples
      x11-wm/compiz-fusion unsupported
      sys-apps/hal disk-partition laptop
      sys-apps/parted device-mapper
      sys-power/pm-utils ntp
      net-misc/neon pkcs11
      media-libs/xine-lib mmap
      app-text/poppler-bindings -qt3
      gnome-base/gdm remote
      app-misc/screen multiuser nethack
      media-video/totem -tracker
      sci-physics/root fftw
      x11-libs/openmotif xft
      gnome-extra/sensors-applet hddtemp
      gnome-base/gnome-applets -apm
    2. Here comes circular-dependecy hell: (also fix involved ebuilds according to _GNU_SOURCE solution)
        paludis -i subversion
        nano /usr/portage/locale/paludis-extras/repo_name
        paludis -s
        mkdir /var/cache/paludis/metadata
        paludis -i paludis-hooks
        paludis -i1 paludis
        time paludis -i1 --dl-reinstall if-use-changed --continue-on-failure if-satisfied
          real 196m41.592s
          user 165m45.495s
          sys 78m20.580s
        paludis -i01 glib
        time paludis -i1 --dl-reinstall if-use-changed --continue-on-failure if-satisfied everything
        echo "x11-base/xorg-server -hal" >> /etc/paludis/use.conf
        eselect paludis-hook disable collision-protect
        paludis -i01 ncurses
        eselect paludis-hook enable collision-protect
        remove check on ubuntu flag in libXft::soor ebuild
        /etc/conf.d/prelink PRELINKING="yes"
  13. Build kernel:
      cd /usr/src/linux
      make menuconfig
      make -j4 && make modules_install
  14. Continue with building:
      time paludis -i1 --dl-reinstall if-use-changed --continue-on-failure if-satisfied everything
      prelink -amR
      paludis -i gdm
  15. Edit configuration files:
      nano -w /etc/conf.d/consolefont
      nano -w /etc/conf.d/gpm
      nano -w /etc/conf.d/hwclock
      nano -w /etc/conf.d/keymaps
      nano -w /etc/conf.d/ntp-clien
      nano -w /etc/openafs/ThisCell
      nano -w /etc/fstab

      cd /etc
      rm localtime
      ln -s ../usr/share/zoneinfo/Europe/Prague /etc/localtime

      paludis -i reiser4progs sysfsutils dhcpcd vixie-cron gkrellm syslog-ng

      rc-update add alsasound boot
      rc-update add gpm default
      rc-update add ntp-client default
      rc-update add ntpd default
      rc-update add openafs-client default
      rc-update add sshd default
      rc-update add cupsd default
      rc-update add xdm default
      rc-update add vixie-cron default
      rc-update add syslog-ng default


Last edited by Mr. Tao on Wed Jun 11, 2008 4:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
bigmatt
n00b
n00b


Joined: 30 Dec 2004
Posts: 13

PostPosted: Tue Jun 10, 2008 10:53 pm    Post subject: Reply with quote

cool, that should help a lot of people!
Back to top
View user's profile Send private message
inp3dance
n00b
n00b


Joined: 22 Jan 2008
Posts: 17

PostPosted: Sun Jul 27, 2008 7:54 pm    Post subject: Reply with quote

Hi, I'd like to ask U 2 questions:
- -Os is faster on prescott than -O2 ?
- kdeenablefinal and kdehiddenvisibility breaks prelink, or why aren't U using them?
Back to top
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Sun Jul 27, 2008 8:10 pm    Post subject: Reply with quote

inp3dance wrote:
Hi, I'd like to ask U 2 questions:
- -Os is faster on prescott than -O2 ?
I guess it depends on application.[/quote]
inp3dance wrote:
- kdeenablefinal and kdehiddenvisibility breaks prelink, or why aren't U using them?
AFAIK it doesn't brak anything, I just don't have kde installed on this box therefore I do not set these flags.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Sun Jul 27, 2008 8:29 pm    Post subject: Reply with quote

Seems like this lacks one last important step - removing portage itself (not a joke). However, some core packages DEPEND on portage, and thus it's not easy. Maybe some hint will follow?
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1160

PostPosted: Mon Jul 28, 2008 5:30 pm    Post subject: Reply with quote

with this;

chgrp -R portage /var/tmp/paludis

kde*-scm packages do not build.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Mon Jul 28, 2008 6:59 pm    Post subject: Reply with quote

tranquilcool wrote:
with this;

chgrp -R portage /var/tmp/paludis

kde*-scm packages do not build.
Better than doing above mentioned ownership gymnastics (which is there to allow some coexistence of both portage and paludis with ccache) is edit environment.conf
/etc/paludis/environment.conf:
world = /var/lib/portage/world
reduced_username = portage
(runing "emerge <anything>" with FEATURES="userfetch userpriv ccache" restores default ownership/rights of those directories).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum