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

patches to dionaea to be able to build package on modern systems #343

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

xambroz
Copy link
Contributor

@xambroz xambroz commented Aug 1, 2024

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.

xambroz added 6 commits July 31, 2024 16:34
…t should be included first

ipv6 structures needs explicit CFLAGS " -D_GNU_SOURCE" to compile on linux
…m having configuration in /etc/, data files in /var and rest in /usr, while keeping the possibility to install to /opt/dionaea by default
…, otherwise report syntax error for unknown stirng escape sequence like \s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant