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

Contributing.md doesn't have latest instructions #868

Open
toghrulgasimov opened this issue Nov 13, 2024 · 4 comments
Open

Contributing.md doesn't have latest instructions #868

toghrulgasimov opened this issue Nov 13, 2024 · 4 comments

Comments

@toghrulgasimov
Copy link

toghrulgasimov commented Nov 13, 2024

How to contribute and how to create snap are not well documented.
I installed all dependencies from this instaruction https://github.com/canonical/ubuntu-desktop-provision/blob/main/docs/CONTRIBUTING.md#required-dependencies
my branch was ubunt/24.04
melos boostrap worked
after that
git checkout smap/ubuntu-desktop-bootstrap
snapcraft
it builds a snap file.
if I install this snap and execute ubuntu-desktop-bootstrap --try-or-install
I get white windows and this error
`# ubuntu-desktop-bootstrap --try-or-install
Failed to start udisks2-inhibit.service: Unit udisks2-inhibit.service not found.
Gtk-Message: 18:00:19.478: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:00:19.485: Failed to load module "canberra-gtk-module"

(ubuntu_bootstrap:3854): Gtk-WARNING **: 18:00:19.688: /snap/core22/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libibus-1.0.so.5)

(ubuntu_bootstrap:3854): Gtk-WARNING **: 18:00:19.688: Loading IM context type 'ibus' failed

** (ubuntu_bootstrap:3854): WARNING **: 18:00:19.689: Failed to start Flutter renderer: No GL implementation is available`
Can someone help how to build a working snap from source code? if I install it from snap store it works. I need to modify source code
Thanks in advance

@sminez
Copy link
Contributor

sminez commented Nov 15, 2024

We'll need to know some more details of the system you are attempting to run the installer snap on to be able to help. The error you are seeing around glibc not being found sounds like you may be running on an old version of ubuntu that is incompatible with the installer? (The same applies for the warning about no GL implementation being available).

@toghrulgasimov
Copy link
Author

Thank you for your answer.
These are ubuntu and glibc versions.

root@tg:/etc# ldd --version
ldd (Ubuntu GLIBC 2.39-0ubuntu8.3) 2.39
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
root@tg:/etc# cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

I also tried older version of ubuntu

Screenshot 2024-11-15 213512
Screenshot 2024-11-15 213401
If I install it from snapsore it works.
But if i build it as i above described. It says glibc not found.
I use flutter 3.19.2-stable

@d-loose
Copy link
Member

d-loose commented Nov 18, 2024

I suspect you're trying to build the snap from snap/ubuntu-desktop-bootstrap/24.04 using snapcraft 8.x, which causes the library path issues you describe. See #842 for more details. You should be able to resolve this by building the snap using snapcraft from 7.x/stable (it's pinned to that version on launchpad as well).

@toghrulgasimov
Copy link
Author

It worked thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants