File 0002-Assume-stack-direction-downwards-for-all-sparc-hppa-.patch of Package librep
From a6276509c54a241323b75bfeff079a340bd8f91d Mon Sep 17 00:00:00 2001
From: Christopher Roy Bratusek <nano@jpberlin.de>
Date: Thu, 28 Aug 2014 08:35:26 +0200
Subject: [PATCH 2/2] Assume stack-direction downwards for all sparc, hppa,
mips, mipsel, ia64 and alpha variants (fixes compilation)
Signed-off-by: madanyang <toganm@opensuse.org>
---
configure.in | 2 +-
debian/rules | 30 ++----------------------------
man/news.texi | 5 +++++
3 files changed, 8 insertions(+), 29 deletions(-)
diff --git a/configure.in b/configure.in
index 21f542b..a8742e6 100644
--- a/configure.in
+++ b/configure.in
@@ -536,7 +536,7 @@ AC_ARG_WITH(stack-direction,
[with_stack_direction=unknown])
if test "${with_stack_direction}" = unknown; then
case ${host_cpu} in
- sparc|i?86|powerpc*|x86_64|arm*|aarch64*|s390*)
+ sparc*|i?86*|powerpc*|x86_64*|arm*|aarch64*|s390*|hppa*|mips*|alpha*|ia64*)
AC_MSG_RESULT([assuming downwards])
with_stack_direction="-1"
;;
diff --git a/debian/rules b/debian/rules
index d724cf8..4001f6d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,37 +8,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_PREF = $(shell gcc -print-multiarch)
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- export DEB_CFLAGS_MAINT_APPEND = -O0 -Wall -g
-else
- export DEB_CFLAGS_MAINT_APPEND = -O2 -Wall -g
-endif
-
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),m68k))
export DEB_CFLAGS_MAINT_APPEND = -Wall -g -O0
endif
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),alpha))
- ARCH_CONF = --with-stack-direction=-1
-endif
-
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),ia64))
- ARCH_CONF = --with-stack-direction=-1
-endif
-
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),mips))
- ARCH_CONF = --with-stack-direction=-1
-endif
-
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),mipsel))
- ARCH_CONF = --with-stack-direction=-1
-endif
-
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),armhf))
- ARCH_CONF = --with-stack-direction=-1
-endif
-
-DEB_CONFIGURE_USER_FLAGS = --with-readline $(ARCH_CONF)
+DEB_CONFIGURE_USER_FLAGS = --with-readline
dev_extras = debian/tmp -name install-aliases -o -name rep_config.h -o -name *.a -o -name *.jl
@@ -76,7 +50,7 @@ override_dh_strip:
dh_strip -a --dbg-package=librep-dbg
override_dh_makeshlibs:
- dh_makeshlibs -Xusr/lib/rep/
+ dh_makeshlibs -Xusr/lib/$(DEB_PREF)/rep/
override_dh_shlibdeps:
dh_shlibdeps -- --warnings=2
diff --git a/man/news.texi b/man/news.texi
index 9f49e2a..2a2ab7d 100644
--- a/man/news.texi
+++ b/man/news.texi
@@ -3,6 +3,11 @@
@chapter News
@cindex News
+@heading 0.92.5
+@itemize @bullet
+@item Assume stack-direction @code{downwards} for all sparc, hppa, mips, mipsel, ia64 and alpha variants (fixes compilation) [Christopher Bratusek]
+@end itemize
+
@heading 0.92.4
@itemize @bullet
--
2.1.0