Skip to content

Commit

Permalink
libraries/libotr: Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Dec 16, 2024
1 parent 1db48d6 commit 19aae6a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions libraries/libotr/0006-include-socket.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
From: Rhonda D'Vine <[email protected]>
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>
3 changes: 2 additions & 1 deletion libraries/libotr/libotr.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 19aae6a

Please sign in to comment.