On Mittwoch, 8. August 2018, 14:35:34 CEST wrote Ludwig Nussel:
Adrian Schröter wrote:
I read on the wiki that you look for some solution how to avoid additional build time due to tar ball recompression. [...] Have a look in the example here, you find this also switchable via build_tar_ball rpm macro:
https://build.opensuse.org/package/show/science:unstable/FreeCAD
It would make sense for sure nowadays to make the build process smarter wrt dealing with distributed scms. Indeed packing a git tree in a tar, just to extract it for building and then compress it again into a src.rpm adds extra steps. Not just for the cpu but also for the packager who has to figure out how to create a tar from git. Ie in case of OBS needs to learn about the _service extra mechanism. The FreeCAD example doesn't seem to make that any easier.
well, yes, but please note that this is a limitation of rpmbuild in first place. It requires files for the src.rpm's. OBS is happy to skip them... You could even go that far and say that we won't ship any src.rpm's at all anymore. Just the sources as they come out of a package checkout. That would require some support in OBS to prepare the published sources, but no big deal. It is more the matter of question how you distro people want to ship the sources....
As packager I'd want to specify
Name: FreeCAD Version: 0.18 Source: https://github.com/FreeCAD/FreeCAD.git
That's it basically. All the rest should be automatic. Can we get to that somehow without extra config files?
Well, you would need to enhance rpmbuild here. And you need to think about the special cases. We could of course also avoid rpmbuild changes and adapt the obs_scm service that it is parsing the spec file, downloading and rewriting the spec file. Not sure if that is a good idea though, since it brings complexity for special cases (eg. submodules yes/no), multiple spec files or other build descriptions. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org