20090622

HOWTO svn merge trunk to a branch

To sync d-i kfreebsd branch to d-i trunk, e.g. r59038, from a clean working copy of d-i kfreebsd branch (.) run
$ svn merge --dry-run -r 59022:59038 svn+ssh://user@svn.d-i.alioth.debian.org/svn/d-i/trunk .
--dry-run "try operation but make no changes".
If all is ok, run the same command without --dry-run and then
$ svn ci -m "Sync to r59038."

kFreeBSD progress report week 4

Read the progress report of week 4 of the project "d-i support for GNU/kFreeBSD".

20090617

d-i kfreebsd branch setup

I tried to merge debian installer (d-i) trunk in the kfreebsd branch, without success.
My mentor helped me, cleaning the kfreebsd branch and making it equal to trunk.
Then I merged the changes from the old (r47541) kfreebsd branch [0].
Some patches from [1] applied cleanly, i.e. [kernel modules] and [kernel others]. You can retrieve the 2 refreshed patches from [installer] and [rootskel].

Now I have to commit my local (little) changes, needed to create a (not working at the moment) kfreebsd d-i image.

You can follow the d-i kfreebsd branch with
svn co svn://svn.debian.org/d-i/branches/d-i/kfreebsd/
or from a Web interface at
http://svn.debian.org/viewsvn/d-i/branches/d-i/kfreebsd/


[0] http://slackydeb.blogspot.com/2009/04/previous-attempts-to-port-d-i-to.html
[1] http://slackydeb.blogspot.com/2009/04/previous-attempts-to-port-d-i-to_27.html

[kernel modules] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/20090427_d-i_kfreebsd_branch/d-i_kfreebsd_branch.packages.kernel.modules.diff
[kernel others] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/20090427_d-i_kfreebsd_branch/d-i_kfreebsd_branch.packages.kernel.others.diff

[installer] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/20090617_d-i_kfreebsd_branch/d-i_kfreebsd_branch.installer.diff
[rootskel] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/20090617_d-i_kfreebsd_branch/d-i_kfreebsd_branch.packages.rootskel.diff

20090605

kFreeBSD progress report week 2

Instead of copying and pasting it here, I prefer to link it. See:
http://lists.alioth.debian.org/pipermail/soc-coordination/2009-June/000584.html

Porting parted on GNU/kFreeBSD

As you can see at [0], partconf-find-partitions and partconf-mkfstab udebs (from partconf source package) are needed (among others).

partconf source package doesn't build because of the lack of libparted1.8-dev (from parted source package).

parted source package doesn't build.
It has a kFreeBSD patch, but it is disabled, and it doens't apply because it is referred to an old version of parted (1.7 as far as I know).

I created some trivial patches:
-[build_deps]
-[configure.ac] (from the existing kFreeBSD patch)
-[disable_devmapper] (hackish)
I got an [error], that I think is simple for more experienced developers than me.

Now I switch trying to produce a debian-installer image, even not fully functional but at least that boots.


[0] http://slackydeb.blogspot.com/2009/04/analysis-of-differences-between.html

[build_deps] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/parted/20090605_1013_parted.build_deps.diff
[configure.ac] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/parted/20090605_1043_parted.configure.ac.supported_os.diff
[disable_devmapper] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/parted/20090605_1049_parted.rules.disable_devmapper.diff

[error] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/parted/20090605_1130_parted.build_error.txt

20090602

busybox mount builds on GNU/kFreeBSD

busybox "mount" builds (I think it does not work...) on GNU/kFreeBSD with a very hackish patch [0] (Update 20090603: obsolete).

Linux "mount" has one more explicit parameter (i.e. "source") than the kFreeBSD one, as you can read from their man pages ([1] and [2]).
I should try to use nmount on kFreeBSD, using "mount" in freebsd-utils as a reference.


[0] http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/busybox/mount/20090602_2218_busybox.mount.diff
[1] http://www.freebsd.org/cgi/man.cgi?query=mount&apropos=0&sektion=2&manpath=FreeBSD+7.2-RELEASE&format=html
[2] http://www.kernel.org/doc/man-pages/online/pages/man2/mount.2.html



Update 20090603:
I updated the patch:
-using nmount as in freebsd-utils
-moving platform specific code into platform.h
Now I have to test busybox "mount" with this patch.

Get the patch from
http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/busybox/mount/20090603_0028_busybox.mount.diff



Update 20090604:
I updated the patch to export a useful function outside the file to "help" umount.
I enabled "umount" and made it building.
I tested busybox "mount" and "umount" with these patches (with a msdosfs filesystem).

Get the patches from
http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/busybox/mount/20090604_0044_busybox.mount.hack_to_help_umout.diff
http://slackydeb.altervista.org/files/debian_gnu_kfreebsd/busybox/mount/20090604_0045_busybox.umount.diff