Open gbranchaudrubenovitch opened 8 years ago
I'm getting the same thing on SLES 11 when trying to build Elasticsearch. Running the generated RPM through rpmrebuild results in an RPM that can be installed. Any info I can provide which would help diagnose the issue?
I believe the problem here is redline adds both md5 and sha1 to the header. However, rpm 4.4 does not know about anything but md5, as the filedigest algorithm capabilities were added in rpm 4.6. In order to fix this, #68 would have to be addressed, or the sha1 writing could be removed temporarily until that issue allows specifying which algorithm to use.
We have the same issue. I found it was a result of long inode values, which were only introduced in rpm 4.6. (as @rmquapp notes).
I can't build my RPM with Redline 1.2.2 and install it on CentOs 5.8.
RPM
complains that the header is bad.The same project worked fine with Redline 1.2.1, but breaks with Redline 1.2.2
Note: I am consuming Redline via the nebula.ospackage gradle plugin.
Here is a test repo that showcases the issue: https://github.com/gbranchaudrubenovitch/redline-centos5-rpm-fail
Steps to repro:
git clone https://github.com/gbranchaudrubenovitch/redline-centos5-rpm-fail.git
cd redline-centos5-rpm-fail
./gradlew buildRpm
rpm -vvqip ./build/distributions/main-1.0.1-1.noarch.rpm
Results on CentOS 5.8, with RPM v4.4.2.3 (it fails!)
Results on CentOS 7, with RPM v4.11.1 (it works!)
Expected results on both OS: