FS#45887 - [namcap] False dependency not needed - Package includes systemd .service and udev/rules.d files

Attached to Project: Arch Linux
Opened by James Harvey (jamespharvey20) - Tuesday, 04 August 2015, 00:55 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 20 April 2017, 17:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

On AUR4/rdma:

Checking PKGBUILD
Checking rdma-3.01-1-any.pkg.tar.xz
rdma W: Dependency included and not needed ('systemd')

But, rdma installs /usr/lib/systemd/system/rdma.service, which requires systemd.

It also installs /usr/lib/udev/rules.d/{70-persistent-ipoib.rules,98-rdma.rules}, which require systemd.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Thursday, 20 April 2017, 17:51 GMT
Reason for closing:  Not a bug
Additional comments about closing:  systemd is not a required dependency since that's the only init system provided with Arch Linux.

Comment by Kyle Keen (keenerd) - Tuesday, 04 August 2015, 03:00 GMT
Merely including a service file does not mean you depend on systemd, no more than having a text file means you need to depend on 'cat'.
Comment by Samantha McVey (samcv) - Thursday, 09 June 2016, 06:22 GMT
Is this actually a problem with namcap though? Since there are plenty of packages that include .service files and/or files for classical sysv like init systems yet may not rely on them, I don't think namcap should declare systemd a needed dependency solely based on having a .service file or a systemd requiring udev .rules file.
I think you were correct in including systemd as a required package for your set of scripts because they require systemd. Someone correct me if I am wrong but I think namcap's behavior is the correct behavior we want.
Comment by Jelle van der Waa (jelly) - Thursday, 20 April 2017, 17:51 GMT
systemd is not a required dependency since that's the only init system provided with Arch Linux.

Loading...