On Wed, 26 Aug 2020 22:32:44 +0200 Julio González Gil <jgonzalez@suse.com> wrote:
Hi,
On miércoles, 26 de agosto de 2020 19:31:57 (CEST) Carsten Ziepke wrote:
Hello,
I want to update the package ja2-stracciatella in the games repository to version 0.17.0.
https://build.opensuse.org/package/show/home:Kieltux:branches:games/ja2-stra cciatella
The new version needs the library string_theory which is not available for openSUSE.
The build process wants to download string_theory from github, because it is not found.
[ 36s] Scanning dependencies of target string_theory [ 36s] [ 12%] Creating directories for 'string_theory' [ 37s] [ 25%] Performing download step (download, verify and extract) for 'string_theory' [ 37s] -- Downloading... [ 37s] dst='/home/abuild/rpmbuild/BUILD/ja2-stracciatella-0.17.0/build/dependencies /lib-string_theory/builder/string_theory-prefix/src/3.1.tar.gz' [ 37s] timeout='none' [ 37s] -- Using src='https://github.com/zrax/string_theory/archive/3.1.tar.gz' [ 37s] -- Retrying...
Can I add string_theory (string_theory-3.1.tar.gz) manually to the package and patch the build process?
According to the commit that added the string_theory dependency (https:// github.com/ja2-stracciatella/ja2-stracciatella/commit/ cd0c9bf5d833718b91c439a0d658f7d69e69a907) I'd say that you can't. Even if you have string_theory installed locally I'd say it won't work.
So this what I did:
- I built string_theory at https://build.opensuse.org/project/show/ home:juliogonzalez - Copied ja2-stracciatella package to the same project ^ and adapted it to require "string_theory-devel", patch "dependencies/lib-string_theory/ CMakeLists.txt" and remove a file that doesn't existe anymore
That fixes the building for Leap 15.2 and Tumbleweed.
The rest of the OS have other issues:
- Leap 15.1: cargo version is too old, I don't think Leap 15.1 is going to accept an update, but anyway it will go EoL soon, so I guess you can ignore it. - SLE: rust packages conflicting, I guess it could be fixed but the package doesn't even build at https://build.opensuse.org/package/show/games/ja2-stracciatella for SLE.
Feel free to copypac my packages from home:juliogonzalez to home:Kieltux:branches:games, test them, fix whatever else is needed, and submit them to "games:"
A big warning: maybe the spec for string_theory will require some changes before it gets accepted by "games:" project.
In other words: I am not sure it follows *all* the openSUSE rules for such kind of packages. I tried my best and at least builds and fixes the problem building ja2-stracciatella. The other fixes are on you :-)
Best regards.
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com
Hola Julio, thank you for taking your time to give me such a detailed answer for my problem. This is a great help for me, and I think you are right: It would be fine to build in my home repository, but would not be accepted in "games:". I will try my best. Muchas gracias, Carsten -- Ok, I'm just uploading the new version of the kernel, v1.3.33, also known as "the buggiest kernel ever". -- Linus Torvalds