Source: nss Version: 2:3.68-1 Severity: important Tags: patch ftbfs Justification: fails to build from source (but built successfully in the past) User: debian-...@lists.debian.org Usertags: kfreebsd Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1725142
Hello, NSS FTBFS on debian kfreebsd architecture with error regarding redefined ethods (htole32, le32toh...) See: https://buildd.debian.org/status/fetch.php?pkg=nss&arch=kfreebsd-amd64&ver=2%3A3.68-1&stamp=1626648189&raw=0 The attached patch fixed the build on my test machine Kind regards, Laurent Bigonville -- System Information: Debian Release: 11.0 APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy
Index: nss-3.68/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h =================================================================== --- nss-3.68.orig/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h +++ nss-3.68/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h @@ -52,7 +52,7 @@ #define be32toh(x) BE_32(x) /* ... for the BSDs */ -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) #include <sys/endian.h> #elif defined(__OpenBSD__) #include <endian.h>