`%exclude %{_libdir}/debug` in spec files will package debug symbols
inside rpms which is unintented. This increases rpm size.
This patch crosschecks built rpms and searches for debug symbols in rpms
If debug symbols found, build will be stopped immediately.
Upon rerun, the faulty rpms won't be built again. We need to manually
remove the rpms from stage directory and build the rpms again to ensure
rpm packaging is good.
Change-Id: Ib32d365e1a4d0dd31e38639a5cbaaea612a4a989
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/16623
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Preparation commit before gcc version update.
The major change is: gcc-10 flipped a default from
-fcommon to -fno-common. So, providing -fcommon
for "broken" packages will not harm old gcc (<10)
but will make it compilable with new one (10+).
Change-Id: I09e6180aa81a7157c74b06d90e33ceb8b588f253
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/12169
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2 benefits:
1. It explicitly sets all standard directories to correct ones
2. It uses --host and --target, so many packages with outdated config.sub
and config.guess will work woth new targets like aarch64
Change-Id: Icbce8f2ee3e971806248801175c821cce0966184
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4049
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Dheeraj S Shetty <dheerajs@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>