pkg2appimage icon indicating copy to clipboard operation
pkg2appimage copied to clipboard

Vivaldi recipe update needed

Open tyu1996 opened this issue 3 years ago • 2 comments

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:

  1. Run pkg2appimage with Vivaldi.yml recipe.
  2. Read the errors.

tyu1996 avatar Nov 09 '20 14:11 tyu1996

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

  1. Hard-code the Vivaldi x64 .deb URL (Make sure it's downloading the x64 build)
  2. Change the Ubuntu version to xenial (The old trusty have missing dependencies)
  3. 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

  1. Rewrite the wget URL to make it download the x64 deb correctly. (I'm no CLI expert to do this)
  2. Fix the cannot connect to internet issue.

tyu1996 avatar Nov 09 '20 15:11 tyu1996

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/

faveoled avatar Jan 02 '24 13:01 faveoled