File ipv6_dhcpcd.patch of Package wicd

--- wicd/wnettools.py.orig	2020-08-19 14:00:00.000000000 +0200
+++ wicd/wnettools.py	2023-01-03 10:02:41.629890652 +0100
@@ -392,8 +394,14 @@
             # set up (optional) extra arguments to the dhcp client,
             # used for disabling the resolv.conf update of dhcpd
             extra_args = ""
-            if staticdns and client_name == "dhcpcd":
-                extra_args = "--nohook resolv.conf"
+            if client_name == "dhcpcd":
+                # although we now also check for IPv6 (via ip_pattern_ipv6)
+                # better always wait for an IPv4 address before forking to
+                # background: that makes wicd not continue until we already
+                # have a valid IPv4 address
+                extra_args = "--waitip=4"
+                if staticdns:
+                    extra_args = extra_args+" --nohook resolv.conf"
 
             if hostname:
                 return client_dict[client_name]['connect_with_hostname'] % \
openSUSE Build Service is sponsored by