From 19aae6a0782675bde5b513ff0b9428b25fb0ca6c Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Mon, 16 Dec 2024 23:50:36 +0200 Subject: [PATCH] libraries/libotr: Fix build. --- libraries/libotr/0006-include-socket.h.patch | 16 ++++++++++++++++ libraries/libotr/libotr.SlackBuild | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 libraries/libotr/0006-include-socket.h.patch diff --git a/libraries/libotr/0006-include-socket.h.patch b/libraries/libotr/0006-include-socket.h.patch new file mode 100644 index 00000000000..1806458d4b4 --- /dev/null +++ b/libraries/libotr/0006-include-socket.h.patch @@ -0,0 +1,16 @@ +From: Rhonda D'Vine +Date: Thu, 12 May 2022 08:57:07 +0200 +Bug-Debian: https://bugs.debian.org/1009420 +Forwarded: no +Subject: test suite fails to build without the include + +--- a/tests/regression/client/client.c ++++ b/tests/regression/client/client.c +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #include + #include diff --git a/libraries/libotr/libotr.SlackBuild b/libraries/libotr/libotr.SlackBuild index f59f0d00157..048f6dc5e89 100644 --- a/libraries/libotr/libotr.SlackBuild +++ b/libraries/libotr/libotr.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libotr VERSION=${VERSION:-4.1.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -90,6 +90,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-static=no \ --build=$ARCH-slackware-linux +patch -p1 0<${CWD}/0006-include-socket.h.patch make make install DESTDIR=$PKG