Red Hat Bugzilla – Bug 6458
hdparm source RPM fails to rebuild as a non-root user (or at all?)
Last modified: 2008-05-01 11:37:52 EDT
The hdparm source RPM fails to rebuild, and cannot be
built as a normal user. There are two problems:
First, the spec file doesn't use %defattr(-,root,root)
to set file permissions, but instead relies on being run
as root and using cp and worse, explicit
install -m <blah> -o 0 -g 0 ...
which will fail for anyone who can't chown things, ie
anyone but root.
Second, the spec file lists 'hdparm.lsm' as one of the
%doc files. As of the tarball in the source RPM, it's
Fixed in hdparm-3.6-3.