From 0d720fd0ec9a98bf21b97709c2b927f8729e56a7 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Mon, 28 Nov 2016 18:34:39 +0100 Subject: [PATCH] tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch added Just a small fix to build process to always use CFLAGS & LDFLAGS. --- ...-000-add-all-flags-for-gethost-build.patch | 25 +++++++++++++++++++ tcsh.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch diff --git a/tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch b/tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch new file mode 100644 index 0000000..5312e0e --- /dev/null +++ b/tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch @@ -0,0 +1,25 @@ +From 8235759d3096654ff2f5c7118bd23f40b7dcbc8f Mon Sep 17 00:00:00 2001 +From: christos +Date: Sat, 26 Nov 2016 00:14:18 +0000 +Subject: [PATCH] Add all flags for the gethost build. + +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 1ef8cb7..5c30451 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -449,7 +449,7 @@ pure:$(P) ${OBJS} + + gethost: gethost.c sh.err.h tc.const.h sh.h + rm -f gethost +- ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} $(srcdir)/gethost.c ++ ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $(srcdir)/gethost.c + + tc.defs.c: gethost host.defs + @rm -f $@.tmp +-- +2.7.4 + diff --git a/tcsh.spec b/tcsh.spec index 61eac52..51fb816 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -1,7 +1,7 @@ Name: tcsh Summary: An enhanced version of csh, the C shell Version: 6.20.00 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD URL: http://www.tcsh.org/ @@ -42,6 +42,7 @@ BuildRequires: ncurses-devel # Upstream patches -- official upstream patches released by upstream since the # ---------------- last rebase that are necessary for any reason: +Patch000: tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch # Downstream patches -- these should be always included when doing rebase: @@ -168,6 +169,10 @@ fi %changelog +* Mon Nov 28 2016 David Kaspar [Dee'Kej] - 6.20.00-2 +- Added multiple upstream patches: + tcsh-6.20.00-000-add-all-flags-for-gethost-build.patch + * Mon Nov 28 2016 David Kaspar [Dee'Kej] - 6.20.00-1 - Rebase to tcsh-6.20.00