[LU-17160] Provide an alternative for Py_SetProgramName() being deprecated. Created: 30/Sep/23 Updated: 10/Jan/24 Resolved: 10/Jan/24 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Shaun Tancheff | Assignee: | Shaun Tancheff |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Hit this building the client for Debian 12 lutf_python.c: In function ‘python_init’:
lutf_python.c:216:9: error: ‘Py_SetProgramName’ is deprecated [-Werror=deprecated-declarations]
216 | Py_SetProgramName(program);
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:94,
from lutf_python.c:1:
/usr/include/python3.11/pylifecycle.h:37:38: note: declared here
37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
|
| Comments |
| Comment by Gerrit Updater [ 30/Sep/23 ] |
|
"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52558 |
| Comment by Gerrit Updater [ 10/Jan/24 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52558/ |
| Comment by Peter Jones [ 10/Jan/24 ] |
|
Merged for 2.16 |