author | Evangelos Foutras
<foutrelis@archlinux.org> 2013-10-21 15:48:13 UTC |
committer | Evangelos Foutras
<foutrelis@archlinux.org> 2013-10-21 15:48:13 UTC |
parent | cef615c944e60d48616b4f6df49df5c3cfb65000 |
PKGBUILD | +11 | -4 |
xfce4-dev-tools-4.10.0-remove-FORTIFY_SOURCE-2.patch | +22 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 47c2e6b..7916e78 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,15 +4,22 @@ pkgname=xfce4-dev-tools pkgver=4.10.0 -pkgrel=1 +pkgrel=2 pkgdesc="Xfce developer tools" arch=('i686' 'x86_64') url="http://www.xfce.org/" license=('GPL2') depends=('gtk-doc' 'automake' 'make' 'intltool' 'pkg-config') -options=('!libtool') -source=(http://archive.xfce.org/src/xfce/xfce4-dev-tools/${pkgver%.*}/$pkgname-$pkgver.tar.bz2) -sha256sums=('f79649bbfbbf16881494ee9f67035063765aec12e23ab9bac31de2c8a4f32bf8') +source=(http://archive.xfce.org/src/xfce/xfce4-dev-tools/${pkgver%.*}/$pkgname-$pkgver.tar.bz2 + xfce4-dev-tools-4.10.0-remove-FORTIFY_SOURCE-2.patch) +sha256sums=('f79649bbfbbf16881494ee9f67035063765aec12e23ab9bac31de2c8a4f32bf8' + '4ecfdf8cdb0940ce1044349bdb6646192dffd2b7f4e890f0ef5f00bfdfad7676') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + patch -Np1 -i "$srcdir/xfce4-dev-tools-4.10.0-remove-FORTIFY_SOURCE-2.patch" +} build() { cd "$srcdir/$pkgname-$pkgver" diff --git a/xfce4-dev-tools-4.10.0-remove-FORTIFY_SOURCE-2.patch b/xfce4-dev-tools-4.10.0-remove-FORTIFY_SOURCE-2.patch new file mode 100644 index 0000000..1c9fb4e --- /dev/null +++ b/xfce4-dev-tools-4.10.0-remove-FORTIFY_SOURCE-2.patch @@ -0,0 +1,22 @@ +From 236a0c578369bfc726f7d9a830975cbeaefbfee5 Mon Sep 17 00:00:00 2001 +From: Nick Schermer <nick@xfce.org> +Date: Mon, 23 Jul 2012 15:31:48 +0000 +Subject: Remove FORTIFY_SOURCE=2. + +This gives warnings with full debug builds on recent gcc versions. +--- +diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4 +index c5f5583..f258822 100644 +--- a/m4macros/xdt-features.m4 ++++ b/m4macros/xdt-features.m4 +@@ -79,7 +79,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]), + -Wcast-align -Wformat-security \ + -Winit-self -Wmissing-include-dirs -Wundef \ + -Wmissing-format-attribute -Wnested-externs" +- CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" ++ CPPFLAGS="$CPPFLAGS" + + if test x`uname` = x"Linux"; then + xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector" +-- +cgit v0.9.2