pkg2appimage
pkg2appimage copied to clipboard
Vivaldi recipe update needed
Describe the issue Multiple issues:
- The download path takes i386 deb package instead of x64, causing the rest of building failed.
- The post-ingredient script fails to run, giving few "no such file or directory" errors. Suppose the newer build changed the directory structure.
To Reproduce Steps to reproduce the behavior:
- Run pkg2appimage with Vivaldi.yml recipe.
- Read the errors.
I've updated the recipe with the following:
app: Vivaldi
ingredients:
package: vivaldi-stable
dist: xenial
sources:
- deb http://archive.ubuntu.com/ubuntu/ xenial main universe
script:
- wget -c "https://downloads.vivaldi.com/stable/vivaldi-stable_3.4.2066.94-1_amd64.deb"
script:
- cp opt/vivaldi/product_logo_128.png vivaldi.png
- cp usr/share/applications/vivaldi-stable.desktop .
- ( cd usr/bin ; rm vivaldi-stable ; ln -s vivaldi vivaldi-stable )
- mv -f opt/vivaldi/* usr/bin/ && rm -r opt/
Few changes here
- Hard-code the Vivaldi x64 .deb URL (Make sure it's downloading the x64 build)
- Change the Ubuntu version to xenial (The old trusty have missing dependencies)
- Rewrite few post-ingredients scripts
What is solved The AppImage can be packaged without errors. The Vivaldi AppImage ran successfully.
What does not work The Vivaldi cannot connect to internet connection. From the terminal it rendered the message:
[102627:102632:1109/224550.267459:ERROR:nss_util.cc(166)] Error initializing NSS with a persistent database (sql:/home/brian/.pki/nssdb): libsoftokn3.so: cannot open shared object file: No such file or directory
[102627:102632:1109/224550.267876:ERROR:nss_util.cc(124)] Error initializing NSS without a persistent database: NSS error code: -5925
[102627:102632:1109/224550.267931:FATAL:nss_util.cc(126)] nss_error=-5925, os_error=0
[102456:102456:1109/224550.455480:ERROR:network_service_instance_impl.cc(286)] Network service crashed, restarting service.
Helps needed
- Rewrite the wget URL to make it download the x64 deb correctly. (I'm no CLI expert to do this)
- Fix the cannot connect to internet issue.
Tried to rebase on focal but still fails:
/tmp/.mount_Vivald15eCRU/usr/bin//vivaldi: symbol lookup error: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: g_memdup2
Manifest:
app: Vivaldi
ingredients:
package: vivaldi-stable
dist: focal
sources:
- deb https://ftp.psnc.pl/linux/ubuntu/ focal main universe
script:
- wget -c "https://downloads.vivaldi.com/stable/vivaldi-stable_6.5.3206.48-1_amd64.deb"
script:
- cp opt/vivaldi/product_logo_128.png vivaldi.png
- cp usr/share/applications/vivaldi-stable.desktop .
- sed -i -e 's|^Exec=.*|Exec=vivaldi %U|g' vivaldi-stable.desktop
- mv -f opt/vivaldi/* usr/bin/ && rm -r opt/