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

make: improve appimageupdate rule #11669

Merged

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Apr 11, 2024

Instead of trying to detect if running under Docker, use a simpler wildcard check to detect if FUSE support is available. This as the advantage of supporting Docker, rootless Docker, and Podman.


This change is Reviewable

Instead of trying to detect if running under Docker, use a simpler
wildcard check to detect if FUSE support is available. This as the
advantage of supporting Docker, rootless Docker, and Podman.
# set to 1 if in Docker
DOCKER:=$(shell grep -q docker /proc/1/cgroup 2>/dev/null && echo 1)
# Is fuse support available?
USE_FUSE ?= $(wildcard /dev/fuse)
Copy link
Member

@Frenzie Frenzie Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fwiw the AppImage docs supply the slightly unaesthetic example of APPIMAGE_EXTRACT_AND_RUN.

Edit: over this way https://docs.appimage.org/user-guide/troubleshooting/fuse.html#extract-and-run-type-2-appimages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which they decided against documenting in the --appimage-help output… sigh

Copy link
Member

@Frenzie Frenzie Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh, I completely overlooked the implications (or perhaps rather: simplifications) of the and-run earlier. They added the --appimage-extract-and-run flag sometime in between 2018 and now, and I failed to realize it was a different option than --appimage-extract.

But that aside. Strangely enough https://gitlab.com/koreader/nightly-builds/-/jobs/6606286131 seems to think it does have fuse, which doesn't make sense to me. :-/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn. Forget about detection, just use --appimage-extract-and-run unconditionally then, since the performance impact is minimal.

@Frenzie Frenzie merged commit 8b4b302 into koreader:master Apr 11, 2024
2 of 3 checks passed
@Frenzie Frenzie added this to the 2024.04 milestone Apr 11, 2024
@benoit-pierre benoit-pierre deleted the pr/improve_appimageupdate_rule branch April 11, 2024 17:11
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

Successfully merging this pull request may close these issues.

None yet

2 participants