KarlZeilhofer / kicad-appimage

Downloadable prebuilt AppImages for KiCad
14 stars 5 forks source link

Some general questiosn about app images... #2

Closed nickoe closed 5 years ago

nickoe commented 5 years ago

Trying to run this on alpine linux fails because a lot of dpkg tools are missing, then I tried it on a debian-sid host, then it fails with:

<snip>
+ chmod a+x ./appimagetool
++ readlink -f appimagetool
+ appimagetool=/home/jenkins/workspace/linux-kicad-appimage/KiCad/appimagetool
+ '[' '' ']'
+ '[' -z ']'
++ glibc_needed
++ find . -name '*.so' -or -name '*.so.*' -or -type f -executable -exec strings '{}' ';'
++ grep '^GLIBC_2'
++ sed s/GLIBC_//g
++ sort --version-sort
++ uniq
++ tail -n 1
+ GLIBC_NEEDED=2.15
+ VERSION_EXPANDED=201901091303+d1b5302.glibc2.15
+ set +x
dlopen(): error loading libfuse.so.2

I am not sure where this requirement comes from, but it tells me we need fuse. I try to install that in the Docker container as well but then it complains that it is not running and suggest modprobe fuse. But then in my docker container there is no modprobe. I am not sure how that is supposed to work in a docker container.

I also see some rm command that does not look like it is working as intended...

+ apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::Languages=none -o Acquire::AllowDowngradeToInsecureRepositories=true -o Debug::NoLocking=1 -o APT::Cache-Limit=125829120 -o Dir::Etc::sourcelist=./sources.list -o Dir::State=./tmp -o Dir::Cache=./tmp -o Dir::State::status=./status -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0 -o APT::Get::AllowUnauthenticated=1 -o Debug::pkgProblemResolver=true -o Debug::pkgDepCache::AutoInstall=true -o APT::Install-Recommends=0 -o APT::Install-Suggests=0 update
Get:1 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ InRelease
Ign:1 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ InRelease
Get:2 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Release
Ign:2 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Release
Get:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages
Ign:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages
Get:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages
Ign:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages
Get:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages
Ign:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages
Get:3 file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Packages [20 B]
Get:4 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu xenial InRelease [17.6 kB]
Get:6 http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial InRelease [17.5 kB]
Ign:5 http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu xenial InRelease
Get:7 http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu xenial/main amd64 Packages [7940 B]
Ign:4 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Ign:6 http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial InRelease
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:10 http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial/main amd64 Packages [800 B]
rm: cannot remove '/var/cache/apt/archives/partial/*.deb': Permission denied
Fetched 9023 kB in 2s (3912 kB/s)
Reading package lists...
W: The repository 'file:/home/jenkins/workspace/linux-kicad-appimage/KiCad ./ Release' does not have a Release file.
W: GPG error: http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 83FBAD2D910F124E
W: The repository 'http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu xenial InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
W: GPG error: http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 24A5F4FED4B4972B
W: The repository 'http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial InRelease' is not signed.

Because of these issues I will put it on the back burner untill someone shows me how to do it in a docker container.

KarlZeilhofer commented 5 years ago

I'm sorry, but I have no experience with AppImage built in a Docker container. I ran the scripts on my dev machine with Linux Mint 19. I had no problems at all. Perhaps you could get some help form the guys of AppImage.

probonopd commented 5 years ago

Do you have issues when creating or when running AppImages?

nickoe commented 5 years ago

@probonopd this was with creating with something like bash -ex ./pkg2appimage recipes/kicad4.yml

probonopd commented 5 years ago

The pkg2appimage tool works only on Ubuntu 14.04 and later. The AppImages generated by it should run on other distributions as well.

nickoe commented 5 years ago

@probonopd The latest news is that I had some permission issues with linuxdeploy. See https://github.com/KiCad/kicad-website/issues/370#issuecomment-453746909

Lets close this ticket.