[opensuse-packaging] How exactly rpm is packaged?
Could anyone please point me at some exact steps what is performed after the %install macro is finished and when rpm package is written? I've noticed really strange thing, in one of the packages there are 2 libraries with the same name but in different subfolders, probably a legacy of old and complicated build system. After the build their md5sums are different, but after unpacking the rpm - they are identical. Which means that cpio or something before the cpio merges them together or uses bad duplicate finder. If someone knows some magic spec file trick to avoid that de-duplication, please tell me or give me the link. -- Regards, Stas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Stanislav Baiduzhyi
in one of the packages
Which one? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 11 June 2015 12:34:18 Andreas Schwab wrote:
Stanislav Baiduzhyi
writes: in one of the packages
Which one?
I really-really don't want this thread to be stolen by discussion of single particular package, I still would like to get some concrete info on what is going on after %install and till the end. But if you need it to reproduce the problem and see it for youself: (sorry for line breaks) wget 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...' 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...' 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...' rpm2cpio java-1_8_0-openjdk-headless-1.8.0.45-100.1.x86_64.rpm | cpio -id -- no-absolute-filenames --quiet -u rpm2cpio java-1_8_0-openjdk-1.8.0.45-100.1.x86_64.rpm | cpio -id --no- absolute-filenames --quiet -u rpm2cpio java-1_8_0-openjdk-devel-1.8.0.45-100.1.x86_64.rpm | cpio -id --no- absolute-filenames --quiet -u md5sum usr/lib64/jvm/java-1.8.0-openjdk/lib/amd64/libjawt.so usr/lib64/jvm/java-1.8.0-openjdk/lib/amd64/jli/libjli.so usr/lib64/jvm/java-1.8.0-openjdk/jre/lib/amd64/libjawt.so usr/lib64/jvm/java-1.8.0-openjdk/jre/lib/amd64/jli/libjli.so -- Regards, Stas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Stanislav Baiduzhyi
I really-really don't want this thread to be stolen by discussion of single particular package, I still would like to get some concrete info on what is going on after %install and till the end.
Most likely you have an XY problem. If you don't tell us about X we cannot help you to find out the right Y.
But if you need it to reproduce the problem and see it for youself:
(sorry for line breaks)
wget 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...' 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...' 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...'
rpm2cpio java-1_8_0-openjdk-headless-1.8.0.45-100.1.x86_64.rpm | cpio -id -- no-absolute-filenames --quiet -u rpm2cpio java-1_8_0-openjdk-1.8.0.45-100.1.x86_64.rpm | cpio -id --no- absolute-filenames --quiet -u rpm2cpio java-1_8_0-openjdk-devel-1.8.0.45-100.1.x86_64.rpm | cpio -id --no- absolute-filenames --quiet -u
md5sum usr/lib64/jvm/java-1.8.0-openjdk/lib/amd64/libjawt.so usr/lib64/jvm/java-1.8.0-openjdk/lib/amd64/jli/libjli.so usr/lib64/jvm/java-1.8.0-openjdk/jre/lib/amd64/libjawt.so usr/lib64/jvm/java-1.8.0-openjdk/jre/lib/amd64/jli/libjli.so
And what is that supposed to tell us? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday, 11 June 2015 14:17:50 CEST, Andreas Schwab wrote:
Stanislav Baiduzhyi
writes: I really-really don't want this thread to be stolen by discussion of single particular package, I still would like to get some concrete info on what is going on after %install and till the end.
Most likely you have an XY problem. If you don't tell us about X we cannot help you to find out the right Y.
That is true, but you know how easily those discussions can go the wrong way on mailing lists :( I hoped to get a link to detailed spec what is going on during rpmbuild, and to diagnose the issue myself as much as possible.
But if you need it to reproduce the problem and see it for youself:
(sorry for line breaks)
wget 'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...'
'http://download.opensuse.org/repositories/Java:/Factory/openSUSE_13.2/x86_64...' ...
And what is that supposed to tell us?
When you build the openjdk yourself, those files are different, md5sum is different and 'fdupes -r' does not detect them as identical. Yet in the package above and when trying to create my own rpm for java 8 [0] those files are actually identical inside the rpm. You can see the %fdupes macro used in [1] and still there is rpmlint warning at the end of [2], and both of them are correct, I've changed %clean to do nothing and checked the files after %install is performed. [0]: https://build.opensuse.org/package/show/home:TheIndifferent:tuxjdk/tuxjdk [1]: https://build.opensuse.org/package/view_file/home:TheIndifferent:tuxjdk/tuxj... [2]: https://build.opensuse.org/package/live_build_log/home:TheIndifferent:tuxjdk... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Stanislav Baiduzhyi
When you build the openjdk yourself, those files are different,
Also after stripping? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Stanislav Baiduzhyi