From d9a3132400403c50039a7e4eedb776f5f670bb6a Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sat, 3 Aug 2024 12:42:18 +0000 Subject: [PATCH] Tested on FreeBSD-14.1-STABLE (#3350) - Upgraded libraries to 4.5 to address compile error issues with CXX11 support - Change the default version of FreeBSD Vagrant to 14.1-STABLE - FreeBSD Platform documentation also changed to 14.x version --- docs/_docs/platform/07-freebsd.md | 16 ++++++++-------- subprojects/libtins.wrap | 2 +- vagrant/freebsd/Vagrantfile | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/_docs/platform/07-freebsd.md b/docs/_docs/platform/07-freebsd.md index 26ec88cc5..ca9ec2aa0 100644 --- a/docs/_docs/platform/07-freebsd.md +++ b/docs/_docs/platform/07-freebsd.md @@ -3,10 +3,10 @@ title: FreeBSD head_inline: "" --- -This guide is based on **FreeBSD-13.1-STABLE**. +This guide is based on **FreeBSD-14.1-STABLE**. {: .blue} -## Install **FreeBSD-13.1-STABLE** from Vagrant box (optional) +## Install **FreeBSD-14.1-STABLE** from Vagrant box (optional) --- Vagrant provides a simple way to create and deploy Virtual Machines from pre-built images using VirtualBox, libvirt, or VMWare as a hypervisor engine. @@ -20,13 +20,13 @@ The instructions to install Vagrant are provided at [vagrantup.com](https://www.vagrantup.com/). -### Create a FreeBSD-13.1-STABLE Virtual Machine using Vagrant +### Create a FreeBSD-14.1-STABLE Virtual Machine using Vagrant --- Use the supplied `Vagrantfile` in the `vagrant` directory to create the virtual machine. -Note that this Vagrantfile is identical to the base FreeBSD 13 box, with +Note that this Vagrantfile is identical to the base FreeBSD 14 box, with the exception that the amount of virtual memory has been increased to 1GB: ```bash @@ -37,7 +37,7 @@ vagrant up --provider virtualbox ### Log into the newly created FreeBSD VM --- -Use SSH to log into the FreeBSD 13 VM: +Use SSH to log into the FreeBSD 14 VM: ```bash vagrant ssh @@ -45,10 +45,10 @@ vagrant ssh Note that the Open5GS source is *not* copied into the VM. The instructions below provide the step by step instructions for setting up Open5GS for -either a bare metal or virtual FreeBSD 13 system. +either a bare metal or virtual FreeBSD 14 system. The rest of the commands below are performed inside the FreeBSD VM as the -user 'vagrant', or on your bare metal FreeBSD 13 system as any normal user. +user 'vagrant', or on your bare metal FreeBSD 14 system as any normal user. ### Getting MongoDB --- @@ -171,7 +171,7 @@ $ meson build --prefix=`pwd`/install $ ninja -C build ``` -**Note:** No source code changes are required for FreeBSD 11.x version. However, in FreeBSD 12.x/13.x version, we'll getting a crash with segmentation fault when calling basename(3). To avoid this, you need to change the freeDiameter source code as below. +**Note:** No source code changes are required for FreeBSD 11.x version. However, in FreeBSD 12.x/13.x/14.x version, we'll getting a crash with segmentation fault when calling basename(3). To avoid this, you need to change the freeDiameter source code as below. {: .blue} ```diff diff --git a/subprojects/libtins.wrap b/subprojects/libtins.wrap index 0c53a0970..e888ef628 100644 --- a/subprojects/libtins.wrap +++ b/subprojects/libtins.wrap @@ -1,4 +1,4 @@ [wrap-git] directory = libtins url = https://github.com/open5gs/libtins.git -revision = r4.3 +revision = r4.5 diff --git a/vagrant/freebsd/Vagrantfile b/vagrant/freebsd/Vagrantfile index cd6beca8c..36c5c7744 100644 --- a/vagrant/freebsd/Vagrantfile +++ b/vagrant/freebsd/Vagrantfile @@ -12,7 +12,7 @@ Vagrant.configure("2") do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. - config.vm.box = "freebsd/FreeBSD-13.1-STABLE" + config.vm.box = "freebsd/FreeBSD-14.1-STABLE" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs