Bug#981720: eventlet: doc build fails when no resolv.conf

2021-02-18 Thread Thomas Goirand
On 2/17/21 6:11 PM, Ritesh Raj Sarraf wrote:
> Package: python-eventlet
> Followup-For: Bug #981720
> 
> Would you consider the attached patch ? I don't know of its side-effects
> but applying the patch does make it build successfully in all build
> environments.

Hi Ritesh,

Thanks for this. I got the inspiration from it, and simply used a
convenient copy of greendns.py in the debian folder with your patch,
which I'm copying before building the doc. This way, I'm not touching
the runtime file!

Cheers,

Thomas Goirand (zigo)



Bug#981720: eventlet: doc build fails when no resolv.conf

2021-02-17 Thread Ritesh Raj Sarraf
Package: python-eventlet
Followup-For: Bug #981720

Would you consider the attached patch ? I don't know of its side-effects
but applying the patch does make it build successfully in all build
environments.




-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (990, 'testing'), (500, 'stable-updates'), 
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python-eventlet depends on:
ii  netbase  6.2
pn  python   
pn  python-enum34
pn  python-greenlet  

python-eventlet recommends no packages.

Versions of packages python-eventlet suggests:
pn  python-eventlet-doc  
/etc/resolv.conf may not be available in all build environments
--- a/eventlet/support/greendns.py
+++ b/eventlet/support/greendns.py
@@ -309,7 +309,7 @@
 use the hosts file.
 """
 
-def __init__(self, hosts_resolver=None, filename='/etc/resolv.conf'):
+def __init__(self, hosts_resolver=None, filename=None):
 """Initialise the resolver proxy
 
 :param hosts_resolver: An instance of HostsResolver to use.