Source: sprng Version: 2.0a-7 Severity: important Tags: patch According to
http://buildd.debian-ports.org/status/fetch.php?pkg=sprng&arch=armhf&ver=2.0a-7&stamp=1305578678 Fixing the rules and Makefile to pass CFLAGS, enables to pass the proper flag to gcc in order to fix the build error. Please consider accepting the patch (or feel free to provide an alternative) Regards Konstantinos -- System Information: Debian Release: squeeze/sid Architecture: armhf (armv7l) Kernel: Linux 2.6.31.14-efikamx (PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -ruN sprng-2.0a/debian/rules sprng-2.0a.armhf//debian/rules --- sprng-2.0a/debian/rules 2011-05-19 00:03:18.000000000 +0300 +++ sprng-2.0a.armhf//debian/rules 2011-05-19 00:01:48.087300486 +0300 @@ -13,7 +13,12 @@ debdoc := $(CURDIR)/debian/$(docpack) arch := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -compilerflags = "-O2 -D_REENTRANT" +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) +ifeq ($(DEB_HOST_ARCH),armhf) +export compilerflags = -O2 -D_REENTRANT -Wa,-mimplicit-it=thumb +else +export compilerflags = -O2 -D_REENTRANT +endif #export DH_VERBOSE=1 #export DH_COMPAT=3 Binary files sprng-2.0a/EXAMPLES/sprngD and sprng-2.0a.armhf//EXAMPLES/sprngD differ diff -ruN sprng-2.0a/include/d~ sprng-2.0a.armhf//include/d~ --- sprng-2.0a/include/d~ 1999-06-29 19:42:11.000000000 +0300 +++ sprng-2.0a.armhf//include/d~ 1970-01-01 02:00:00.000000000 +0200 @@ -1 +0,0 @@ -diff -n $1 /u/ncsa/ashoks/rng/sprng/TESTS/$1 \ No newline at end of file Binary files sprng-2.0a/SRC/check_gen_ptr and sprng-2.0a.armhf//SRC/check_gen_ptr differ Binary files sprng-2.0a/SRC/check_gen_simple and sprng-2.0a.armhf//SRC/check_gen_simple differ diff -ruN sprng-2.0a/SRC/make.GENERIC sprng-2.0a.armhf//SRC/make.GENERIC --- sprng-2.0a/SRC/make.GENERIC 2011-05-19 00:03:18.000000000 +0300 +++ sprng-2.0a.armhf//SRC/make.GENERIC 2011-05-18 23:57:26.507299360 +0300 @@ -26,7 +26,7 @@ # Try adding: -DGENERIC to CFLAGS. This can improve speed, but may give # incorrect values. Check with 'checksprng' to see if it works. -CFLAGS = -O -fpic $(PMLCGDEF) $(MPIDEF) ${GMPDEF} +CFLAGS = -O -fpic $(PMLCGDEF) $(MPIDEF) ${GMPDEF} $(compilerflags) CLDFLAGS = -O FFLAGS = -O $(PMLCGDEF) $(MPIDEF) ${GMPDEF} F77LDFLAGS = -O