question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build task for target snap not working after adding stagePackages libappindicator1

See original GitHub issue
  • Version: 20.13.4
  • Linux Version: Ubuntu 18.04
  • Snapcraft Version: 2.42
  • Target: snap

With introduction for GNOME 3.26 in ubuntu 17.10 libappindicator1 is required to support tray in electron. As I add it to electron-builder.yml the build is failing. electron-builder.yml (linux part):

 linux:
  maintainer: "Riva FZC <support@flock.com> (https://flock.com)"
  synopsis: "Flock Desktop App"
  artifactName: "Flock-linux.${ext}"
  category: "Network"
  icon: "build/icons"
  target:
    - snap
snap:
  summary: "Flock: Team Communication App"
  stagePackages: 
    - libc6
    - default
    - libappindicator1
  plugs: 
    - default
    - camera

First error:

yarn run v1.6.0 $ electron-builder --linux -c.productName=‘Flock (Beta)’ -c.extraMetadata.name=flock-chat • electron-builder version=20.13.4 • loaded configuration file=/home/kamlesh/repos/flocktron/electron-builder.yml • writing effective config file=dist/electron-builder-effective-config.yaml • rebuilding native production dependencies platform=linux arch=x64 • rebuilding native dependency name=keyboard-layout • rebuilding native dependency name=nslog • rebuilding native dependency name=@paulcbetts/spellchecker • rebuilding native dependency name=@paulcbetts/cld • packaging platform=linux arch=x64 electron=1.8.4 appOutDir=dist/linux-unpacked • building target=snap arch=x64 file=dist/Flock-linux.snap Setting target machine to ‘amd64’ DEPRECATED: The ‘install’ keyword has been replaced by ‘override-build’ See http://snapcraft.io/docs/deprecation-notices/dn9 for more information. Preparing to pull desktop-gtk2 Ign http://dl.google.com/linux/chrome/deb stable InRelease
Hit http://packages.microsoft.com/repos/vscode stable InRelease
Hit http://dl.google.com/linux/chrome/deb stable Release
Hit http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Hit https://dl.yarnpkg.com/debian stable InRelease
Hit http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Fetched 166 kB in 0s (0 B/s)
Pulling desktop-gtk2 Cloning into ‘/home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/src’… remote: Counting objects: 1142, done. remote: Total 1142 (delta 0), reused 0 (delta 0), pack-reused 1142 Receiving objects: 100% (1142/1142), 188.26 KiB | 126.00 KiB/s, done. Resolving deltas: 100% (597/597), done. ‘app’ has prerequisites that need to be staged: desktop-gtk2 Preparing to build desktop-gtk2 Building desktop-gtk2 make FLAVOR=gtk2 -j3 gcc -Wall -O2 -o bindtextdomain.so -fPIC -shared ./…/src/bindtextdomain.c -ldl make FLAVOR=gtk2 install DESTDIR=/home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install install -D -m755 desktop-launch /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/bin/desktop-launch install -D -m644 flavor-select /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/ install -D -m644 bindtextdomain.so /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/ export XDG_DATA_DIRS=/home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/usr/share update-mime-database /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/usr/share/mime [ -f /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/usr/share/icons/Adwaita//index.theme ] gtk-update-icon-cache-3.0 -q /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/usr/share/icons/Adwaita/ /bin/sh: 24: gtk-update-icon-cache-3.0: not found which gtk-update-icon-cache-3.0 Failed to run ‘install’: Exit code was 127. ⨯ exit status 2

I saw the PR for it #2715 that it is for faster startup so i removed that part. The new error is:

yarn run v1.6.0 $ electron-builder --linux -c.productName=‘Flock (Beta)’ -c.extraMetadata.name=flock-chat • electron-builder version=20.13.4 • loaded configuration file=/home/kamlesh/repos/flocktron/electron-builder.yml • writing effective config file=dist/electron-builder-effective-config.yaml • rebuilding native production dependencies platform=linux arch=x64 • rebuilding native dependency name=keyboard-layout • rebuilding native dependency name=nslog • rebuilding native dependency name=@paulcbetts/spellchecker • rebuilding native dependency name=@paulcbetts/cld • packaging platform=linux arch=x64 electron=1.8.4 appOutDir=dist/linux-unpacked • building target=snap arch=x64 file=dist/Flock-linux.snap Setting target machine to ‘amd64’ Preparing to pull desktop-gtk2 Ign http://dl.google.com/linux/chrome/deb stable InRelease
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit https://dl.yarnpkg.com/debian stable InRelease
Hit http://packages.microsoft.com/repos/vscode stable InRelease
Hit http://dl.google.com/linux/chrome/deb stable Release
Hit http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Hit http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Fetched 166 kB in 0s (0 B/s)
Pulling desktop-gtk2 Cloning into ‘/home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/src’… remote: Counting objects: 1142, done. remote: Total 1142 (delta 0), reused 0 (delta 0), pack-reused 1142 Receiving objects: 100% (1142/1142), 188.26 KiB | 100.00 KiB/s, done. Resolving deltas: 100% (597/597), done. ‘app’ has prerequisites that need to be staged: desktop-gtk2 Preparing to build desktop-gtk2 ^[[CBuilding desktop-gtk2 make FLAVOR=gtk2 -j3 gcc -Wall -O2 -o bindtextdomain.so -fPIC -shared ./…/src/bindtextdomain.c -ldl make FLAVOR=gtk2 install DESTDIR=/home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install install -D -m755 desktop-launch /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/bin/desktop-launch install -D -m644 flavor-select /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/ install -D -m644 bindtextdomain.so /home/kamlesh/repos/flocktron/dist/__snap-x64/parts/desktop-gtk2/install/ Staging desktop-gtk2 Preparing to pull app Ign http://dl.google.com/linux/chrome/deb stable InRelease
Hit http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit https://dl.yarnpkg.com/debian stable InRelease
Hit http://packages.microsoft.com/repos/vscode stable InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Hit http://dl.google.com/linux/chrome/deb stable Release
Hit http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Fetched 166 kB in 0s (0 B/s)
Pulling app Preparing to build app Building app Staging app Priming desktop-gtk2 The GLIBC version of the targeted core is 2.23. A newer libc will be required for the following files: /home/kamlesh/repos/flocktron/dist/__snap-x64/prime/usr/lib/x86_64-linux-gnu/libexpatw.so.1.6.7 (requires GLIBC 2.25) /home/kamlesh/repos/flocktron/dist/__snap-x64/prime/lib/x86_64-linux-gnu/libbsd.so.0.8.7 (requires GLIBC 2.25) /home/kamlesh/repos/flocktron/dist/__snap-x64/prime/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0 (requires GLIBC 2.26) /home/kamlesh/repos/flocktron/dist/__snap-x64/prime/usr/lib/x86_64-linux-gnu/libgnutls.so.30.14.10 (requires GLIBC 2.25) /home/kamlesh/repos/flocktron/dist/__snap-x64/prime/lib/x86_64-linux-gnu/libexpat.so.1.6.7 (requires GLIBC 2.25) ‘libc6’ is required inside the snap for this part to work properly. Add it as a stage-packages entry for this part. ⨯ exit status 2

need help @develar @3v1n0 @flexiondotorg

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, May 21, 2018

libappindicator1 is bundled now.

1reaction
develarcommented, May 20, 2018

Yes. That’s why we provide free build service and use template app. I will fix zstd on Linux and you will be able to build snap using our remote service on any your linux machine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publish Your Unity Games in the Snap Store - Snapcraft
In this article we'll go through the steps required to publish a game in the Snap Store. We'll focus on games built using...
Read more >
Discord Now Installing In Kali Linux (Dependency is not ...
I typed gdebi discord-0.0.13.deb . I am getting this error: Reading package lists... Done Building dependency tree Reading state information...
Read more >
Re: help with intialisin package information - Ubuntu Forums
Hi, Navigate in the file-system and find that file /var/lib/dpkg/status. Open it with something like gedit (the default text editor) and ...
Read more >
[ubuntu-studio-devel] LiveFS ubuntustudio/xenial/amd64 ...
The following packages will be upgraded: advancecomp apt ... If the following stage fails, the most likely cause of the problem is with...
Read more >
libnss3.so: cannot open shared object file: no such file or directory ...
...implies that there was an error loading the shared library libnss3.so and possibly it is outdated or wasn't installed at all. Solution. Install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found