On sábado, 28 de noviembre de 2020 18:15:45 (CET) Michael Behrisch wrote:
Hi, I am trying to move packages from https://build.opensuse.org/project/show/home:behrisch to https://build.opensuse.org/project/show/science:dlr and get build failures on CentOS 8 although the configuration seems to be identical.
Not 100% identical - home:behrishc does not have debug flag enabled for all repositories: https://build.opensuse.org/repositories/science:dlr - science:dir has it enabled: https://build.opensuse.org/repositories/science:dlr
The failing project is https://build.opensuse.org/package/show/science:dlr/fox16 which seems to have problems with debuginfos which I tried to disable using %global debug_package %{nil} (this works in my home project).
My major question is where does this different behavior come from?
From the meta configuration for both projects.
Here is what I tried as workarounds: Moving around the define as mentioned here: https://superuser.com/questions/1091529/rpm-build-error-empty-files-file-deb ugfiles-list or adding futher defines such as %undefine _debuginfo_subpackages as mentioned here: https://bugzilla.redhat.com/show_bug.cgi?id=1481352 or %define _debugsource_template %{nil} as mentioned here: https://www.getpagespeed.com/server-setup/build-rpms-gotchas. Nothing worked so far.
First of all, I'd declare `debug_package` on top, right on top of `%define lname` But also I think you should not really use: %if 0%{?centos_version} >= 800 %global debug_package %{nil} %endif This doesn't look bad... as long as `centos_version` still works this way for CentOS8. So far I never used `centos_version` in any SPEC, as I never had anything really specific for CentOS. In most cases `rhel` should work, and will work not just for CentOS, but also for RHEL, Oracle, and whatever else is based on RHEL. Try: %if 0%{?rhel} >= 8 %global debug_package %{nil} %endif And remember to enable the debug flag for your home project, so you can check that it works before you submit to science:dlr Give it a try, and let us know.
Thanks for your help, Michael _______________________________________________ openSUSE Build Service mailing list -- buildservice@lists.opensuse.org To unsubscribe, email buildservice-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/buildservice@lists.opensuse.org
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com