aboutsummaryrefslogtreecommitdiff
path: root/libraries/libotr
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libotr')
-rw-r--r--libraries/libotr/0006-include-socket.h.patch16
-rw-r--r--libraries/libotr/libotr.SlackBuild3
2 files changed, 18 insertions, 1 deletions
diff --git a/libraries/libotr/0006-include-socket.h.patch b/libraries/libotr/0006-include-socket.h.patch
new file mode 100644
index 0000000000..1806458d4b
--- /dev/null
+++ b/libraries/libotr/0006-include-socket.h.patch
@@ -0,0 +1,16 @@
+From: Rhonda D'Vine <rhonda@debian.org>
+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 <sys/types.h>
+ #include <sys/un.h>
+ #include <unistd.h>
++#include <sys/socket.h>
+
+ #include <context.h>
+ #include <privkey.h>
diff --git a/libraries/libotr/libotr.SlackBuild b/libraries/libotr/libotr.SlackBuild
index f59f0d0015..048f6dc5e8 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