pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/xemacs On progressive Linuxen (Arch here), CPP...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a1f2f49c484d
branches: trunk
changeset: 327092:a1f2f49c484d
user: hauke <hauke%pkgsrc.org@localhost>
date: Thu Dec 20 15:26:31 2018 +0000
description:
On progressive Linuxen (Arch here), CPPFLAGS pre-filled with
-D_FORTIFY_SOURCE=2 -Werror will make configure tests fail on
pre-processor warnings, and break the build. Make sure we set CPP to
something that works.
This patch should go upstream into configure.in, but it is really the
autoconf AC_PROG_CPP macro definition that needs to be amended.
diffstat:
editors/xemacs/distinfo | 3 +-
editors/xemacs/patches/patch-configure | 43 ++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 1 deletions(-)
diffs (63 lines):
diff -r 1b94a055c9fc -r a1f2f49c484d editors/xemacs/distinfo
--- a/editors/xemacs/distinfo Thu Dec 20 13:33:37 2018 +0000
+++ b/editors/xemacs/distinfo Thu Dec 20 15:26:31 2018 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.27 2017/01/24 20:31:14 hauke Exp $
+$NetBSD: distinfo,v 1.28 2018/12/20 15:26:31 hauke Exp $
SHA1 (xemacs/xemacs-21.4.24.tar.gz) = e9ff7693adbef333b78f51b4dfdddd296bad0fcc
RMD160 (xemacs/xemacs-21.4.24.tar.gz) = 0e01971c0dd47d9dd401d02e508edf241208969b
SHA512 (xemacs/xemacs-21.4.24.tar.gz) = b7a88d5a4a9f74f74c2067ed60f7ea87ac8ccad5d9c2c1033ecf07f540250191f8fa5f9e6d23d9fedd0f2ab1eb5ea6c29a7665a310ec512d85e2e4f337447213
Size (xemacs/xemacs-21.4.24.tar.gz) = 8543879 bytes
SHA1 (patch-Makefile.in.in) = a65cf383a343bb582f6950a28c4e7219e3dd22e7
+SHA1 (patch-configure) = 10ae7a19ada6321996d9f57b8129ee91c326ac72
SHA1 (patch-lib-src_Makefile.in.in) = 5e11bf2904145804f521fed0ef956da94e5f21bd
SHA1 (patch-lisp_gui.el) = 686bc5a7c4bf6e3c4f010dba22aee109d94f6cb3
SHA1 (patch-lwlib_Makefile.in.in) = 97fcf6de4299dfd5ba7a9827ee88bc037df0491e
diff -r 1b94a055c9fc -r a1f2f49c484d editors/xemacs/patches/patch-configure
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xemacs/patches/patch-configure Thu Dec 20 15:26:31 2018 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-configure,v 1.3 2018/12/20 15:26:31 hauke Exp $
+
+On progressive Linuxen (Arch here), CPPFLAGS pre-filled with
+-D_FORTIFY_SOURCE=2 -Werror will make configure tests fail on
+pre-processor warnings. Make sure we set CPP to something that works.
+
+This patch should go upstream into configure.in, but it is really the
+autoconf AC_PROG_CPP macro definition that needs to be amended.
+
+--- configure.orig 2015-03-25 11:25:33.000000000 +0000
++++ configure
+@@ -2362,10 +2362,31 @@ else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
++ # Some Linuxen (Arch) define _FORTIFY_SOURCE in CPPFLAGS together
++ # with -Werror. Make sure the warnings do not disrupt feature tests.
++ CPP="${CC-cc} -E -Wno-cpp"
++ cat > conftest.$ac_ext <<EOF
++#line 2370 "configure"
++#include "confdefs.h"
++#include <assert.h>
++Syntax Error
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:2376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++ac_err=`grep -v '^ *+' conftest.out`
++if test -z "$ac_err"; then
++ :
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
+ CPP=/lib/cpp
+ fi
+ rm -f conftest*
+ fi
++rm -f conftest*
++fi
+ rm -f conftest*
+ fi
+ rm -f conftest*
Home |
Main Index |
Thread Index |
Old Index