FS#76959 - [libsysprof-capture] Unneeded dependency of other packages

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Thursday, 29 December 2022, 15:40 GMT
Last edited by Toolybird (Toolybird) - Saturday, 25 February 2023, 20:57 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

This package is built as a static library only, therefore it shouldn't be needed on runtime, just for the build:
/usr/lib/libsysprof-capture-4.a

Please move libsysprof-capture from depends=() to makedepends=() in all dependent packages:
- gjs
- glib2
- gnome-software
- libsoup
- libsoup3
- mutter
- sysprof
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 25 February 2023, 20:57 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Reporter says "Headers of libsysprof-capture are needed by pkg-config to build any dependent packages."
Comment by Jan Alexander Steffens (heftig) - Friday, 30 December 2022, 01:41 GMT
It is required for pkg-config to work. I'd rather not have to add it to makedepends on every downstream package.
Comment by Balló György (City-busz) - Friday, 30 December 2022, 03:42 GMT
Oh, I didn't know that. It's strange that `pkg-config --cflags glib-2.0` tries to return cflags from Requires.private even if it's needed only for static linking.

References:
https://github.com/mesonbuild/meson/issues/3970
https://gitlab.gnome.org/GNOME/gnome-build-meta/-/commit/c2d6eb0532db04385a1072ccad0afa6315896482

In this case the sysprof package must be moved to the [core] repository or libsysprof-capture must be built separately, because it breaks the repository hiearachy. Currently the base metapackage cannot be installed exclusively from [core], because libsysprof-capture is in [extra].
Comment by Balló György (City-busz) - Saturday, 25 February 2023, 18:49 GMT
Since it's a very special case, and libsysprof-capture package is small, it's fine for me. The repo hierarchy problem is a different issue, probably we need a TODO list for that.

Loading...