[CentOS] smartmontools SRPM fails

Sat Jan 22 02:10:17 UTC 2011
Nico Kadel-Garcia <nkadel at gmail.com>

On Fri, Jan 21, 2011 at 3:03 PM, Lars Hecking
<lhecking at users.sourceforge.net> wrote:
>
>> ########################################### [100%]
>> error: unpacking of archive failed on file
>> /home/jmccarty/devtools/RebuildRPM/build/SOURCES/smartd.initd;4d39deaa:
>> cpio: MD5 sum mismatch
>>
>> Is the SRPM corrupted? I've pulled a few from other places for
>> other versions (like Fedora) from pbone, and they all have
>> this problem.
>>
>> Any hints available?
>
>  Happens with SRPMS from newer Fedoras. Unpack it manually into
>  /usr/src/redhat/SOURCES and move the spec file into place.
>

*NEVER DO THIS*.

Always, always, always start your development as a normal user, not as
root, and use a .rpmmacros that acts accordingly. For example, for
user "nkadel", in "/home/nkadel/.rpmmcros", I have

%_topdir /home/nkadel/rpm

And I set up a subdirectories there as necessary.