perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / werkzeug / patches / 01-sunos5.patch
blob2cc832f3de2b2993d755b20f41f605f2ee885826
1 https://github.com/pallets/werkzeug/pull/2773
3 --- werkzeug-3.1.3/src/werkzeug/debug/__init__.py.orig
4 +++ werkzeug-3.1.3/src/werkzeug/debug/__init__.py
5 @@ -120,6 +120,15 @@
6 except OSError:
7 pass
9 + # On illumos and Solaris use the hostid(1) tool.
10 + if sys.platform == "sunos5":
11 + from subprocess import Popen, PIPE
12 + hostid = Popen(
13 + ["/usr/bin/hostid"], stdout=PIPE
14 + ).communicate()[0]
15 + if hostid is not "":
16 + return hostid
18 return None
20 _machine_id = _generate()