openembedded / meta-openembedded

MIT License
416 stars 716 forks source link

Syntax error in python3-gevent: fix CVE-2023-41419 #761

Open IgorKha opened 1 year ago

IgorKha commented 1 year ago

Hello, a colon is missing in the patch code. Please fix it.

https://github.com/openembedded/meta-openembedded/blob/7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0/meta-python/recipes-devtools/python/python3-gevent/CVE-2023-41419.patch#L359

× gunicorn.service - gunicorn daemon (Web service loracross device)
     Loaded: loaded (/lib/systemd/system/gunicorn.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-11-06 12:46:43 UTC; 3h 29min ago
    Process: 192 ExecStart=/usr/bin/gunicorn (code=exited, status=1/FAILURE)
   Main PID: 192 (code=exited, status=1/FAILURE)

Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]:   File "/usr/lib/python3.10/site-packages/gunicorn/workers/ggevent.py", line 23, in <module>
Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]:     from gevent import hub, monkey, socket, pywsgi
Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]:   File "/usr/lib/python3.10/site-packages/gevent/pywsgi.py", line 1119
Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]:     except socket.error
Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]:                        ^
Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]: SyntaxError: expected ':'
Nov 06 12:46:42 napi-rk3308b-s gunicorn[192]: ]
Nov 06 12:46:43 napi-rk3308b-s systemd[1]: gunicorn.service: Main process exited, code=exited, status=1/FAILURE
Nov 06 12:46:43 napi-rk3308b-s systemd[1]: gunicorn.service: Failed with result 'exit-code'.
Nov 06 12:46:43 napi-rk3308b-s systemd[1]: Failed to start gunicorn daemon (Web service loracross device).

patch commit: https://github.com/openembedded/meta-openembedded/commit/6432fee6d04bec8573f1afcc5a9301899d05ac0f

akuster commented 1 year ago

can you send a patch?