You are not logged in.

#1 2004-08-15 13:55:15

lubot
Member
Registered: 2003-10-18
Posts: 14

reiser4progs-1.0.0, libaal-1.0.0, grub-0.95+reiser4-patch...

I've made some PKGBUILDs for the latest reiser4 tools:

Packages can be found in incoming:
ftp://ftp.archlinux.org/incoming/reiser … 0.0.tar.gz
ftp://ftp.archlinux.org/incoming/libaal-1.0.0.tar.gz
ftp://ftp.archlinux.org/incoming/grub-0 … 809.tar.gz

reiser4progs-1.0.0

pkgname=reiser4progs
pkgver=1.0.0
pkgrel=1
pkgdesc="library for reiser4 filesystem access and reiser4 utilities"
url="http://www.namesys.com/"
depends=('libaal>=1.0.0')
source=(ftp://ftp.namesys.com/pub/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('47e9c3b3760e5500d6176555dd268fea')

build() {
  cd $startdir/src/$pkgname-$pkgver

  ./configure --prefix=/usr --exec-prefix= --libdir=/usr/lib 
              --disable-debug --enable-stand-alone 
              --disable-fnv1-hash --disable-rupasov-hash --disable-tea-hash 
              --disable-deg-hash --disable-short-keys --disable-special
  make || return 1
  make DESTDIR=$startdir/pkg install
}

libaal-1.0.0

pkgname=libaal
pkgver=1.0.0
pkgrel=1
pkgdesc="library that provides application abstraction mechanism"
url="http://www.namesys.com/"
depends=('glibc')
source=(ftp://ftp.namesys.com/pub/reiser4progs/libaal-1.0.0.tar.gz)
md5sums=('f4580ec2969f79eb2d29b97f3cb9f04e')
install=$pkgname.install

build() {
  cd $startdir/src/$pkgname-$pkgver
  # for grub reiser4 support: "--enable-stand-alone --enable-memory-manager"
  ./configure --prefix=/usr --enable-stand-alone --enable-memory-manager
  make || return 1
  make DESTDIR=$startdir/pkg install
}

grub-0.95 + grub-0.95-reiser4-20040809.diff

pkgname=grub
pkgver=0.95_reiser4_20040809
orgver=0.95
pkgrel=1
pkgdesc="A GNU multiboot boot loader (with reiser4 support)"
url="http://www.gnu.org/software/grub/"
depends=('ncurses' 'reiser4progs>=1.0.0')
makedepends=('libaal>=1.0.0')
source=(ftp://alpha.gnu.org/gnu/$pkgname/$pkgname-$orgver.tar.gz 
        menu.lst install-grub 
        ftp://ftp.namesys.com/pub/reiser4progs/grub/grub-0.95-reiser4-20040809.diff )
backup=('boot/grub/menu.lst')
md5sums=('4ca8e4363d5f1980f2c63b7f5cdbe0d1' 'caefdb354a5666e9d75f58664e0e9c2d'
         '3b108306c5e76968de9dc01216ba1ef7' 'b50531d6784b5da1293b421760bf163e')

build() {
  cd $startdir/src/$pkgname-$orgver

  msg "Apply reiser4 patch"
  patch -p1 <../grub-0.95-reiser4-20040809.diff >/dev/null
  aclocal && autoheader && autoconf && automake --add-missing

# optimizations break the build -- disable them
  CFLAGS= ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin
  CFLAGS= make || return 1
  make DESTDIR=$startdir/pkg install
  mkdir -p $startdir/pkg/boot/grub
  cp ../menu.lst $startdir/pkg/boot/grub
  install -m755 -D ../install-grub $startdir/pkg/sbin/install-grub
}

kernel-2.6.8-rc4-mm1 + reiser4 patch 2004.08.13

kerrev=reiser4

pkgname=kernel26-$kerrev
pkgver=2.6.8_rc4_mm1
basever=2.6.7
patchver=2.6.8-rc4
mmver=mm1
newver=$patchver-$mmver-$kerrev
pkgrel=1
pkgdesc="Custom Linux Kernel: $kerrev"
url="http://www.kernel.org"
depends=('module-init-tools')
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$basever.tar.bz2 
        http://kernel.org/pub/linux/kernel/v2.6/testing/patch-$patchver.bz2 
        http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/$patchver/$patchver-$mmver/$patchver-$mmver.bz2 
        http://thebsh.namesys.com/snapshots/2004.08.13/all.diff.gz )
md5sums=('a74671ea68b0e3c609e8785ed8497c14' '3fa26816f4e298daccae3e94ec6c8144'
         '748f33fe26cb1de02dc1380854e316d2' '32bfc02ac05b35a3f007129d3f22701f')

build() {
  cd $startdir/src/linux-$basever

  # apply patches here
      msg "Appling kernel update: patch-$patchver"
      patch -p1 <../patch-$patchver >/dev/null
      msg "Appling mm kernel patch: $patchver-$mmver"
      patch -p1 <../$patchver-$mmver >/dev/null
      msg "Appling patch: reiser4"
      patch -p1 <../all.diff >/dev/null

  # get rid of the 'i' in i686
  carch=`echo $CARCH | sed 's|i||'`

  # make changes in kernel configuration
  make menuconfig
  #make xconfig

  # set EXTRAVERSION to create unique /lib/modules/ subdirectories
  sed -i -e "s/EXTRAVERSION =.*/&-$kerrev/" Makefile

  make clean bzImage modules || return 1
  mkdir -p $startdir/pkg/{lib/modules,boot}
  make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
  
  # create unique names in /boot/
  cp System.map $startdir/pkg/boot/System.map26-$kerrev
  cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26-$kerrev
  install -D -m644 Makefile $startdir/pkg/usr/src/linux-$newver/Makefile
  install -D -m644 .config $startdir/pkg/usr/src/linux-$newver/.config
  install -D -m644 .config $startdir/pkg/boot/kconfig26-$kerrev
  mkdir -p $startdir/pkg/usr/src/linux-$newver/include
  mkdir -p $startdir/pkg/usr/src/linux-$newver/arch/i386/kernel
  for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$newver/include/
  done
  
  # copy files necessary for later builds, like nvidia and vmware
  cp -a scripts $startdir/pkg/usr/src/linux-$newver/
  mkdir -p $startdir/pkg/usr/src/linux-$newver/.tmp_versions
  cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$newver/arch/i386/
  cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$newver/arch/i386/kernel/
  
  # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$newver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$newver/$i
  done
  cd $startdir/pkg/usr/src/linux-$newver/include && ln -s asm-i386 asm
  chown -R root.root $startdir/pkg/usr/src/linux-$newver

  cd $startdir/pkg/lib/modules/$newver && 
    (rm -f build; ln -sf /usr/src/linux-$newver build)
}

sources:
http://www.namesys.com/
ftp://ftp.namesys.com/pub/reiser4progs/
http://thebsh.namesys.com/snapshots/2004.08.13/

Offline

#2 2004-08-15 16:35:25

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: reiser4progs-1.0.0, libaal-1.0.0, grub-0.95+reiser4-patch...

May I add a warning about using reiser4 in your boot partition (which is what the reiser4 grub patch is for) - it is not stable, is acknowledged as being broken by namesys and is not recommended for use by namesys (the people who make reiser4).

Obviously, if you use it, it's possible it will work for you, but beware that using reiser4 on your boot partition is not recommended as if/when it fails you wil have an utterly unbootable machine.

Having said that, reiser4 is a good filesystem to play around with and if you have a spare partition can be good for speed testing, etc. You do not need the grub patch to simply use reiser4 on your system, even if everything (apart from the boot partition) is reiser4.

If you are going to convert your / to reiser4 then please have a seperate boot partition using ext3 or something like that or you may end up in severe trouble.

I had a complete reiser4 system for some weeks (apart from my boot partition obviously) and it is good but it still has some problems, especially in the last few kernel releases. Andrew Morton will not touch it yet, which may tell you something.

If you can stand the heresy, Gentoo forums have hundreds of threads on reiser4 which may be useful for people, recent threads are concentrating on the problems occuring with recent kernels (system locks, lost data, an odd problem of data being moved, copied, changed but on reboot being how it was before the change - not good for a production system, lol).

Not being an alarmist but please be careful using it on /boot

HTH  big_smile

PS If you want to try reiser4 as it progresses, try this link here as it has almost daily snapshots.


pickledonion AT gmail.com

Offline

#3 2004-08-15 16:42:57

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: reiser4progs-1.0.0, libaal-1.0.0, grub-0.95+reiser4-patch...

Don't use 4K stack with Reiser4 yet, I guess most problems are caused by that (same is true for XFS).

Offline

#4 2004-08-15 16:50:37

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: reiser4progs-1.0.0, libaal-1.0.0, grub-0.95+reiser4-patch...

A good tip, but no it's not related to the majority of the problems. It is simply due to it being still in development.

It is a good fs, but needs a lot of work yet, I can't wait for it to mature a bit, I was very impressed when I used it (well, apart from the data loss and system locks when under load)  big_smile


pickledonion AT gmail.com

Offline

Board footer

Powered by FluxBB