FS#57215 - [gnome-builder] Make clang and flatpak dependencies optional

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Wednesday, 24 January 2018, 14:23 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

1. clang is a very large dependency, and it's needed only for the Clang plugin. Please move it to make+optdepends.

2. It seems that the Flatpak plugin is useless without flatpak-builder installed. Please move flatpak to makedepends, and add flatpak-builder to optdepends.

The new optdepends lines:
clang: Integration with Clang
flatpak-builder: Building with Flatpak
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:15 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/gnome-builder/issues/1
Comment by Jan Alexander Steffens (heftig) - Wednesday, 24 January 2018, 16:01 GMT
I'd rather cut down on optdepends in favor of proper depends where we can, as long as the side effects are minimal. gnome-builder, as an IDE, won't be found on minimalist systems and probably doesn't need any optdepends at all.
Comment by Balló György (City-busz) - Wednesday, 24 January 2018, 16:22 GMT
But why should I need the whole clang compiler when I don't want to use it with gnome-builder?

I think it's okay to not move all plugin deps to optional, since the others are essential for an IDE (gspell, libgit2-glib, vte3) or already part of GNOME (devhelp, sysprof, vala). But clang and flatpak are something special which only needed for specific projects.
Comment by Jan Alexander Steffens (heftig) - Wednesday, 24 January 2018, 17:03 GMT
libclang is used for completion, not compilation. It is independent of whatever compiler you actually use to build the project.

I think flatpaks are supposed to be the primary distribution method for software made in Builder.
Comment by Christopher Davis (brainblasted) - Sunday, 14 April 2019, 19:27 GMT
> I think flatpaks are supposed to be the primary distribution method for software made in Builder.

Pretty much - flatpaks are a huge part of the workflow for GNOME apps,
and by default Builder generates and uses a flatpak build manifest in order
to build and run apps.
Comment by Balló György (City-busz) - Sunday, 14 April 2019, 21:10 GMT
But flatpak is not a requirement to run GNOME Builder itself. It's useful, but the IDE can be used without it.

There is another request to add flatpak-builder to optional dependencies:
https://bugs.archlinux.org/task/61933
Comment by Rich (rlees85) - Thursday, 02 September 2021, 14:47 GMT
Another vote for making optional dependencies optional. Would like to use builder without Flatpak having to be installed since I am never ever going to need/use it.
Comment by Jan Alexander Steffens (heftig) - Thursday, 02 September 2021, 20:10 GMT
I can make clang optional (libraries ['usr/lib/libclang.so.12'] needed in files ['usr/lib/gnome-builder-clang']) but not flatpak (libraries ['usr/lib/libflatpak.so.0'] needed in files ['usr/bin/gnome-builder']).
Comment by Emil (xexaxo) - Sunday, 30 January 2022, 20:22 GMT
Fwiw https://bugs.archlinux.org/task/72588 is a proposal to split the clang package in two - clang and clang-libs (akin to llvm).

So any package which depend on the library can pull `clang-libs`, *saving 300+MiB in bandwidth/disk storage from not installing compiler-rt, gcc, etc.

Edit: this is not a replacement of the initial issue, but it will mitigate the side-effects.
Comment by Balló György (City-busz) - Tuesday, 13 December 2022, 03:35 GMT
Currently the /usr/bin/gnome-builder binary is not linked to either of these packages. Instead:
- libclang.so.13 is linked in binary /usr/lib/gnome-builder-clang
- libflatpak.so.0 is linked in binary /usr/lib/gnome-builder-flatpak

So my original request is still valid. Please make clang and flatpak dependencies optional.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Emil (xexaxo) - Tuesday, 12 September 2023, 09:10 GMT
Bug report is still relevant. @heftig would you be interested in patches, are you split on the topic or is this a WONTFIX?

Thanks
Comment by Jan Alexander Steffens (heftig) - Tuesday, 12 September 2023, 13:20 GMT
Yeah, I'd be interested in patches. Is this more complicated than just extracting the two binaries?

Loading...