From 06d4dfe415caa685656e6cdc30596440ee93ea89 Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Tue, 28 Jun 2016 16:08:21 +0200 Subject: [PATCH] davfs2: No forced stack protector davfs2 had hardcoded value for stack protector. If stack protector is disabled in toolchain, it would break the build. Disabling the hardcoded value, counting on settings in cross-build system. Signed-off-by: Michal Hrusecky [bump PKG_RELEASE] Signed-off-by: Etienne CHAMPETIER --- net/davfs2/Makefile | 2 +- .../200-davfs2-1.5.4-no-forced-stack-protector.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 net/davfs2/patches/200-davfs2-1.5.4-no-forced-stack-protector.patch diff --git a/net/davfs2/Makefile b/net/davfs2/Makefile index b4eb0eb797..4e1f09277b 100644 --- a/net/davfs2/Makefile +++ b/net/davfs2/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=davfs2 PKG_VERSION:=1.5.4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/davfs2/ diff --git a/net/davfs2/patches/200-davfs2-1.5.4-no-forced-stack-protector.patch b/net/davfs2/patches/200-davfs2-1.5.4-no-forced-stack-protector.patch new file mode 100644 index 0000000000..f581e05322 --- /dev/null +++ b/net/davfs2/patches/200-davfs2-1.5.4-no-forced-stack-protector.patch @@ -0,0 +1,12 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -32,8 +32,7 @@ mount_davfs_SOURCES = cache.c dav_coda.c + kernel_interface.h mount_davfs.h webdav.h + umount_davfs_SOURCES = umount_davfs.c defaults.h + +-AM_CFLAGS = -Wall -Werror=format-security \ +- -fstack-protector-strong --param=ssp-buffer-size=4 ++AM_CFLAGS = -Wall -Werror=format-security + DEFS = -DPROGRAM_NAME=\"mount.davfs\" \ + -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \ + -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \ -- 2.30.2