diff --git a/libatasmart-initialize.patch b/libatasmart-initialize.patch new file mode 100644 index 0000000..9177567 --- /dev/null +++ b/libatasmart-initialize.patch @@ -0,0 +1,10 @@ +--- strpool.c ++++ strpool.c +@@ -435,6 +435,7 @@ + rl = 0; + + i->next = NULL; ++ i->suffix_of = NULL; + + if (last) + last->next = i; diff --git a/libatasmart.changes b/libatasmart.changes index a6391ab..826f0ca 100644 --- a/libatasmart.changes +++ b/libatasmart.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 16 10:35:41 CET 2010 - ro@suse.de + +- fix build by initializing member suffix_of in strpool.c + ------------------------------------------------------------------- Fri Nov 13 12:54:33 CET 2009 - vuntz@opensuse.org diff --git a/libatasmart.spec b/libatasmart.spec index 06babd6..c1aec21 100644 --- a/libatasmart.spec +++ b/libatasmart.spec @@ -26,6 +26,7 @@ Summary: ATA S.M.A.R.T. Disk Health Monitoring Library Url: http://git.0pointer.de/?p=libatasmart.git;a=summary Group: System/Libraries Source: %{name}-%{version}.tar.bz2 +Patch0: libatasmart-initialize.patch BuildRequires: libudev-devel BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -65,6 +66,7 @@ health monitoring. %prep %setup -q +%patch0 %build %configure --disable-static