Integrating git submodule with package source
I'm trying to build wineasio 1.0.0.[1] The "rtaudio" folder was moved to a git submodule. How do I correctly integrate this into the other source files? Adding a service to download the "rtaudio" folder works, but I can't access it at build time[2]. regards [1] https://github.com/wineasio/wineasio [2] https://build.opensuse.org/package/live_build_log/ home:oxy:branches:Emulators:Wine/wineasio/openSUSE_Leap_15.2_Update/x86_64
1. full tarball https://github.com/wineasio/wineasio/releases/download/v1.0.0/wineasio-1.0.0... 2. you should give some filename-version.tar.gz (for example) to the rtaudio tarball, because set_version works only for package main source (Source0). 3. you can grab all wineasio sources (including submodules) with _services On 2021-03-03 06:22, Maximilian Trummer wrote:
I'm trying to build wineasio 1.0.0.[1] The "rtaudio" folder was moved to a git submodule. How do I correctly integrate this into the other source files? Adding a service to download the "rtaudio" folder works, but I can't access it at build time[2].
regards
[1] https://github.com/wineasio/wineasio
[2] https://build.opensuse.org/package/live_build_log/ home:oxy:branches:Emulators:Wine/wineasio/openSUSE_Leap_15.2_Update/x86_64
Am Dienstag, 2. März 2021, 23:30:19 CET schrieb Konstantin Voinov:
1. full tarball https://github.com/wineasio/wineasio/releases/download/v1.0.0/wineasio-1.0.0... Oh, so this includes all sources.
3. you can grab all wineasio sources (including submodules) with _services How would I do that? By making the Git SCM pull the repo at the commit of the release? Which is https://github.com/wineasio/wineasio/commit/e71741863fc89ac5c78eba2018ec1737...
regards
3. you can grab all wineasio sources (including submodules) with _services How would I do that? By making the Git SCM pull the repo at the commit of the release? Which is https://github.com/wineasio/wineasio/commit/e71741863fc89ac5c78eba2018ec1737...
just as you've done for rtaudio if you need the source at special commit then there is revision tag, yes: <services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/wineasio/wineasio.git</param> <param name="filename">rtaudio</param> <param name="revision">e03448bd15c1c34e842459939d755f5f89e880ed</param> <param name="versionformat">%cd~git.%h</param> </service> <service name="tar" mode="buildtime"/> <service name="recompress" mode="buildtime"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> </services> btw, why you build it alongside of the main repo?
3. you can grab all wineasio sources (including submodules) with _services
How would I do that? By making the Git SCM pull the repo at the commit of the release? Which is https://github.com/wineasio/wineasio/commit/e71741863fc89ac5c78eba2018ec17 37499a287b just as you've done for rtaudio if you need the source at special commit then there is revision tag, yes: <services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/wineasio/wineasio.git</param> <param name="filename">rtaudio</param> <param name="revision">e03448bd15c1c34e842459939d755f5f89e880ed</param> <param name="versionformat">%cd~git.%h</param> </service> <service name="tar" mode="buildtime"/> <service name="recompress" mode="buildtime"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> </services>
btw, why you build it alongside of the main repo? The goal was to take the (github-provided) wineasio tarball and combine these
Am Mittwoch, 3. März 2021, 13:12:54 CET schrieb Konstantin Voinov: sources with the rtaudio source. Apparently this isn't how you should do it so I was wrong here. I used the developer-provided tarball now and everything works. Thanks!
participants (2)
-
Konstantin Voinov
-
Maximilian Trummer