Commit 8faf6299 authored by Natanael Copa's avatar Natanael Copa

main/mosquitto: upgrade to 1.6.3

parent 66e8be8d
# Contributor: Pedro Filipe <xpecex@outlook.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mosquitto
pkgver=1.6.2
pkgrel=1
pkgver=1.6.3
pkgrel=0
pkgdesc="An Open Source MQTT v3.1 Broker"
url="https://mosquitto.org/"
arch="all"
......@@ -16,7 +16,6 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-libs++:_pp $pkgname-openrc
$pkgname-libs $pkgname-clients"
source="http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz
config.patch
fix-musl.patch
disable-ci-tests.patch
mosquitto.initd"
builddir="$srcdir/$pkgname-$pkgver"
......@@ -91,8 +90,7 @@ clients() {
mv "$pkgdir"/usr/bin/mosquitto_[ps]ub "$subpkgdir"/usr/bin/
}
sha512sums="d1c13df4409eb20ccc00a67b07a4af5c5ce668a403a4605e2bae4f5869b256ebe5d9a001d009cb0e34bc7b3cfee96779fc81099b170ff03af3ca43f05567912b mosquitto-1.6.2.tar.gz
sha512sums="d78d95789cfadaa8c989becb799e6eace1a82cfed9d79582cf7278dd2f9f31060b0b6492c5e3461c687629445efbdda0db68cba65962eb6a305ada46611f6d94 mosquitto-1.6.3.tar.gz
fb000f9fa1ef94cbf3811a23b5692c0c8f9e2df945959cef6005462715e99d6f75cf6b31bd496271ffc17634024aed986771a73962fef865c0d386f6c194fb33 config.patch
41328fec7c461225a5c73f8b94a1747e7a697eee48a16f1e5cc4e9f4039e0ed5dc66d3518119ccf2bbca935d1fe18c85cfced781f8279ee84ed983894419d88f fix-musl.patch
21df2006a5eb9e1248cf261e555ded8e80e79f2a2d2a55b1f8a153af7c0feb867f3b3bd71efbe4d8569e3031c65f3e144794724f012e7539244a9bd97b6b6bb3 disable-ci-tests.patch
16f96d8f7f3a8b06e2b2e04d42d7e0d89a931b52277fc017e4802f7a3bc85aff4dd290b1a0c40382ea8f5568d0ceb7319c031d9be916f346d805231a002b0433 mosquitto.initd"
diff --git a/lib/util_mosq.c b/lib/util_mosq.c
index 8f3610a..5dbf123 100644
--- a/lib/util_mosq.c
+++ b/lib/util_mosq.c
@@ -29,8 +29,10 @@ Contributors:
#endif
#if !defined(WITH_TLS) && defined(__linux__)
-# if defined(__GLIBC__) && __GLIBC_PREREQ(2, 25)
-# include <sys/random.h>
+# if defined(__GLIBC__)
+# if __GLIBC_PREREQ(2, 25)
+# include <sys/random.h>
+# endif
# endif
#endif
@@ -325,10 +327,12 @@ int util__random_bytes(void *bytes, int count)
if(RAND_bytes(bytes, count) == 1){
rc = MOSQ_ERR_SUCCESS;
}
-#elif defined(__GLIBC__) && __GLIBC_PREREQ(2, 25)
+#elif defined(__GLIBC__)
+# if __GLIBC_PREREQ(2, 25)
if(getrandom(bytes, count, 0) == 0){
rc = MOSQ_ERR_SUCCESS;
}
+# endif
#elif defined(WIN32)
HRYPTPROV provider;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment