FS#63753 - [dhclient] run-parts should be in dependencies

Attached to Project: Arch Linux
Opened by Makoto Mizukami (makotom) - Saturday, 14 September 2019, 05:33 GMT
Last edited by Christian Hesse (eworm) - Saturday, 22 February 2020, 19:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
`/usr/sbin/dhclient-script` calls `run-parts` at line 154. (cf. https://source.isc.org/cgi-bin/gitweb.cgi?p=dhcp.git;a=blob_plain;f=client/scripts/linux;hb=HEAD)
However, `run-parts` would not be installed along with `dhclient`, because it is not marked as required.
Therefore, placing a script under `/etc/dhclient-enter-hooks.d` yields an error message saying `/sbin/dhclient-script: line 154: run-parts: command not found`, unless `run-parts` is installed individually.

Additional info:
* package version(s)
dhclient 4.4.1-4 (at the time of this writing)

This is an issue of dependency specification in PKGBUILD.

Steps to reproduce:
You can confirm that `run-parts` is indeed required by following the steps below:

1. `mkdir /etc/dhclient-enter-hooks.d` (if there is no one)
2. Place an executable script under the directory and make sure that `chmod +x` is applied on it.
3. Run `dhclient` accordingly.

Actual result:
You will get an error message saying `/sbin/dhclient-script: line 154: run-parts: command not found` and the script placed under `/etc/dhclient-enter-hooks.d` will not be executed.

Expected result:
The script in `/etc/dhclient-enter-hooks.d` will be executed without error messages.
This task depends upon

Closed by  Christian Hesse (eworm)
Saturday, 22 February 2020, 19:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  dhcp 4.4.2-2

Loading...