Package: libatasmart / 0.19-6

Metadata

Package Version Patches format
libatasmart 0.19-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Dont test undefined bits.patch | (download)

atasmart.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix an incorrect io error reading smart status

The read SMART status command's return status was testing for a
success/failure value that included 8 bits that are "N/A" according to
the standard, and required that they be zeros.  At least some drives do
not fill them with zeros, so correct this by masking off the undefined
bits.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61998
Bug-Ubuntu: https://launchpad.net/bugs/1143495

0002 Drop our own many bad sectors heuristic.patch | (download)

atasmart.c | 34 11 + 23 - 0 !
1 file changed, 11 insertions(+), 23 deletions(-)

 drop our own "many bad sectors" heuristic

This currently causes a lot of false positives, because in many cases our
threshold is either overly pessimistically low, or the raw value is implausibly
high. Just use the normalized values vs. threshold for now.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25772
Bug-Ubuntu: https://launchpad.net/bugs/438136

0003 Correctly pass host flags to the build compiler.patch | (download)

strpool/Makefile.am | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 correctly pass host flags to the build compiler

libatasmart fails to cross build from source, because it passes host
architecture build flags to the build architecture compiler. This
happens in the strpool directory. There CC is set to CC_FOR_BUILD, which
is correctly detected and propagated. However BUILD_CFLAGS are assigned
to AM_CFLAGS and therefore end up being appended rather than replacing
the host's CFLAGS. The assignment should be done to CFLAGS to actually
overwrite the host's flags.

Closes: #1093595