aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-11-30 17:51:43 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-11-30 17:52:03 +0100
commite1e42c5d6ca1914461d26efb791c64441feab9db (patch)
tree47d695b6fab5c7ef24859f3f14111de6a906cca2
parentd24a28c3adeb5fc261b46579c8aa65a0ab5461e1 (diff)
downloadaports-e1e42c5d6ca1914461d26efb791c64441feab9db.tar.gz
aports-e1e42c5d6ca1914461d26efb791c64441feab9db.tar.bz2
aports-e1e42c5d6ca1914461d26efb791c64441feab9db.tar.xz
community/knot-resolver: fix segfault in stats module
This is a backport from master branch. Note that I've checked that this version segfaults too, but I didn't check if it really segfaults from the exactly same reason.
-rw-r--r--community/knot-resolver/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/knot-resolver/APKBUILD b/community/knot-resolver/APKBUILD
index 03345ae780..73d7dc11bf 100644
--- a/community/knot-resolver/APKBUILD
+++ b/community/knot-resolver/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: tcely <knot-resolver+aports@tcely.33mail.com>
pkgname=knot-resolver
pkgver=3.2.1
-pkgrel=3
+pkgrel=4
pkgdesc="Minimalistic caching DNS resolver implementation"
url="https://www.knot-resolver.cz/"
# luajit is not available for disabled arches
@@ -41,6 +41,10 @@ prepare() {
}
build() {
+ # strict-aliasing breaks stats module - variable "sa" in stats.c:495 is 0x0.
+ # (https://gitlab.labs.nic.cz/knot/knot-resolver/blob/v4.2.2/modules/stats/stats.c#L495)
+ export CFLAGS="$CFLAGS -fno-strict-aliasing"
+
make $_flags
}