AppManager icon indicating copy to clipboard operation
AppManager copied to clipboard

F-Droid fails to build

Open licaon-kter opened this issue 5 years ago • 61 comments

https://f-droid.org/wiki/index.php?title=io.github.muntashirakon.AppManager/lastbuild_375&oldid=284341

licaon-kter avatar Dec 23 '20 15:12 licaon-kter

VCS error? You have to remove the existing repo and clone it again or deinit the toybox module and remove the .git/modules/toybox directory and then update the submodules.

MuntashirAkon avatar Dec 23 '20 16:12 MuntashirAkon

It's a clean VM, there is no existing repo to remove before the cloning is done.

licaon-kter avatar Dec 23 '20 17:12 licaon-kter

It's a clean VM, there is no existing repo to remove before the cloning is done.

Not sure what happened, then. Github builds it without any issues. The git version (2.11.x) is outdated though.

MuntashirAkon avatar Dec 23 '20 17:12 MuntashirAkon

I don't know if it's related but Fdroid does not have the new 2.5.20 version and the apk does not want to install on my Galaxy S10.

Radder124 avatar Dec 24 '20 01:12 Radder124

I don't know if it's related but Fdroid does not have the new 2.5.20 version and the apk does not want to install on my Galaxy S10.

You have to wait until F-Droid publishes the new release as it has a different signature.

MuntashirAkon avatar Dec 24 '20 02:12 MuntashirAkon

@licaon-kter Can you re-try with an updated git (2.11.0 is released 4 years ago)? I've tried it 2.24.3 (macOS) and 2.29.2 (Linux). Both worked fine.

MuntashirAkon avatar Dec 25 '20 08:12 MuntashirAkon

We can install from backports a newer version I guess.

licaon-kter avatar Dec 25 '20 08:12 licaon-kter

We can install from backports a newer version I guess.

How can we do that?

Radder124 avatar Dec 27 '20 01:12 Radder124

Tested with same git version in fdroid build ci image, and everything works. So it's probably not due to the version of git

proletarius101 avatar Dec 27 '20 03:12 proletarius101

Tested with same git version in fdroid build ci image, and everything works. So it's probably not due to the version of git

Interesting. Since git is failing to create submodules, I thought it must be an issue with git or VCS. Toybox submodule was located at toybox but later moved to toybox/toybox, so git shouldn't complain if only the specific tag was cloned from scratch.

Could you share the build script or make a PR so that it can run when new tags are created, preferably using GitHub actions?

MuntashirAkon avatar Dec 27 '20 04:12 MuntashirAkon

Tested with same git version in fdroid build ci image, and everything works. So it's probably not due to the version of git

Interesting. Since git is failing to create submodules, I thought it must be an issue with git or VCS. Toybox submodule was located at toybox but later moved to toybox/toybox, so git shouldn't complain if only the specific tag was cloned from scratch.

Could you share the build script or make a PR so that it can run when new tags are created, preferably using GitHub actions?

What I did was exactly the fdroid build job in https://gitlab.com/fdroid/fdroiddata/-/blob/master/.gitlab-ci.yml minus doing the system upgrade.

proletarius101 avatar Dec 27 '20 09:12 proletarius101

To make it even easier and more intuitive, I triggered a build: https://gitlab.com/proletarius101/fdroiddata/-/jobs/933060759

proletarius101 avatar Dec 27 '20 09:12 proletarius101

It fails to build due to missing ndks. But at least it shows it can be cloned by git 2.11.0

proletarius101 avatar Dec 27 '20 10:12 proletarius101

Any update on this?

MuntashirAkon avatar Jan 01 '21 15:01 MuntashirAkon

Maybe that's because it scandeletes toybox rather than toybox/toybox? You move the submodule after 2.5.17 which is the last build that can be successfully built.

proletarius101 avatar Jan 01 '21 17:01 proletarius101

@licaon-kter Can you verify that? It's not reproducable in Docker containers, so I can't say it for sure. But I would love to make such PR to give it a try. Of course the best option is you may try it on the server directly.

proletarius101 avatar Jan 01 '21 18:01 proletarius101

@licaon-kter Again, any updates? I'd love to help if there's anything I can do :)

proletarius101 avatar Jan 04 '21 09:01 proletarius101

It's almost 20 days since the issue was opened and almost 25 days since the release. Please do something on this. F-Droid users are eagerly waiting for the release.

MuntashirAkon avatar Jan 11 '21 11:01 MuntashirAkon

Let's see: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/8116

licaon-kter avatar Jan 11 '21 11:01 licaon-kter

https://f-droid.org/wiki/index.php?title=io.github.muntashirakon.AppManager/lastbuild_375&oldid=285631 :(

licaon-kter avatar Jan 13 '21 09:01 licaon-kter