Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with dependencies of lower versions #21

Open
momobobe opened this issue May 7, 2023 · 2 comments
Open

Build with dependencies of lower versions #21

momobobe opened this issue May 7, 2023 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@momobobe
Copy link

momobobe commented May 7, 2023

The AppImage and portable package report requirement of a minimum glibc version 2.34, which is unable to reach on Debian 11. Maybe flatpak is a workaround, but I think it's still necessary and doable to lower the dependency versions for better compatibility, as Debian 11 is not so old yet.

@gumbarros gumbarros self-assigned this May 7, 2023
@gumbarros gumbarros added the help wanted Extra attention is needed label May 7, 2023
@gumbarros
Copy link
Owner

Hello @momobobe !

I want to help you on this, but I don't have the knowledge on the native dependencies on Linux.
The steps I use to generate a AppImage from the Flutter app:

          cp -r portable DevWidgets.AppDir
          wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
          sudo apt install libfuse2
          chmod +x ./appimagetool-x86_64.AppImage
          cp -r linux/appimage_assets/* DevWidgets.AppDir/
          chmod +x DevWidgets.AppDir/AppRun
          ./appimagetool-x86_64.AppImage DevWidgets.AppDir/

app_image_assets: https://github.com/gumbarros/DevWidgets/tree/main/linux/appimage_assets

Do you know where I can change glibc version?

@momobobe
Copy link
Author

momobobe commented May 9, 2023

Pardon me as not a developer, I just find this https://docs.appimage.org/reference/best-practices.html#binaries-compiled-on-old-enough-base-system and the common sense tells me, it's mainly caused by the version of system for building, since compilers simply pick the dependency installed in system. Perhaps you can change runs-on: ubuntu-latest to runs-on: ubuntu-20.04 in build-deploy.yml. But I'm afraid this is just a temporary and very limited workaround, since Github would remove older Ubuntu images as version bumps. Maybe a long-term solution is to build in docker with image of even older Ubuntu or other distros. Also maybe some configurations can be set on the Flutter side, but I don't really know how Flutter works.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants