Date: Fri, 11 Jun 2021 14:54:35 GMT From: Brad Davis <brd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: faf4bc416a36 - main - security/snort: Pull in patches from pfsense/FreeBSD-ports to improve armv6/v7 Message-ID: <202106111454.15BEsZX0075028@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by brd (doc, src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=faf4bc416a364dc166dd4a495f4e9c157fae6bf3 commit faf4bc416a364dc166dd4a495f4e9c157fae6bf3 Author: Brad Davis <brd@FreeBSD.org> AuthorDate: 2021-06-11 14:46:11 +0000 Commit: Brad Davis <brd@FreeBSD.org> CommitDate: 2021-06-11 14:46:11 +0000 security/snort: Pull in patches from pfsense/FreeBSD-ports to improve armv6/v7 - avoid unaligned access to packet memory - disable compiler optimization Approved by: dvl (maintainer) Sponsored by: Rubicon Communications, LLC ("Netgate") --- security/snort/files/patch-configure | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/security/snort/files/patch-configure b/security/snort/files/patch-configure index 8466f280854d..55a5d82ed4ac 100644 --- a/security/snort/files/patch-configure +++ b/security/snort/files/patch-configure @@ -9,3 +9,35 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +@@ -17167,8 +17167,22 @@ else + enable_lzma="yes" + fi + ++# any armv6/7 platform has to have this one defined. ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for armv6/7" >&5 ++$as_echo_n "checking for armv6/v7... " >&6; } ++if eval "echo $host_cpu|grep -i 'armv[6|7]' >/dev/null"; then ++ NO_OPTIMIZE="yes" ++ ++$as_echo "#define WORDS_MUSTALIGN 1" >>confdefs.h + ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++fi + ++ + # Check whether --with-lzma_includes was given. + if test "${with_lzma_includes+set}" = set; then : + withval=$with_lzma_includes; with_lzma_includes="$withval" +@@ -18302,7 +18316,7 @@ fi + + # Set to no optimization regardless of what user or autostuff set + if test "x$NO_OPTIMIZE" = "xyes"; then +- CFLAGS=`echo $CFLAGS | sed -e "s/-O./-O0/"` ++ CFLAGS=`echo $CFLAGS | sed -e "s/-O\d/-O0/"` + + # in case user override doesn't include -O + if echo $CFLAGS | grep -qve -O0 ; then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106111454.15BEsZX0075028>