Fedora Account System
Red Hat Associate
Red Hat Customer
vapoursynth fails to build with Python 3.16.0a2. In file included from ../src/vsscript/vsscript.cpp:24: ../include/cython/vapoursynth_api.h:26:17: error: ‘Py_SetProgramName’ was not declared in this scope 26 | static decltype(Py_SetProgramName) *p_Py_SetProgramName = nullptr; | ^~~~~~~~~~~~~~~~~ ../include/cython/vapoursynth_api.h:26:17: error: ‘Py_SetProgramName’ was not declared in this scope ../src/vsscript/vsscript.cpp: In function ‘std::pair<std::filesystem::__cxx11::path, std::filesystem::__cxx11::path> readEnvConfig(const std::filesystem::__cxx11::path&)’: ../src/vsscript/vsscript.cpp:155:41: warning: ‘std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = std::__cxx11::basic_string<char>; _Require = path; _CharT = char]’ is deprecated: use 'path((const char8_t*)&*source)' instead [-Wdeprecated-declarations] ../src/vsscript/vsscript.cpp: In function ‘void realInit()’: ../src/vsscript/vsscript.cpp:206:53: error: ‘Py_SetProgramName’ was not declared in this scope; did you mean ‘p_Py_SetProgramName’? 206 | p_Py_SetProgramName = reinterpret_cast<decltype(Py_SetProgramName) *>(GET_FUNCTION_ADDRESS(libraryHandle, "Py_SetProgramName")); | ^~~~~~~~~~~~~~~~~ | p_Py_SetProgramName ../src/vsscript/vsscript.cpp:206:72: error: expected ‘>’ before ‘*’ token 206 | p_Py_SetProgramName = reinterpret_cast<decltype(Py_SetProgramName) *>(GET_FUNCTION_ADDRESS(libraryHandle, "Py_SetProgramName")); | ^ ../src/vsscript/vsscript.cpp:217:28: error: ‘p_Py_SetProgramName’ cannot be used as a function 217 | p_Py_SetProgramName(pythonExePath.wstring().c_str()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/vsscript/vsscript.cpp:180:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 180 | system("vapoursynth config >/dev/null 2>&1"); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://docs.python.org/3.16/whatsnew/3.16.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359743-vapoursynth/ For all our attempts to build vapoursynth with Python 3.16, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/vapoursynth/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.16: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/ Let us know here if you have any questions. Python 3.16 is planned to be included in Fedora 47. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.