Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2026 22:49:43 +0000
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5bec657b0a11 - main - editors/libreoffice: unbreak build in some conditions
Message-ID:  <699f7c87.3aa39.ce6552d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5bec657b0a11810fb96873574221911030f59867

commit 5bec657b0a11810fb96873574221911030f59867
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2026-02-25 22:36:04 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2026-02-25 22:45:39 +0000

    editors/libreoffice: unbreak build in some conditions
    
    While netinet/ip.h always include netinet/in.h, LibreOffice must use only second one and in some environment fails to build with next error:
    
    /wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-26.2.0.3/sal/osl/unx/socket.cxx:169:5:
    error: use of undeclared identifier 'IPPROTO_TCP'
      169 |     IPPROTO_TCP,                /* osl_Socket_LevelTcp     */
          |     ^
    /wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-26.2.0.3/sal/osl/unx/socket.cxx:324:18:
    error: member access into incomplete type 'struct sockaddr_in'
      324 |         pInetAddr->sin_family =
    FAMILY_TO_NATIVE(osl_Socket_FamilyInet);
          |                  ^
    /wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-26.2.0.3/sal/osl/unx/socket.cxx:322:16:
    note: forward declaration of 'sockaddr_in'
      322 |         struct sockaddr_in* pInetAddr=
    reinterpret_cast<sockaddr_in*>(&pAddr->m_sockaddr);
          |                ^
    
    PR:             293287
---
 editors/libreoffice/files/patch-sal_osl_unx_socket.cxx | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/editors/libreoffice/files/patch-sal_osl_unx_socket.cxx b/editors/libreoffice/files/patch-sal_osl_unx_socket.cxx
new file mode 100644
index 000000000000..b5575f5a45c9
--- /dev/null
+++ b/editors/libreoffice/files/patch-sal_osl_unx_socket.cxx
@@ -0,0 +1,11 @@
+--- sal/osl/unx/socket.cxx.orig	2026-02-05 22:14:25 UTC
++++ sal/osl/unx/socket.cxx
+@@ -40,7 +40,7 @@
+ #include <fcntl.h>
+ #include <netdb.h>
+ #ifdef FREEBSD
+-#include <netinet/ip.h>
++#include <netinet/in.h>
+ #endif
+ #include <netinet/tcp.h>
+ #include <poll.h>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699f7c87.3aa39.ce6552d>