![](https://seccdn.libravatar.org/avatar/f1d78e91b49772bc1ee655d00d0c7155.jpg?s=120&d=mm&r=g)
Moin, Am Dienstag, 22. Dezember 2020, 17:03:24 CET schrieb Christian Boltz:
Hello,
Am Donnerstag, 17. Dezember 2020, 14:59:36 CET schrieb Fabian Vogt:
Previously, packages with multiple spec files (e.g. systemd, which has both systemd.spec and systemd-mini.spec) needed a .changes file for each .spec. As the vast majority of changes (e.g. version updates) affect all "flavors", this requirement got dropped and only a single .changes file with the name used for the submit request is needed. It's used for all .spec files during build.
What's the recommended way for existing packages with multiple spec files? Merge the changes files into one, or keep separate changes files for each spec?
If switching over saves some work and duplication, it's probably worth it (especially if migration is just deleting a file). In the case that the .changes files have vastly different content, migration might be more work and only makes sense if the merged .changes actually fits all built packages.
I'm especially asking about the apparmor (and libapparmor) package: https://build.opensuse.org/package/show/security:apparmor/apparmor
libapparmor was split into its own spec to fix a build dependency loop, and libapparmor.changes contains only libapparmor-related changes - but most of that information is also in apparmor.changes.
What's your recommendation in this case?
It looks like libapparmor.changes is a subset of apparmor.changes, so only keeping one of them would avoid the duplication. The package is called apparmor, so keeping just apparmor.changes should work. That's assuming that libapparmor.changes doesn't contain any additional bug refs which aren't in apparmor.changes.
Bonus question: will the package still build for Leap 15.x with only one changes file?
Yes, the handling of that is done by OBS itself and the bots won't reject it either. obs-service-source_validator in Leap might print a warning though. Cheers, Fabian
Regards,
Christian Boltz -- Natürlich kann ich Traktor fahren. Ich bin der geborene Traktorfahrer. Es dürfte dir schwer fallen, jemanden zu finden, der annähernd so perfekt Traktor fährt wie ich. Ja, ich _bin_ geradezu ein Traktor. Wieviele Räder hat so ein Traktor eigentlich? [Ratti] _______________________________________________ openSUSE Factory mailing list -- factory@lists.opensuse.org To unsubscribe, email factory-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/factory@lists.opensuse.org