Skip to content

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

Open
xambroz wants to merge 6 commits intoDinoTools:masterfrom
xambroz:fedora_package
Open

patches to dionaea to be able to build package on modern systems#343
xambroz wants to merge 6 commits intoDinoTools:masterfrom
xambroz:fedora_package

Conversation

@xambroz
Copy link
Copy Markdown
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