mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-dns/nsd: Fix an autoconf check in simdzone src
Added a patch to fix an autoconf check in the simdzone src configure.ac file for Westmere detection that was calling a non-existent C function and breaking the test. Patch submitted to upstream as NLnetLabs/simdzone PR#224. Closes: https://bugs.gentoo.org/937318 Reported-by: Agostino Sarubbo <ago@gentoo.org> Signed-off-by: Joshua Kinard <kumba@gentoo.org>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff -Naurp a/simdzone/configure.ac b/simdzone/configure.ac
|
||||
--- a/simdzone/configure.ac 2024-08-02 08:05:01.000000000 -0400
|
||||
+++ b/simdzone/configure.ac 2024-08-04 17:56:15.810347292 -0400
|
||||
@@ -76,7 +76,7 @@ AC_INCLUDES_DEFAULT
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
(void)argv;
|
||||
- uint64_t popcnt = _mm_popcnt_64((uint64_t)argc);
|
||||
+ uint64_t popcnt = _mm_popcnt_u64((uint64_t)argc);
|
||||
return popcnt == 11;
|
||||
}
|
||||
]])
|
||||
@@ -49,6 +49,7 @@ BDEPEND="
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.10.1-simdzone-configure_ac-_mm_popcnt_u64.patch"
|
||||
"${FILESDIR}/${PN}-munin-gentoo-paths.patch"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user