]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Debian: update arches and versions in build dependencies
authorPeter Wu <peter@lekensteyn.nl>
Mon, 20 Jan 2020 20:43:13 +0000 (20:43 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Mon, 20 Jan 2020 21:25:26 +0000 (21:25 +0000)
* glib 2.28 is the current minimum declared in CMakeLists.txt, but even
  Jessie satisfies that requirement. Remove it.
* Use DEB_HOST_ARCH for "The Debian architecture of the host machine"
  instead of DEB_TARGET_ARCH which is relevant for cross-compiling only.
* Update luajit arches based on https://packages.debian.org/sid/luajit
  * Added arm64, mips64el, ppc64, ppc64el (stretch-backports / buster).
  * Removed kfreebsd-i386 and 32-bit powerpc (removed in Jessie).
  * Removed powerpcspe (unofficial port with outdated luajit).
  * Maintained mips (removed after buster).

debian/control
debian/rules

index ab2614cb2b1fd4b3faa6645d71720795b0647f76..2937770374db529d998b69f99e71fef8dee0c6e0 100644 (file)
@@ -5,17 +5,17 @@ Maintainer: Mikhail Gusarov <dottedmag@debian.org>
 Build-Depends: cmake,
                debhelper (>= 10),
                libcurl4-openssl-dev,
-               libglib2.0-dev (>= 2.16.0),
+               libglib2.0-dev,
                libhyperscan-dev [amd64 i386],
                libicu-dev,
                libjemalloc-dev,
-               libluajit-5.1-dev [amd64 armel armhf i386 kfreebsd-i386 mips mipsel powerpc powerpcspe] | liblua5.1-dev,
+               libluajit-5.1-dev [amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el] | liblua5.1-dev,
                libmagic-dev,
                libpcre2-dev,
                libsodium-dev,
                libsqlite3-dev,
                libssl-dev (>= 1.0),
-               libunwind-dev | libunwind8-dev,
+               libunwind-dev,
                perl,
                ragel,
                zlib1g-dev
index d78c8ee5afa37c9b3865e38e3ec5ec3700fb01db..dd1f27a1e6df4978df934e14aa677c99941f4054 100755 (executable)
@@ -7,7 +7,15 @@
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 export ASAN_OPTIONS=detect_leaks=0
 
-ifneq ($(filter $(DEB_TARGET_ARCH),amd64 i386),)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifneq ($(filter $(DEB_HOST_ARCH),amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el),)
+       ENABLE_LUAJIT := ON
+else
+       ENABLE_LUAJIT := OFF
+endif
+
+ifneq ($(filter $(DEB_HOST_ARCH),amd64 i386),)
        ENABLE_HYPERSCAN := -DENABLE_HYPERSCAN=ON
 else
        ENABLE_HYPERSCAN :=
@@ -27,7 +35,7 @@ override_dh_auto_configure:
                -DDEBIAN_BUILD=1 \
                -DENABLE_JEMALLOC=ON \
                -DENABLE_PCRE2=OFF \
-               -DENABLE_LUAJIT=ON \
+               -DENABLE_LUAJIT=$(ENABLE_LUAJIT) \
                -DENABLE_LIBUNWIND=ON \
                -DWANT_SYSTEMD_UNITS=ON \
                $(ENABLE_HYPERSCAN)