patches to dionaea to be able to build package on modern systems #343
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
this is bundle of patches to be able to build dionaea package on modern Linux distributions.
In my case tested on Fedora 40/41 (python 3.12+) and RHEL9 (python 3.9+)
dionaea-03_in6_pktinfo.patch
ipv6 structures in <netinet/in.h> are used by the <sys/socket.h> so it should be included first
ipv6 structures needs explicit CFLAGS " -D_GNU_SOURCE" to compile on linux - see dionaea-16_cmake_append_flags.patch
dionaea-15_pyeval_callobject.patch
The PyEval_CallObject API is obsolete in python 3.12, use PyObject_CallObject instead
dionaea-16_cmake_append_flags.patch
APPEND adds unwanted ";" character if there are already some CMAKE_C_FLAGS defined
dionaea-17_cmake_dirs.patch
Change handling of dirs to be able to configure/install to base system having
configuration in /etc/,
data files in /var
and rest in /usr,
while keeping the possibility to install to /opt/dionaea by default
dionaea-18_python_regex.patch
new versions of python 3.9+ require regex patterns defined as raw strings, otherwise report syntax error for unknown stirng escape sequence like \s
dionaea-19_setuptools.patch
Migrate setup.py form deprecated Distutils to setuptools.
Handle the building by cmake from setup.py template processed in cmake build directory.
Newer versions of setuptools complain about using absolute paths in setup.