Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libprelude: migrate to python3.13 #194889

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Formula/lib/libprelude.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class Libprelude < Formula

Check failure on line 1 in Formula/lib/libprelude.rb

View workflow job for this annotation

GitHub Actions / Linux

libprelude: livecheck error

curl: (6) Could not resolve host: www.prelude-siem.org

Check failure on line 1 in Formula/lib/libprelude.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

libprelude: livecheck error

curl: (6) Could not resolve host: www.prelude-siem.org

Check failure on line 1 in Formula/lib/libprelude.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

libprelude: livecheck error

curl: (6) Could not resolve host: www.prelude-siem.org
desc "Universal Security Information & Event Management (SIEM) system"
homepage "https://www.prelude-siem.org/"
url "https://www.prelude-siem.org/attachments/download/1395/libprelude-5.2.0.tar.gz"
mirror "http://deb.debian.org/debian/pool/main/libp/libprelude/libprelude_5.2.0.orig.tar.gz"
sha256 "187e025a5d51219810123575b32aa0b40037709a073a775bc3e5a65aa6d6a66e"
license "GPL-2.0-or-later"
revision 2
Expand All @@ -24,7 +25,7 @@
end

depends_on "pkg-config" => :build
depends_on "python@3.12" => [:build, :test]
depends_on "python@3.13" => [:build, :test]
depends_on "gnutls"
depends_on "libgpg-error"
depends_on "libtool"
Expand All @@ -37,10 +38,10 @@
end

def python3
"python3.12"
"python3.13"
end

def install

Check failure on line 44 in Formula/lib/libprelude.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle libprelude` failed on Linux!

| ^~~~~~~~~~~~~~~~~~~~ /home/linuxbrew/.linuxbrew/opt/[email protected]/include/python3.13/cpython/weakrefobject.h:45:45: note: declared here 45 | Py_DEPRECATED(3.13) static inline PyObject* PyWeakref_GET_OBJECT(PyObject *ref_obj) | ^~~~~~~~~~~~~~~~~~~~ _prelude.cxx: In function ‘void _cb_python_log(int, const char*)’: _prelude.cxx:4115:18: error: ‘PyEval_CallObject’ was not declared in this scope; did you mean ‘PyObject_CallObject’? 4115 | result = PyEval_CallObject(__prelude_log_func, arglist); | ^~~~~~~~~~~~~~~~~ | PyObject_CallObject _prelude.cxx: In function ‘int IDMEFValue_to_SWIG(PyObject*, const Prelude::IDMEFValue&, void*, PyObject**)’: _prelude.cxx:5920:58: warning: enum constant in boolean context [-Wint-in-bool-context] 5920 | else if ( t == IDMEF_DATA_TYPE_UINT32 || IDMEF_DATA_TYPE_INT ) | ^~~~~~~~~~~~~~~~~~~ _prelude.cxx: In function ‘PyObject* PyInit__prelude()’: _prelude.cxx:22379:26: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations] 22379 | PyArg_Parse(o, "et", Py_FileSystemDefaultEncoding, &argv[idx]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/linuxbrew/.linuxbrew/opt/[email protected]/include/python3.13/Python.h:99, from _prelude.cxx:188: /home/linuxbrew/.linuxbrew/opt/[email protected]/include/python3.13/fileobject.h:22:46: note: declared here 22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _prelude.cxx:986:64: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 986 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | ~~~~~~~~~~~~~~~~~~^~ _prelude.cxx:22811:3: note: in expansion of macro ‘SWIG_PYTHON_INITIALIZE_THREADS’ 22811 | SWIG_PYTHON_INITIALIZE_THREADS; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/linuxbrew/.linuxbrew/opt/[email protected]/include/python3.13/Python.h:124, from _prelude.cxx:188: /home/linuxbrew/.linuxbrew/opt/[email protected]/include/python3.13/ceval.h:114:37: note: declared here 114 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ error: command '/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++-11' failed with exit code 1 error: subprocess-exited-with-error × Building wheel for prelude (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/python3.13 /home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpa649jl_f cwd: /tmp/libprelude-20241018-5971-q1b3cp/libprelude-5.2.0/bindings/python Building wheel for prelude (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for prelude Failed to build prelude ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (prelude) ==> Formula Path: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lib/libprelude.rb ==> Configuration HOMEBREW_VERSION: 4.4.1-59-g9e9b514 ORIGIN: https://github.com/Homebrew/brew HEAD: 9e9b5143d7430b8c00e423737c4c21b3e1bda5b6 Last commit: 42 minutes ago Core tap HEAD: 3f85dd07800202f22a9fda969da048e7e0f7dbfd Core tap last commit: 6 minutes ago Core tap JSON: 18 Oct 18:09 UTC HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew HOMEBREW_BOOTSNAP: set HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBR

Check failure on line 44 in Formula/lib/libprelude.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle libprelude` failed on macOS Sequoia (15) on Apple Silicon!

45 | Py_DEPRECATED(3.13) static inline PyObject* PyWeakref_GET_OBJECT(PyObject *ref_obj) | ^ /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED' 251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) | ^ _prelude.cxx:4115:18: error: use of undeclared identifier 'PyEval_CallObject' 4115 | result = PyEval_CallObject(__prelude_log_func, arglist); | ^ _prelude.cxx:4759:11: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 4759 | sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here 274 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ _prelude.cxx:4775:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 4775 | sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here 274 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ _prelude.cxx:5115:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 5115 | sprintf(msg, "in sequence element %d ", (int)_index); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here 274 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ _prelude.cxx:5316:6: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]

Check failure on line 44 in Formula/lib/libprelude.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle libprelude` failed on macOS Sonoma (14) on Apple Silicon!

Py_DEPRECATED(3.13) static inline PyObject* PyWeakref_GET_OBJECT(PyObject *ref_obj) ^ /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ _prelude.cxx:4115:18: error: use of undeclared identifier 'PyEval_CallObject' result = PyEval_CallObject(__prelude_log_func, arglist); ^ _prelude.cxx:4759:11: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ _prelude.cxx:4775:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ _prelude.cxx:5115:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] sprintf(msg, "in sequence element %d ", (int)_index); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ _prelude.cxx:5316:6: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] sprintf(msg, "in sequence element %d", (int)i); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been expli
# Work-around for build issue with Xcode 15.3
ENV.append_to_cflags "-Wno-int-conversion" if DevelopmentTools.clang_build_version >= 1500

Expand Down
Loading