rspamd icon indicating copy to clipboard operation
rspamd copied to clipboard

[BUG] [build-related] `debian/control` is missing dependency `libhyperscan-dev`

Open m-ueberall opened this issue 2 years ago • 1 comments
trafficstars

Prerequisites

  • [X] Put an X between the brackets on this line if you have done all of the following:
    • Read about bug reporting in general: https://rspamd.com/doc/faq.html#how-to-report-bugs-found-in-rspamd
    • Enabled relevant debugging logs: https://rspamd.com/doc/faq.html#how-to-debug-some-module-in-rspamd
    • Checked the FAQs about Core files in case of fatal crash: https://rspamd.com/doc/faq.html#how-to-figure-out-why-rspamd-process-crashed
    • Tried ASAN package and obtained the ASAN report (if possible): https://rspamd.com/doc/faq.html#asan-builds
    • Checked that your issue isn't already filed: https://github.com/issues?utf8=%E2%9C%93&q=is%3Aissue+user%3Arspamd
    • Checked that there is not already an experimental package or master branch

Describe the bug Missing dependency: When trying to (re)build rspamd in a clean environment, the required hyperscan library cannot be found. Adding libhyperscan-dev to Build-Depends: in debian/control fixes this.

Steps to Reproduce

# apt-get source rspamd
[...]
# dpkg-buildpackage -us -uc -ui -F
[...]
-- Checking for one of the modules 'libhs'
CMake Error at cmake/ProcessPackage.cmake:71 (MESSAGE):
  Cannot find library hs for package HYPERSCAN
Call Stack (most recent call first):
  cmake/Hyperscan.cmake:4 (ProcessPackage)
  CMakeLists.txt:252 (include)


-- Configuring incomplete, errors occurred!
make[1]: *** [debian/rules:31: configure_release] Error 1
make[1]: Leaving directory '/build/packages/deb-rebuild.wpZH9VKl/rspamd-3.7.3'
make: *** [debian/rules:26: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Expected behavior All required dependencies are listed in debian/control and the (re)build succeeds.

Versions

OS: Ubuntu 20.04 LTS/22.04 LTS Tested rspamd versions: 3.7.1, 3.7.3

m-ueberall avatar Oct 27 '23 13:10 m-ueberall

The reason for it is because we intend to use vectorscan on ARM as a static library. It might be easily remedied some time in the future when vectorscan would be packaged by all supported Debian-alikes given those versions would be usable.

fatalbanana avatar Dec 18 '23 15:12 fatalbanana