Bug 1216814 - /sbin/dhclient-script (dhcp-client) requires usleep (sysvinit-tools)
Summary: /sbin/dhclient-script (dhcp-client) requires usleep (sysvinit-tools)
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Network (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jorik Cronenberg
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-02 10:14 UTC by Petr Vorel
Modified: 2023-11-02 13:50 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Vorel 2023-11-02 10:14:50 UTC
I'm not sure if NetworkManager or wicked use /sbin/dhclient-script, but if we ship it, it should work. i.e. we should add dependency to sysvinit-tools, which contains usleep.

Found by LTP ltp_net_ipv6 tests which tries to use dhcpd and dnsmasq on IPv6 and use for that dhclient-script (not a realistic scenario):
http://quasar.suse.cz/tests/3065#step/dhcpd6/8
/sbin/dhclient-script: line 393: usleep: command not found

http://quasar.suse.cz/tests/3065#step/dnsmasq6/8
/sbin/dhclient-script: line 393: usleep: command not found
Comment 1 Thorsten Kukuk 2023-11-02 13:29:03 UTC
(In reply to Petr Vorel from comment #0)
> I'm not sure if NetworkManager or wicked use /sbin/dhclient-script

Nobody is using it, it's unsupported:

# Note:
#   It is used by sysconfig alias netcontrol alias ifup-dhcp,
#   but not by the NetworkManager that is using an own script.
#
#   Wicked is using an another dhcp client (runtime conflict).
#   As sysconfig-network is gone on sles12 and opensuse > 13.1,
#   this script is obsolete and unsupported.


> but if we ship it, it should work.

We should not ship scripts which are obsolete, unsupported and unused by our stack.
So it should be removed from dhcp-client package.

> i.e. we should add dependency to sysvinit-tools, which contains usleep.

This will not pass any review, as sysvinit-tools is clearly deprecated.
Comment 2 Petr Vorel 2023-11-02 13:32:07 UTC
(In reply to Thorsten Kukuk from comment #1)
> > but if we ship it, it should work.
> 
> We should not ship scripts which are obsolete, unsupported and unused by our
> stack.
> So it should be removed from dhcp-client package.

Thanks for feedback. It makes sense, I'll remove it.
Comment 3 Petr Vorel 2023-11-02 13:50:48 UTC
Replaced by https://bugzilla.suse.com/show_bug.cgi?id=1216822.

@Marius feel free to reopen this and close #1216822 if it should be kept.