2.1 KiB
+++
vim: ft=markdown
title = 'OpenBSD-current' summary = 'Keeping up to date with OpenBSD-current. Some quick notes.' date = '2023-08-11T19:47:56+0000' lastmod = '2023-08-12T15:22:33+0000' categories = [ 'amateur-radio', 'computerstuff' ] tags = [ 'openbsd' ]
showBreadcrumbs = true
showDate = false
showReadingTime = false
showWordCount = false
showPagination = false
feed_exclude = true
site_exclude = true
draft = true
+++
[Initially]({{< ref "2023-07-29-going-back-from-openbsd-snapshot/index.md" >}}) I wanted to not look at OpenBSD-current again but I did it again.
All went good this time and I could compile everything except the ports. I'm still looking to find a good solution to update all the packages in one run.
I'm still studying ports(7) and going to learn about bulk(8) and dpb(1).
What went wrong the last time
I have no clue. The last time I had problems with the recent snapshot, when the packages could not get updated properly. This time they updated just fine. So maybe this was only an issue with that particular snapshot back then. Maybe, IDK.
Fetch the actual sources
The user is member of wsrc.
$ cd /usr/src
$ cvs -q up -Pd -A
Initially we fetched the source with
$ cd /usr
$ cvs -qd anoncvs@ftp.hostserver.de:/cvs checkout -P src
Same with xenocara
and ports
.
Create the kernel
$ cd /sys/arch/$(machine)/compile/GENERIC.MP
$ doas make obj
$ doas make config
$ doas make && make install
Is this really needed done as root (except install)? Current kernel gets copied to /obsd and new kernel is /bsd.
Reboot with the new kernel.
Build base system
$ cd /usr/src
$ doas make obj && doas make build
$ doas sysmerge
$ cd /dev && doas ./MAKEDEV all
This took on my Lenovo X1 Carbon Gen7 up to 11 hours.
Build and install Xenocara (X)
$ cd /src/xenocara
doas make bootstrap
doas make obj
doas make build
Building Xenocara took on my laptop (see above) around 1.5 hours.