[arch-commits] Commit in atftp/trunk (PKGBUILD atftp-0.7-cflags.patch)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 7 00:11:35 UTC 2016


    Date: Monday, November 7, 2016 @ 00:11:34
  Author: foutrelis
Revision: 194828

Fix build with GCC 5.1

Added:
  atftp/trunk/atftp-0.7-cflags.patch
Modified:
  atftp/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   10 ++++++++++
 atftp-0.7-cflags.patch |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-07 00:01:32 UTC (rev 194827)
+++ PKGBUILD	2016-11-07 00:11:34 UTC (rev 194828)
@@ -11,14 +11,24 @@
 depends=(pcre readline)
 backup=(etc/conf.d/atftpd)
 source=(http://downloads.sf.net/sourceforge/atftp/atftp-$pkgver.tar.gz
+        atftp-0.7-cflags.patch
         atftpd.service
         atftpd.conf)
 sha1sums=('fc9e9f821dfd2f257b4a5c32b948ed60b4e31fd1'
+          'a6aaa9965284977efb41cfd28a76edf904c069ab'
           'fb6a7a03aa2d37caf4202e152d84a18dd20e30f3'
           '0ee061597778d0ca850f053d0e3d9157e3376e79')
 
+prepare() {
+  cd atftp-$pkgver
+  # Respect our CFLAGS; needed below for building with -std=gnu89
+  patch -Np1 -i ../atftp-0.7-cflags.patch
+  autoreconf -vi
+}
+
 build() {
   cd atftp-$pkgver
+  CFLAGS+=' -std=gnu89'
   ./configure --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin \
               --enable-libreadline --disable-libwrap
   make

Added: atftp-0.7-cflags.patch
===================================================================
--- atftp-0.7-cflags.patch	                        (rev 0)
+++ atftp-0.7-cflags.patch	2016-11-07 00:11:34 UTC (rev 194828)
@@ -0,0 +1,32 @@
+--- atftp-0.7/configure.ac
++++ atftp-0.7/configure.ac
+@@ -66,29 +66,6 @@
+ dnl Check for AIX
+ AC_AIX
+ 
+-CFLAGS="-g -Wall -D_REENTRANT"
+-
+-if test x$debug = xtrue; then
+-   CFLAGS="$CFLAGS -O0 -DDEBUG"
+-else
+-  if test -n "$auto_cflags"; then
+-    if test -n "$GCC"; then
+-      CFLAGS="$CFLAGS -g -O2 -Wall -Wno-implicit"
+-    else
+-      case "$host_os" in
+-        *hpux*)  CFLAGS="$CFLAGS +O3"
+-	  ;;
+-        *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000"
+-	  ;;
+-        *)       CFLAGS="$CFLAGS -O2"
+-	  ;;
+-      esac
+-    fi
+-  else
+-    CFLAGS="$CFLAGS -O2"
+-  fi
+-fi
+-
+ AC_PROG_MAKE_SET
+ AC_PROG_INSTALL
+ 



More information about the arch-commits mailing list