--- Makefile (revision 481501) +++ Makefile (working copy) @@ -9,9 +9,6 @@ LICENSE= ISCL -BROKEN_mips= fails to compile: libsmart.c:241: storage size of 's' is not constant -BROKEN_mips64= fails to compile: libsmart.c:241: storage size of 's' is not constant -BROKEN_powerpc64= fails to compile: libsmart.c:241: storage size of 's' is not constant IGNORE_FreeBSD_10= Requires FreeBSD 11 or later USE_GITHUB= yes --- files/patch-libsmart.c (nonexistent) +++ files/patch-libsmart.c (working copy) @@ -0,0 +1,22 @@ +--- libsmart.c.orig 2018-10-08 21:14:49 UTC ++++ libsmart.c +@@ -23,6 +23,7 @@ + #include "libsmart.h" + #include "libsmart_priv.h" + #include "libsmart_dev.h" ++#define MAX_LEN 44 + + /* Default page lists */ + smart_page_list_t pg_list_ata = { +@@ -237,9 +238,8 @@ static char * + __smart_u128_str(smart_attr_t *sa) + { + /* log10(x) = log2(x) / log2(10) ~= log2(x) / 3.322 */ +- const uint32_t max_len = 128 / 3 + 1 + 1; +- static char s[max_len]; +- char *p = s + max_len - 1; ++ static char s[MAX_LEN]; ++ char *p = s + MAX_LEN - 1; + uint32_t *a = (uint32_t *)sa->raw; + uint64_t r, d; + uint32_t last = 0;