d***@gmail.com
2008-06-09 08:13:58 UTC
Hi,
I have an interesting scenario here.
The md5sum of my binary before rpmbuild is XXX.
After "rpmbuild -bb filename.spec",
I went to the location of my binary.
The md5sum of my binary after rpmbuild is YYY.
Basically, the binary still works perfectly. It is only the md5sum is
different before and after rpmbuild.
----------------------------------------------------------------------------------------
I noticed that in rpmbuild, it automatically strips the binary.
Hence I believe that this causes my binaries md5sum to differ.
I tried to strip the binary before rpmbuild, it does not help.
I looked into options of rpmbuild, no available clue on disabling the
strip option.
Please take note that my spec is only copying the existing binary from
source to destination.
There is no make install.
------------------------------------------------------------------------------------------
My question is:
1. Is the strip option causing the md5sum to differ?
2. If so, how can I disable the strip binary option in rpmbuild?
Thanks for reading,
Have a great day ahead.
I have an interesting scenario here.
The md5sum of my binary before rpmbuild is XXX.
After "rpmbuild -bb filename.spec",
I went to the location of my binary.
The md5sum of my binary after rpmbuild is YYY.
Basically, the binary still works perfectly. It is only the md5sum is
different before and after rpmbuild.
----------------------------------------------------------------------------------------
I noticed that in rpmbuild, it automatically strips the binary.
Hence I believe that this causes my binaries md5sum to differ.
I tried to strip the binary before rpmbuild, it does not help.
I looked into options of rpmbuild, no available clue on disabling the
strip option.
Please take note that my spec is only copying the existing binary from
source to destination.
There is no make install.
------------------------------------------------------------------------------------------
My question is:
1. Is the strip option causing the md5sum to differ?
2. If so, how can I disable the strip binary option in rpmbuild?
Thanks for reading,
Have a great day ahead.