Anbox: Return of issue #1071

Created on 29 Oct 2019  路  4Comments  路  Source: anbox/anbox

Hello, I'm running on Arch Linux, and I was attempting to make this compile however, for some reason I'm getting the exact same error (by same, I mean, I looked at the log posted there, and it's the same as mine except for the location of the anbox source code) as the presumably fixed issue #1071
In that same thread the fixer @Firenox89 shows the results of pacman -Q --info protobuf at the end of the post where he/she shows the solution, resulting in protobuf version 3.7.0-1. I did the same after trying to get it to work for a bit, and got protobuf version 3.10.0-1. I have looked at the fix offered by Firenox89 and it is still in the files mentioned so I'm guessing something likely changed between protobuf v3.7.0 and v3.10.0.

Most helpful comment

@Java-C0der I'm gonna quote the comment I made on the AUR about the temporary patch I made for this using the info above:

I went looking into the arch-wiki, and I'm coming back with this: https://github.com/Kusoneko/anbox-git-AUR-fix a patch file and the patched PKGBUILD so it applies the patch before building, so you can just download these and drop them over the original PKGBUILD, (and edit the PKGBUILD file to make anbox depend on the anbox-image package variant you wish to use, if it's not the default anbox-image one) and then makepkg -si and it works (just tested it and it builds and installs properly).

It should work fine until #1280 gets merged.

All 4 comments

cmakes GREATER comparison isn't as smart as I hoped it to be.

if (("3.10" GREATER "3.7"))
    message(is greater)
else()
    message(is lesser)
endif()

Prints is lesser.
So we would need a better version comparison.
After commenting out line 97 and 99 in the CMakeLists.txt, i could build again so this seems to be the only issue.

cmakes GREATER comparison isn't as smart as I hoped it to be.

if (("3.10" GREATER "3.7"))
    message(is greater)
else()
    message(is lesser)
endif()

Prints is lesser.
So we would need a better version comparison.
After commenting out line 97 and 99 in the CMakeLists.txt, i could build again so this seems to be the only issue.

Hi, how do I apply that patch? When I clone the repo from the AUR, that file isn't there, it only appears after I run makepkg, but if I patch the file mid-compilation it obviously won't work...
Sorry, new user here. :stuck_out_tongue:

This code snippet was just for me to test the how the GREATER comparison works.
Just found that there is also a VERSION_GREATER which seems to do the right thing, I created a pull request.

@Java-C0der I'm gonna quote the comment I made on the AUR about the temporary patch I made for this using the info above:

I went looking into the arch-wiki, and I'm coming back with this: https://github.com/Kusoneko/anbox-git-AUR-fix a patch file and the patched PKGBUILD so it applies the patch before building, so you can just download these and drop them over the original PKGBUILD, (and edit the PKGBUILD file to make anbox depend on the anbox-image package variant you wish to use, if it's not the default anbox-image one) and then makepkg -si and it works (just tested it and it builds and installs properly).

It should work fine until #1280 gets merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Epsilon1033 picture Epsilon1033  路  4Comments

Conzar picture Conzar  路  4Comments

Albert1603 picture Albert1603  路  3Comments

arturoiafrate picture arturoiafrate  路  4Comments

harry-cpp picture harry-cpp  路  4Comments