Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] appstreamcli compose failed, E: file-read-error, E: filters-but-no-output #619

Closed
2 tasks done
ollm opened this issue Oct 7, 2024 · 3 comments
Closed
2 tasks done

Comments

@ollm
Copy link

ollm commented Oct 7, 2024

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

flatpak-builder version

1.4.2

Flatpak version

1.14.6

How to reproduce

Repo: https://github.com/ollm/flathub/tree/app.opencomic.OpenComic

app.opencomic.OpenComic.yml
app.opencomic.OpenComic.metainfo.xml
app.opencomic.OpenComic.desktop

git clone --single-branch --branch app.opencomic.OpenComic https://github.com/ollm/flathub.git
cd flathub
flatpak-builder build app.opencomic.OpenComic.yml --install-deps-from=flathub --force-clean --user --install --verbose

Expected Behavior

Built correctly.

Actual Behavior

It seems that appstreamcli is failing when processing app.opencomic.OpenComic.metainfo.xml, but I can't find what is wrong with the file.

Error:

Composing metadata...
Run failed, some data was ignored.
Errors were raised during this compose run:
app.opencomic.OpenComic
  E: file-read-error

general
  E: filters-but-no-output
Refer to the generated issue report data for details on the individual problems.
Error: ERROR: appstreamcli compose failed: El proceso hijo terminó con el código 1

Thanks in advance.

Additional Information

If I remove the following line from app.opencomic.OpenComic.yml the build runs correctly.

install -D app.opencomic.OpenComic.metainfo.xml --target-directory=/app/share/metainfo/
@AesaraB
Copy link

AesaraB commented Dec 20, 2024

Strangely enough, the problem occurs because you use --target-directory= to install your icons.

Maybe it's because you rename the icons? I'm sending a PR your way.

@TingPing
Copy link
Member

install -D 16x16.png --target-directory=/app/share/icons/hicolor/16x16/apps/app.opencomic.OpenComic.png

The man page says -D create all leading components of DEST except the last, or all components of --target-directory, then copy SOURCE to DEST

Which sounds like it makes an extra directory and isn't what you want.

@ollm
Copy link
Author

ollm commented Jan 15, 2025

I have tested @AesaraB changes and now it builds correctly, I'm closing the issue.

@ollm ollm closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants