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

Remove libjansson dependency #16

Open
majjejjam opened this issue Apr 8, 2024 · 6 comments · May be fixed by #17
Open

Remove libjansson dependency #16

majjejjam opened this issue Apr 8, 2024 · 6 comments · May be fixed by #17

Comments

@majjejjam
Copy link
Contributor

It seems libjansson has been replaced by a custom parser, so we should be able to drop it as a dependency, right?

@fejfighter
Copy link
Owner

Yes we absolutely can drop it as a dependency now.

I had made the changes locally last week when it was merged.
I'm having separate build issues with appstream content which has made me hesitant to push

@fejfighter
Copy link
Owner

@majjejjam I have a working manifest, do you have this installed in parallel to the standard emacs flatpak?

newer versions of appstream are stricter and might make it hard to diffentiate

@fejfighter fejfighter linked a pull request Apr 9, 2024 that will close this issue
@majjejjam
Copy link
Contributor Author

I actually recently forked this project to add some opinionated patches (rounded corners and titlebar syncing colors with rest the rest of the frame). I also added support for SDK Extensions which I thought would probably be appropriate here, but didn't find time to create an issue or submit a PR yet.

Sorry, what is appstream? And what's difficult to differentiate?

@fejfighter
Copy link
Owner

Do the SDK extensions still need to get passed in/defined at launch? that was the main reason I avoided using it.

Appstream is the meta data info for flathub and gnome software type things. I can't seem to opt out of it.
the issue this change will introduce is that the app ID is now the same as the flathub version (org.gnu.emacs), rather than org.gnu.emacs-pgtk

@majjejjam
Copy link
Contributor Author

Do the SDK extensions still need to get passed in/defined at launch? that was the main reason I avoided using it.

Yes. You need to add extensions to an environmental variable: FLATPAK_ENABLE_SDK_EXT=rust-nightly,texlive,llvm17 as an example. I do this with the help of Flatseal. Adding or removing requires restarting Emacs for the changes to take effect.

Appstream is the meta data info for flathub and gnome software type things. I can't seem to opt out of it.
the issue this change will introduce is that the app ID is now the same as the flathub version (org.gnu.emacs), rather than org.gnu.emacs-pgtk

Thanks for the explanation! I take it you have the standard Emacs flatpak installed so there's a conflict? My fork uses capitalization, so the app id is org.gnu.Emacs. Another solution could be to use your own domain (something like org.fejfighter.emacs) or just keep the pgtk suffix.

@fapdash
Copy link

fapdash commented Jun 22, 2024

@majjejjam @fejfighter From what I understand libjanson was not removed from Emacs, Géza Herman contributed a json parser, so json -> lisp is handled by the new code. lisp -> json will still use libjansson if available.

See https://mail.gnu.org/archive/html/emacs-devel/2024-03/msg00299.html

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 a pull request may close this issue.

3 participants