hongquan / CoBang

A QR code scanner desktop app for Linux
GNU General Public License v3.0
243 stars 28 forks source link

Validating appstream file fails #32

Closed yochananmarqos closed 3 years ago

yochananmarqos commented 3 years ago
Log of Meson test suite run on 2021-03-06T15:24:40.973348

Inherited environment: SHELL=/bin/bash COLORTERM=truecolor SUDO_GID=0 TEXTDOMAINDIR=/usr/share/locale SUDO_COMMAND='/bin/bash -c chrootbuild cobang fs' SUDO_USER=root PWD=/build/cobang/src SOURCE_DATE_EPOCH=1615044280 LOGNAME=builduser CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' XAUTHORITY=/run/user/1000/gdm/Xauthority COMMAND_MODE=legacy LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now HOME=/build LANG=en_US.utf8 CPPFLAGS=-D_FORTIFY_SOURCE=2 MAKEFLAGS=-j17 TERM=xterm-256color USER=builduser DISPLAY=:1 SHLVL=2 LC_ALL=en_US.UTF-8 CHOST=x86_64-pc-linux-gnu PATH=/build/.local/bin:/build/.local/bin:/home/yochanan/bin:/home/yochanan/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' SUDO_UID=0 MAIL=/var/mail/builduser OLDPWD=/build/cobang/src TEXTDOMAIN=pacman-scripts _=/usr/bin/meson 

1/3 Validate desktop file   OK              0.01s
15:24:40 MALLOC_PERTURB_=77 /usr/bin/desktop-file-validate /build/cobang/src/build/../CoBang-0.7.0/data/vn.hoabinh.quan.CoBang.desktop
----------------------------------- output -----------------------------------
/build/cobang/src/build/../CoBang-0.7.0/data/vn.hoabinh.quan.CoBang.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated
/build/cobang/src/build/../CoBang-0.7.0/data/vn.hoabinh.quan.CoBang.desktop: hint: value "GTK;Office;Graphics;AudioVideo;Video;Scanning;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
/build/cobang/src/build/../CoBang-0.7.0/data/vn.hoabinh.quan.CoBang.desktop: hint: value "GTK;Office;Graphics;AudioVideo;Video;Scanning;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
/build/cobang/src/build/../CoBang-0.7.0/data/vn.hoabinh.quan.CoBang.desktop: hint: value "GTK;Office;Graphics;AudioVideo;Video;Scanning;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
------------------------------------------------------------------------------

2/3 Validate schema file    OK              0.00s
15:24:40 MALLOC_PERTURB_=39 /usr/bin/glib-compile-schemas --strict --dry-run /build/cobang/src/CoBang-0.7.0/data
----------------------------------- output -----------------------------------
------------------------------------------------------------------------------

3/3 Validate appstream file FAIL            0.01s   exit status 1
15:24:40 MALLOC_PERTURB_=253 /usr/bin/appstream-util validate vn.hoabinh.quan.CoBang.appdata.xml
----------------------------------- output -----------------------------------
stdout:
vn.hoabinh.quan.CoBang.appdata.xml: 
stderr:
vn.hoabinh.quan.CoBang.appdata.xml could not be read: Failed to open file “vn.hoabinh.quan.CoBang.appdata.xml”: No such file or directory
------------------------------------------------------------------------------

Summary of Failures:

3/3 Validate appstream file FAIL            0.01s   exit status 1

Ok:                 2   
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
hongquan commented 3 years ago

Thanks @yochananmarqos for reporting. I hope 16ca775 can fix it.

yochananmarqos commented 3 years ago

Now there are different errors:

Log of Meson test suite run on 2021-03-08T15:28:50.894923

Inherited environment: SHELL=/bin/bash COLORTERM=truecolor SUDO_GID=0 TEXTDOMAINDIR=/usr/share/locale SUDO_COMMAND='/bin/bash -c chrootbuild cobang fs' SUDO_USER=root PWD=/build/cobang/src SOURCE_DATE_EPOCH=1615217322 LOGNAME=builduser CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' XAUTHORITY=/run/user/1000/gdm/Xauthority COMMAND_MODE=legacy LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now HOME=/build LANG=en_US.utf8 CPPFLAGS=-D_FORTIFY_SOURCE=2 MAKEFLAGS=-j17 TERM=xterm-256color USER=builduser DISPLAY=:1 SHLVL=2 LC_ALL=en_US.UTF-8 CHOST=x86_64-pc-linux-gnu PATH=/build/.local/bin:/build/.local/bin:/build/.local/bin:/build/.local/bin:/home/yochanan/bin:/home/yochanan/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' SUDO_UID=0 MAIL=/var/mail/builduser OLDPWD=/build/cobang/src TEXTDOMAIN=pacman-scripts _=/usr/bin/meson 

1/3 Validate desktop file   OK              0.01s
15:28:50 MALLOC_PERTURB_=255 /usr/bin/desktop-file-validate /build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.desktop
----------------------------------- output -----------------------------------
/build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated
/build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.desktop: hint: value "GTK;Office;Graphics;AudioVideo;Video;Scanning;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
/build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.desktop: hint: value "GTK;Office;Graphics;AudioVideo;Video;Scanning;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
/build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.desktop: hint: value "GTK;Office;Graphics;AudioVideo;Video;Scanning;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
------------------------------------------------------------------------------

2/3 Validate schema file    OK              0.00s
15:28:50 MALLOC_PERTURB_=218 /usr/bin/glib-compile-schemas --strict --dry-run /build/cobang/src/cobang/data
----------------------------------- output -----------------------------------
------------------------------------------------------------------------------

3/3 Validate appstream file FAIL            0.37s   exit status 1
15:28:50 MALLOC_PERTURB_=105 /usr/bin/appstream-util validate /build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.appdata.xml
----------------------------------- output -----------------------------------
stdout:
/build/cobang/src/build/../cobang/data/vn.hoabinh.quan.CoBang.appdata.xml: FAILED:
• style-invalid         : <image> has vertical padding [https://i.imgur.com/K3TU9bm.png]
• style-invalid         : <image> has horizontal padding [https://i.imgur.com/K3TU9bm.png]
• style-invalid         : <image> has vertical padding [https://i.imgur.com/bIV57cV.png]
• style-invalid         : <image> has horizontal padding [https://i.imgur.com/bIV57cV.png]
• style-invalid         : <image> has vertical padding [https://i.imgur.com/aORgQKj.png]
• style-invalid         : <image> has horizontal padding [https://i.imgur.com/aORgQKj.png]
stderr:
Validation of files failed
------------------------------------------------------------------------------

Summary of Failures:

3/3 Validate appstream file FAIL            0.37s   exit status 1

Ok:                 2   
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
hongquan commented 3 years ago

So, my screenshots don't satisfy FlatHub criteria. I changed the command line in e42a50eb9fe4dbde3450faef76178bf349c722b1 to tell the check tool less strict.

yochananmarqos commented 3 years ago

That did that trick. :+1: