diff options
author | Ruben Schuller <code@rbn.im> | 2024-02-03 21:48:21 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-10 16:17:19 +0700 |
commit | 06a33c35ac08ad02592d0bee584b523d6203fd8a (patch) | |
tree | ccdbf08950ea5220add003a508751f29c8356807 | |
parent | dfca650e987982e8a6a77c6afdfcc2aa1b04b73f (diff) |
network/barrier: Updated for version 2.4.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/barrier/barrier-2.4.0-cert-creation.patch | 11 | ||||
-rw-r--r-- | network/barrier/barrier-2.4.0-gcc-13.patch | 38 | ||||
-rw-r--r-- | network/barrier/barrier-2.4.0-includes.patch | 39 | ||||
-rw-r--r-- | network/barrier/barrier.SlackBuild | 20 | ||||
-rw-r--r-- | network/barrier/barrier.info | 10 |
5 files changed, 110 insertions, 8 deletions
diff --git a/network/barrier/barrier-2.4.0-cert-creation.patch b/network/barrier/barrier-2.4.0-cert-creation.patch new file mode 100644 index 0000000000000..817ed63fffea8 --- /dev/null +++ b/network/barrier/barrier-2.4.0-cert-creation.patch @@ -0,0 +1,11 @@ +--- src/lib/net/SecureUtils.cpp 2021-11-01 21:46:43.000000000 +0100 ++++ src/lib/net/SecureUtils.cpp 2024-02-06 22:12:48.553673626 +0100 +@@ -190,7 +190,7 @@ + + X509_sign(cert, private_key, EVP_sha256()); + +- auto fp = fopen_utf8_path(path.c_str(), "r"); ++ auto fp = fopen_utf8_path(path.c_str(), "w"); + if (!fp) { + throw std::runtime_error("Could not open certificate output path"); + } diff --git a/network/barrier/barrier-2.4.0-gcc-13.patch b/network/barrier/barrier-2.4.0-gcc-13.patch new file mode 100644 index 0000000000000..5b1759049143f --- /dev/null +++ b/network/barrier/barrier-2.4.0-gcc-13.patch @@ -0,0 +1,38 @@ +https://bugs.gentoo.org/895088 +https://github.com/debauchee/barrier/pull/1886 + +From d376d23d534e053a160c32ee1170d237a2f3d6bd Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" <code@musicinmybrain.net> +Date: Thu, 26 Jan 2023 09:25:59 -0500 +Subject: [PATCH] Add missing #include directives needed for GCC 13 + +--- + src/lib/base/String.h | 1 + + src/lib/net/FingerprintData.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/lib/base/String.h b/src/lib/base/String.h +index 9c5a53bac4..fa37f8f0dc 100644 +--- a/src/lib/base/String.h ++++ b/src/lib/base/String.h +@@ -18,6 +18,7 @@ + + #pragma once + ++#include <cstdint> + #include "common/common.h" + #include "common/stdstring.h" + +diff --git a/src/lib/net/FingerprintData.h b/src/lib/net/FingerprintData.h +index 938a69538d..522a481353 100644 +--- a/src/lib/net/FingerprintData.h ++++ b/src/lib/net/FingerprintData.h +@@ -18,6 +18,7 @@ + #ifndef BARRIER_LIB_NET_FINGERPRINT_DATA_H + #define BARRIER_LIB_NET_FINGERPRINT_DATA_H + ++#include <cstdint> + #include <string> + #include <vector> + + diff --git a/network/barrier/barrier-2.4.0-includes.patch b/network/barrier/barrier-2.4.0-includes.patch new file mode 100644 index 0000000000000..048a3b0680921 --- /dev/null +++ b/network/barrier/barrier-2.4.0-includes.patch @@ -0,0 +1,39 @@ +From aa0a2998e8894716644ea5fb29fc6f0165add956 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Tue, 2 Nov 2021 20:59:51 +0000 +Subject: [PATCH] Add missing cstddef includes for NULL + +--- + src/lib/base/Event.cpp | 2 ++ + src/lib/base/Event.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/src/lib/base/Event.cpp b/src/lib/base/Event.cpp +index cc548fc6..08c5e98f 100644 +--- a/src/lib/base/Event.cpp ++++ b/src/lib/base/Event.cpp +@@ -19,6 +19,8 @@ + #include "base/Event.h" + #include "base/EventQueue.h" + ++#include <cstddef> ++ + // + // Event + // +diff --git a/src/lib/base/Event.h b/src/lib/base/Event.h +index 38a2cf11..cb00dccb 100644 +--- a/src/lib/base/Event.h ++++ b/src/lib/base/Event.h +@@ -21,6 +21,8 @@ + #include "common/basic_types.h" + #include "common/stdmap.h" + ++#include <cstddef> ++ + class EventData { + public: + EventData() { } +-- +2.32.0 + diff --git a/network/barrier/barrier.SlackBuild b/network/barrier/barrier.SlackBuild index d3935e1ecaa5d..ff2bd844496cc 100644 --- a/network/barrier/barrier.SlackBuild +++ b/network/barrier/barrier.SlackBuild @@ -2,6 +2,7 @@ # # Slackware build script for Barrier (Synergy fork) # Written by Mario Antunes (mariolpantunes@gmail.com) +# Updated 2024 Ruben Schuller <sb@rbn.im> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=barrier -VERSION=${VERSION:-2.1.2} -BUILD=${BUILD:-1} +VERSION=${VERSION:-2.4.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -71,6 +72,12 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION + +# these are submodules in the barrier git repository. +tar -v -C ./ext/gulrak-filesystem --strip-components=1 -x -f $CWD/filesystem*.tar.gz +tar -v -C ./ext/gmock --strip-components=1 -x -f $CWD/googlemock*.tar.gz +tar -v -C ./ext/gtest --strip-components=1 -x -f $CWD/googletest*.tar.gz + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -78,9 +85,16 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# borrowed from gentoo https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-misc/barrier/files +patch -p1 < $CWD/barrier-2.4.0-includes.patch +patch -p1 < $CWD/barrier-2.4.0-gcc-13.patch +patch -p0 < $CWD/barrier-2.4.0-cert-creation.patch + mkdir -p build cd build - cmake \ +cmake \ + -DBARRIER_BUILD_INSTALLER=OFF \ + -DBARRIER_BUILD_TESTS=OFF \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE="Release" \ diff --git a/network/barrier/barrier.info b/network/barrier/barrier.info index 00ce91ee47e8e..c776bebf23bbc 100644 --- a/network/barrier/barrier.info +++ b/network/barrier/barrier.info @@ -1,10 +1,10 @@ PRGNAM="barrier" -VERSION="2.1.2" +VERSION="2.4.0" HOMEPAGE="https://github.com/debauchee/barrier" -DOWNLOAD="https://github.com/debauchee/barrier/archive/v2.1.2/barrier-2.1.2.tar.gz" -MD5SUM="8cc0d40bc7da7f7e33c8c063157084b5" +DOWNLOAD="https://github.com/debauchee/barrier/archive/v2.4.0/barrier-2.4.0.tar.gz https://github.com/gulrak/filesystem/archive/614bbe87b80435d87ab8791564370e0c1d13627d/filesystem.tar.gz https://github.com/google/googlemock/archive/7d33fee11ec480beae4c28ad09ca56d974140a72/googlemock.tar.gz https://github.com/google/googletest/archive/800f5422ac9d9e0ad59cd860a2ef3a679588acb4/googletest.tar.gz" +MD5SUM="6f9b98a12a53cf8d0aa3b6b159aeb64f 3f5cfad2938ce8c3b8c8b9c4e49abc90 918ca93e15d4f589beb278d9b0093f1f b0b23c6e3137c995ed842b6fbae37e7b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="avahi" -MAINTAINER="Mário Antunes" -EMAIL="mariolpantunes@gmail.com" +MAINTAINER="Ruben Schuller" +EMAIL="sb@rbn.im" |