直接rpmbuild --rebuild thunderbird-1.0.2-1.4.1.src.rpm可以顺利编译,但是就是无法安装提示 error: unpacking of archive failed on file /usr/lib/thunderbird-1.0.2/defaults/pref/all-redhat.js;42ae6fc9: cpio: MD5 sum mismatch
cat > ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm/macros.solve < # The path to the dependency universe database. The default value # is the rpmdb-redhat location. The macro is usually defined in # /etc/rpm/macros.solve, installed with the rpmdb-redhat package. %%_solve_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat
# The path to the dependency universe packages. This should # be a path to the packages contained in the solve database. %%_solve_pkgsdir /var/spool/up2date
# The output binary package file name template used when suggesting # binary packages that solve a dependency. The macro is usually defined # in /etc/rpm/macros.solve, installed with the rpmdb-redhat package. # # XXX Note: escaped %%% for use in headerSprintf() %%_solve_name_fmt %{?_solve_pkgsdir}%%%{NAME}-%%%{VERSION}-%%%{RELEASE}.%%%{ARCH}.rpm EOF
改为代码:
cat > ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm/macros.solve < # The path to the dependency universe database. The default value # is the rpmdb-redhat location. The macro is usually defined in # /etc/rpm/macros.solve, installed with the rpmdb-redhat package. %%_solve_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat
# The path to the dependency universe packages. This should # be a path to the packages contained in the solve database. %%_solve_pkgsdir /var/spool/up2date
# The output binary package file name template used when suggesting # binary packages that solve a dependency. The macro is usually defined # in /etc/rpm/macros.solve, installed with the rpmdb-redhat package. # # XXX Note: escaped %%% for use in headerSprintf() %%_solve_name_fmt %{?_solve_pkgsdir}%%%{NAME}-%%%{VERSION}-%%%{RELEASE}.%%%{ARCH}.rpm EOF