FS#77273 - [btrfs-progs] Missing dependency: systemd-libs

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Friday, 27 January 2023, 02:41 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 26 March 2023, 03:02 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Please add systemd-libs to depends=() of btrfs-progs.

btrfs-progs E: Dependency systemd-libs detected and not included (libraries ['usr/lib/libudev.so.1'] needed in files ['usr/bin/btrfs-select-super', 'usr/bin/btrfs-image', 'usr/bin/btrfstune', 'usr/bin/btrfs-find-root', 'usr/bin/btrfs-convert', 'usr/bin/mkfs.btrfs', 'usr/bin/btrfs-map-logical', 'usr/bin/btrfs'])
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Sunday, 26 March 2023, 03:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  btrfs-progs-6.2.2-1
Comment by Allan McRae (Allan) - Friday, 27 January 2023, 03:18 GMT
This is already covered by the expectation that the "base" package is installed. Current Arch packaging policy is that such packages do not need specified as dependencies.
Comment by Balló György (City-busz) - Friday, 27 January 2023, 04:13 GMT
What do you mean by "Arch packaging policy"? There is no mention about "base" package in the Arch package guidelines:
https://wiki.archlinux.org/title/Arch_package_guidelines
Comment by Toolybird (Toolybird) - Friday, 27 January 2023, 19:38 GMT
My 2 cents. Yeah, it's unclear. Namcap output is useful...but at times it spits out some clearly bogus stuff. Because of this lack of clarity, there seems to be differing viewpoints within the Arch maintainer community.

My personal view: there are "deps", and then there are "lib deps". 2 separate things. (makedeps is a whole separate can of worms).

The "lib deps" situation is pretty clear and well documented [1][2]. Transitive dependencies should be avoided (IME namcap doesn't do well here). But there is 1 caveat...I personally draw the line at glibc. Listing glibc everywhere just seems like overkill.

The "deps" in "base" situation is less clear. I agree in principle with the sentiment raised by Allan, but the details really need to be agreed upon and formally documented.

[1] https://wiki.archlinux.org/title/Arch_package_guidelines#Package_dependencies
[2] https://wiki.archlinux.org/title/PKGBUILD#Dependencies
Comment by Sébastien Luttringer (seblu) - Sunday, 26 March 2023, 03:02 GMT
I agree, transitive deps should be avoided. I can't imagine an arch setup without glibc, but for consistency I always reference glibc.

Loading...