git: 58f5f9ccf32b - main - net/corosync*: Make corosync3 the default corosync version
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Oct 2023 13:15:02 UTC
The branch main has been updated by flo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=58f5f9ccf32b7fc01c903416880e0b9e1e0c3e47
commit 58f5f9ccf32b7fc01c903416880e0b9e1e0c3e47
Author: Florian Smeets <flo@FreeBSD.org>
AuthorDate: 2023-10-22 07:22:14 +0000
Commit: Florian Smeets <flo@FreeBSD.org>
CommitDate: 2023-10-22 13:13:04 +0000
net/corosync*: Make corosync3 the default corosync version
---
Mk/Uses/corosync.mk | 7 -------
Mk/bsd.default-versions.mk | 2 +-
net/corosync2/Makefile | 2 +-
net/corosync3/Makefile | 2 +-
net/{corosync2 => corosync3}/Makefile.common | 0
5 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/Mk/Uses/corosync.mk b/Mk/Uses/corosync.mk
index 634ff3cc3bb1..869f671c6bd6 100644
--- a/Mk/Uses/corosync.mk
+++ b/Mk/Uses/corosync.mk
@@ -22,13 +22,6 @@ _COROSYNC_INSTALLED_VER:= ${_COROSYNC_INSTALLED_VER:M'*':C/'//g}
_COROSYNC_INSTALLED_VER_MAJOR= ${_COROSYNC_INSTALLED_VER:C/([0-9]*).[0-9]*.*/\1/g}
_COROSYNC_INSTALLED_VER_MINOR= ${_COROSYNC_INSTALLED_VER:C/[0-9]*.([0-9]*).*/\1/g}
-# Currently corosync 3 is tagged 2.99.x so this is a temporary
-# work around until the final version is released.
-. if ${_COROSYNC_INSTALLED_VER_MAJOR} == 2 && ${_COROSYNC_INSTALLED_VER_MINOR} == 99
-_COROSYNC_INSTALLED_VER_MAJOR= 3
-_COROSYNC_INSTALLED_VER_MINOR= 0
-. endif
-
. if ${COROSYNC_DEFAULT} != ${_COROSYNC_INSTALLED_VER_MAJOR}
IGNORE= DEFAULT_VERSIONS=corosync=${COROSYNC_DEFAULT} but ${_COROSYNC_INSTALLED_VER} is installed
. endif
diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk
index 01695995b5b8..8550328a468a 100644
--- a/Mk/bsd.default-versions.mk
+++ b/Mk/bsd.default-versions.mk
@@ -37,7 +37,7 @@ APACHE_DEFAULT?= 2.4
# Possible values: 5, 18
BDB_DEFAULT?= 5
# Possible values: 2, 3
-COROSYNC_DEFAULT?= 2
+COROSYNC_DEFAULT?= 3
# Possible values: rust, legacy
. if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
EBUR128_DEFAULT?= rust
diff --git a/net/corosync2/Makefile b/net/corosync2/Makefile
index a7d7a7f58ddb..8951bd0587b1 100644
--- a/net/corosync2/Makefile
+++ b/net/corosync2/Makefile
@@ -6,6 +6,6 @@ WWW= https://corosync.github.io/corosync/
CONFLICTS= corosync3
PORTSCOUT= limit:^2\.[0-9]\.[0-9]
-.include "${.CURDIR}/Makefile.common"
+.include "${.CURDIR}/../corosync3/Makefile.common"
.include <bsd.port.mk>
diff --git a/net/corosync3/Makefile b/net/corosync3/Makefile
index 8440f12d3194..c12af546f7da 100644
--- a/net/corosync3/Makefile
+++ b/net/corosync3/Makefile
@@ -3,7 +3,7 @@ PKGNAMESUFFIX= 3
WWW= https://corosync.github.io/corosync/
-.include "${.CURDIR}/../corosync2/Makefile.common"
+.include "${.CURDIR}/Makefile.common"
LIB_DEPENDS+= libknet.so:devel/kronosnet
diff --git a/net/corosync2/Makefile.common b/net/corosync3/Makefile.common
similarity index 100%
rename from net/corosync2/Makefile.common
rename to net/corosync3/Makefile.common