FreeBSD Bugzilla – Attachment 197930 Details for
Bug 232087
sysutils/smart: fix build with mips, mips64, powerpc64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
smart.patch (text/plain), 1.63 KB, created by
Piotr Kubaj
on 2018-10-08 21:20:53 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-10-08 21:20:53 UTC
Size:
1.63 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- 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 >Index: files/patch-libsmart.c >=================================================================== >--- 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; > >Property changes on: files/patch-libsmart.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 232087
: 197930