initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
src/connectiontcpserver.cpp: fix musl build
|
||||
|
||||
Build on musl fails on:
|
||||
|
||||
connectiontcpserver.cpp:131:13: error: 'strerror' was not declared in this scope
|
||||
+ strerror( err ) + " (errno: " + util::int2string( err ) + ")";
|
||||
^~~~~~~~
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://bugs.camaya.net/ticket/?id=291]
|
||||
|
||||
diff -Nuar gloox-1.0.23-orig/src/connectiontcpserver.cpp gloox-1.0.23/src/connectiontcpserver.cpp
|
||||
--- gloox-1.0.23-orig/src/connectiontcpserver.cpp 2020-06-05 23:22:59.624018949 +0200
|
||||
+++ gloox-1.0.23/src/connectiontcpserver.cpp 2020-06-05 23:26:20.708027221 +0200
|
||||
@@ -36,6 +36,7 @@
|
||||
# include <resolv.h>
|
||||
# include <netdb.h>
|
||||
# include <arpa/inet.h>
|
||||
+# include <string.h>
|
||||
# include <sys/socket.h>
|
||||
# include <sys/un.h>
|
||||
# include <sys/select.h>
|
||||
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_GLOOX
|
||||
bool "gloox"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_MPC
|
||||
help
|
||||
gloox is a portable high-level Jabber/XMPP library for C++. It
|
||||
is fully compliant with the XMPP RFCs, supports all of the
|
||||
XMPP features (including SRV lookups, TLS, SASL, roster
|
||||
management, and privacy lists), and implements several XEPs
|
||||
that make it ideal for writing any kind of Jabber/XMPP client
|
||||
or component.
|
||||
|
||||
https://camaya.net/gloox/
|
||||
|
||||
comment "gloox needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 ae1462be2a2eb8fe5cd054825143617c53c2c9c7195606cb5a5ba68c0f68f9c9 gloox-1.0.24.tar.bz2
|
||||
sha256 40a20c41c8dabb8ba61bea983fa8f2f6989e67fac56bb62c2249053807fd26af LICENSE
|
||||
@@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
#
|
||||
# gloox
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GLOOX_VERSION = 1.0.24
|
||||
GLOOX_SOURCE = gloox-$(GLOOX_VERSION).tar.bz2
|
||||
GLOOX_SITE = https://camaya.net/download
|
||||
GLOOX_LICENSE = GPL-3.0 with OpenSSL exception
|
||||
GLOOX_LICENSE_FILES = LICENSE
|
||||
GLOOX_INSTALL_STAGING = YES
|
||||
GLOOX_DEPENDENCIES = mpc
|
||||
GLOOX_CONF_OPTS = \
|
||||
--without-libidn \
|
||||
--enable-getaddrinfo \
|
||||
--without-examples \
|
||||
--without-tests
|
||||
|
||||
GLOOX_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
GLOOX_CXXFLAGS += -O0
|
||||
endif
|
||||
GLOOX_CONF_ENV += CXXFLAGS="$(GLOOX_CXXFLAGS)"
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
GLOOX_CONF_ENV += LIBS=-latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
GLOOX_CONF_OPTS += --with-zlib
|
||||
GLOOX_DEPENDENCIES += zlib
|
||||
else
|
||||
GLOOX_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
GLOOX_CONF_OPTS += --with-openssl --without-gnutls
|
||||
GLOOX_DEPENDENCIES += openssl
|
||||
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
GLOOX_CONF_OPTS += --with-gnutls --without-openssl
|
||||
GLOOX_DEPENDENCIES += gnutls
|
||||
else
|
||||
GLOOX_CONF_OPTS += --without-gnutls --without-openssl
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user