Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

following netbsd 5.0_STABLE

Just a quick note as reminder for myself.

The aim is to keep in sync with NetBSD 5.0_STABLE / the current pkgsrc stable branch. I try to use pkgin a lot but have to build some packages myself because of compile time options.

That's why I need the pkgsrc tree.

first we need to update our source tree:

host# cd /usr/src
host# cvs up -Pd -rnetbsd-5

Then we need to update out pkgsrc tree (at this time the stable branch is pkgsrc 2009Q2).

host# cd /usr/pkgsrc
host# cvs up -Pd -rpkgsrc-2009Q2

Every source is up to date, time to build!

Let's begin with the kernel, then userland base system with build.sh.

host# cd /usr/src
host# MYKERNEL=$(uname -v | sed -e 's/.*\/\(.*\)/\1/'); export MYKERNEL
host# ./build.sh -U -u kernel=$MYKERNEL
host# ./build.sh -U -u distribution

Now, we install our new kernel and boot on it.

host# cp /netbsd /netbsd.old
host# cp sys/arch/i386/compile/$MYKERNEL/netbsd /netbsd
host# reboot        # Just in case.

Now that all is built, we can install the userland:

host# ./build.sh -U install=/

Next, our packages.

I use pkgin, which was released with pkgsrc-2009Q2

host# pkg_add ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0_2009Q2/pkgtools/pkgin-0.2.5.tgz
host# pkg_add ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0_2009Q2/pkgtools/pkg_install-20090724.tgz
host# pkgin up
host# pkgin fug

The only thing left to do is to rebuild the few packages which need different compile time options.

And voilà !

Discussion

Enter your comment (wiki syntax is allowed):
FVTST
bluerg/20090820_following_netbsd_5.0_stable.txt · Last modified: 2011/02/01 11:59 (external edit)
Trace: pics blog about pensees twisla 20090619_journey_in_rpm_packaging 20090820_following_netbsd_5.0_stable
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0