]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Enable libunwind in packages
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jun 2018 09:17:11 +0000 (10:17 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jun 2018 09:17:11 +0000 (10:17 +0100)
centos/rspamd.spec
debian/control
debian/rules

index b16e070deee25f4889618bd2d1c19bf7432ef215..d2b49308515822575ac3be5d6cd464ca661fa7d2 100644 (file)
@@ -16,7 +16,7 @@ License:        ASL 2.0
 URL:            https://rspamd.com
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}
 BuildRequires:  glib2-devel,libevent-devel,openssl-devel,pcre-devel
-BuildRequires:  cmake,gmime-devel,file-devel,ragel
+BuildRequires:  cmake,gmime-devel,file-devel,ragel,libunwind-devel
 %if 0%{?el6}
 BuildRequires: perl
 %else
@@ -81,11 +81,10 @@ lua.
         -DCMAKE_SKIP_INSTALL_RPATH=ON \
 %endif
 %if 0%{?fedora_version} >= 22 || 0%{?suse_version} >= 1320
-               -DENABLE_LUAJIT=ON \
+        -DENABLE_LUAJIT=ON \
 %else
-               -DENABLE_LUAJIT=OFF \
+        -DENABLE_LUAJIT=OFF \
 %endif
-               -DENABLE_HIREDIS=ON \
         -DLOGDIR=%{_localstatedir}/log/rspamd \
         -DEXAMPLESDIR=%{_datadir}/examples/rspamd \
         -DPLUGINSDIR=%{_datadir}/rspamd \
@@ -94,7 +93,8 @@ lua.
         -DNO_SHARED=ON \
         -DDEBIAN_BUILD=1 \
         -DRSPAMD_GROUP=%{rspamd_group} \
-        -DRSPAMD_USER=%{rspamd_user}
+        -DRSPAMD_USER=%{rspamd_user} \
+        -DENABLE_LIBUNWIND=ON
 
 %{__make} %{?jobs:-j%jobs}
 
index 5b96937235ed9616540c56698d8b61a2a00fafc5..66303d91bc9762ceddb0f1ddba53d8c28112b861 100644 (file)
@@ -2,7 +2,7 @@ Source: rspamd
 Section: mail
 Priority: extra
 Maintainer: Mikhail Gusarov <dottedmag@debian.org>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cmake, libevent-dev (>= 1.3), libglib2.0-dev (>= 2.16.0), libluajit-5.1-dev [amd64 armel armhf i386 kfreebsd-i386 mips mipsel powerpc powerpcspe] | liblua5.1-dev, libpcre3-dev, libssl-dev (>= 1.0), libcurl4-openssl-dev, libsqlite3-dev, libmagic-dev, perl, dh-systemd, libjemalloc-dev, ragel, libicu-dev, zlib1g-dev
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cmake, libevent-dev (>= 1.3), libglib2.0-dev (>= 2.16.0), libluajit-5.1-dev [amd64 armel armhf i386 kfreebsd-i386 mips mipsel powerpc powerpcspe] | liblua5.1-dev, libpcre3-dev, libssl-dev (>= 1.0), libcurl4-openssl-dev, libsqlite3-dev, libmagic-dev, perl, dh-systemd, libjemalloc-dev, ragel, libicu-dev, zlib1g-dev, libunwind-dev
 Standards-Version: 3.9.6
 Homepage: https://rspamd.com
 Vcs-Git: git://github.com/vstakhov/rspamd.git
index c958a26ea805369dce04fafef203e35abd333878..a51894f38da46512a50b949190734d7d1d1717f8 100755 (executable)
@@ -30,6 +30,7 @@ override_dh_auto_configure:
                -DENABLE_HIREDIS=ON \
                -DENABLE_LUAJIT=ON \
                -DENABLE_TORCH=ON \
+               -DENABLE_LIBUNWIND=ON \
                -DWANT_SYSTEMD_UNITS=ON
 
 override_dh_makeshlibs: