lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175406907667.1475083.1184937311863486488.b4-ty@kernel.org>
Date: Fri, 01 Aug 2025 10:24:36 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Adrian Hunter <adrian.hunter@...el.com>, 
 Ian Rogers <irogers@...gle.com>, James Clark <james.clark@...aro.org>, 
 Jiri Olsa <jolsa@...nel.org>, Kan Liang <kan.liang@...ux.intel.com>, 
 Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, 
 linux-perf-users@...r.kernel.org
Subject: Re: [PATCH 1/1 v6.17] perf python: Stop using deprecated
 PyUnicode_AsString()

On Wed, 30 Jul 2025 10:34:20 -0300, Arnaldo Carvalho de Melo wrote:
> As noticed while building for Fedora 43:
> 
>     GEN     /tmp/build/perf/python/perf.cpython-314-x86_64-linux-gnu.so
>   /git/perf-6.16.0-rc3/tools/perf/util/python.c: In function ‘get_tracepoint_field’:
>   /git/perf-6.16.0-rc3/tools/perf/util/python.c:340:9: error: ‘_PyUnicode_AsString’ is deprecated [-Werror=deprecated-declarations]
>     340 |         const char *str = _PyUnicode_AsString(PyObject_Str(attr_name));
>         |         ^~~~~
>   In file included from /usr/include/python3.14/unicodeobject.h:1022,
>                    from /usr/include/python3.14/Python.h:89,
>                    from /git/perf-6.16.0-rc3/tools/perf/util/python.c:2:
>   /usr/include/python3.14/cpython/unicodeobject.h:648:1: note: declared here
>     648 | _PyUnicode_AsString(PyObject *unicode)
>         | ^~~~~~~~~~~~~~~~~~~
>   cc1: all warnings being treated as errors
>   error: command '/usr/bin/gcc' failed with exit code 1
> 
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ