Closed rffontenelle closed 2 years ago
Does arch or makepkg actually require validate-strict
for packages? appstream-glib
(provides appstream-util
) is barely maintained and is generally rather outdated and unhelpful. Arch should move to libappstream
.
We have a script here to automate part of the metainfo release creation, but we don’t test against validate-strict
.
Nope. It doesn't event require a [check()](https://wiki.archlinux.org/title/Creating_packages#check()) function. But I decided to file this issue because it was a simple meson test
, not manually appstream-util validate strict
, that caused the error.
Maybe replace validate-strict with validate-relax in data/meson.build ?
I was thinking about PRing a fix in the appstream XML file, unless it is as intended by the project.
Maybe replace validate-strict with validate-relax in data/meson.build ?
It seems fine too me. I never run meson test
.
I’d suggest appstreamcli validate --pedantic
provided by libappstream. Indeed maybe appstream-util validate-relax
too.
I was thinking about PRing a fix in the appstream XML file, unless it is as intended by the project.
Unfortunately unless appstream-util removes rules like max 1600x900 screenshots, there is little point trying to satisfy it IMO.
Thanks for the appstreamcli suggestion. I proposed the above linked PR because I feel that fixing the meson.build seems relatively important for a smooth build & test workflow, because those who run meson test
will spot errors.
EasyEffects Version
6.2.5
What package are you using?
Arch (easyeffects)
Distribution
Arch Linux
Describe the bug
When playing around easyeffects packaging I notice it fails on
meson test
because the AppStream file doesn't pass appstream-util'svalidate-strict
command set in data/meson.build.Expected Behavior
AppStream XML file passes strict validation test and
meson test
exits successfully.Debug Log
meson-test.logs
``` Log of Meson test suite run on 2022-06-12T19:59:01.203863 Inherited environment: SHELL=/bin/bash BUILDTOOL=devtools SUDO_GID=0 PYTHONHASHSEED=0 TEXTDOMAINDIR=/usr/share/locale SUDO_COMMAND='/bin/bash -c bash -c cd\ /startdir;\ makepkg\ "$@" -bash --syncdeps --noconfirm --log --holdver --skipinteg --install' SUDO_USER=root PWD=/build/easyeffects/src SOURCE_DATE_EPOCH=1655074630 LOGNAME=builduser CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS' COMMAND_MODE=legacy LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now HOME=/build LANG=C.UTF-8 MAKEFLAGS=-j6 TERM=xterm-256color USER=builduser SHLVL=1 DEBUGINFOD_URLS='https://debuginfod.archlinux.org ' XDG_DATA_DIRS=/build/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share CHOST=x86_64-pc-linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' SUDO_UID=0 MAIL=/var/mail/builduser BUILDTOOLVER=20220207-2-any OLDPWD=/build/easyeffects/src TEXTDOMAIN=pacman-scripts _=/usr/bin/meson 1/2 Validate desktop file OK 0.00s 22:59:01 MALLOC_PERTURB_=32 /usr/bin/desktop-file-validate data/com.github.wwmm.easyeffects.desktop ----------------------------------- output ----------------------------------- ------------------------------------------------------------------------------ 2/2 Validate appstream file FAIL 0.04s exit status 1 22:59:01 MALLOC_PERTURB_=78 /usr/bin/appstream-util validate-strict --nonet data/com.github.wwmm.easyeffects.metainfo.xml ----------------------------------- output ----------------------------------- stdout: data/com.github.wwmm.easyeffects.metainfo.xml: FAILED: • tag-missing :
does not end in '.|:|!' [The `tbb` library is a new dependency] • style-invalid :
does not end in '.|:|!' [New libraries are being used and some of the librarires that were optional before are now required] • style-invalid : Too many
tags for a good description [5/4] • translations-required : has no translations
stderr:
Validation of files failed
------------------------------------------------------------------------------
Summary of Failures:
2/2 Validate appstream file FAIL 0.04s exit status 1
Ok: 1
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
```
Additional Information
It passes appstream-utils
validate-relax
command: