[Pkg-scicomp-devel] Bug#576987: libatlas3gf-base: cannot build custom because of makefile error (with patch)

Francesco Potortì Potorti at isti.cnr.it
Thu Apr 8 14:29:21 UTC 2010


Package: libatlas3gf-base
Version: 3.8.3-18
Severity: normal

I don't know what you have as /bin/sh, but here I have dash and the
debian/rules makefile does not work.  Here is a patch that corrects the
problem and simplifies the code:

diff -pub /usr/src/atlas-3.8.3/debian/rules.orig /usr/src/atlas-3.8.3/debian/rules
--- /usr/src/atlas-3.8.3/debian/rules.orig	2010-04-08 16:25:13.000000000 +0200
+++ /usr/src/atlas-3.8.3/debian/rules	2010-04-08 16:15:02.000000000 +0200
@@ -107,15 +107,16 @@ COMMON_CONFIG_PARAMS := --prefix="$(DEB_
 custom: custom-stamp
 
 # Build a custom package optimized for the current arch
+custom-stamp: SHELL=/bin/bash
 custom-stamp:
 		rm -f configure-stamp
 
-		ncpu=$$(LANG=C cpufreq-info | grep "analyzing CPU" -c); \
+		@ncpu=$$(LANG=C cpufreq-info | grep "analyzing CPU" -c); \
 		for (( cpu=0 ; cpu < $$ncpu ; cpu++)); do \
-		if test $$(cpufreq-info -p; echo $$?) -eq 0 -a -z "$$(LANG=C cpufreq-info -p -c $$cpu | grep performance)" ; then \
-			echo "frequency governor on cpu=$$cpu is not set to 'performance'"; \
-			echo "run: 'sudo cpufreq-set -g governor -c cpu#' for each cpu"; \
-			echo "aborting atlas build"; \
+		if cpufreq-info -p > /dev/null && [[ $$(LANG=C cpufreq-info -p -c $$cpu) != *performance* ]] ; then \
+			echo "-> frequency governor on cpu=$$cpu is not set to 'performance'"; \
+			echo "-> run: 'sudo cpufreq-set -g governor -c cpu#' for each cpu"; \
+			echo "-> aborting atlas build"; \
 			exit 1; \
 		fi; \
 		done
Diff finished.  Thu Apr  8 16:25:19 2010


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libatlas3gf-base depends on:
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.2-9  GCC support library
ii  libgfortran3                  4.4.2-9    Runtime library for GNU Fortran ap

libatlas3gf-base recommends no packages.

Versions of packages libatlas3gf-base suggests:
ii  libblas3gf                    1.2-4      Basic Linear Algebra Subroutines 3
ii  liblapack3gf                  3.2.1-2    library of linear algebra routines

-- no debconf information





More information about the Pkg-scicomp-devel mailing list