Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-17160

Provide an alternative for Py_SetProgramName() being deprecated.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 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
      

      Attachments

        Activity

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: