[Pkg-scicomp-devel] Bug#528619: petsc: FTBFS on GNU/kFreeBSD

Petr Salinger Petr.Salinger at seznam.cz
Thu May 14 08:34:13 UTC 2009


Package: petsc
Severity: important
Version: 3.0.0.dfsg-2
Tags: patch
User: glibc-bsd-devel at lists.alioth.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.

The problem is overriden PETSC_ARCH.
It is overriden during make, but not during configure.
It is not problem on Linux architectures,
but on all other (kfreebsd, hurd) it is a problem.
Please do the override also during configure part,
as shown bellow.

The override can be either linux-gnu on all architectures,
or DEB_HOST_GNU_SYSTEM variable from dpkg-architecture output.

Thanks in advance

                         Petr

--- debian/rules
+++ debian/rules
@@ -91,7 +91,7 @@
  # With debugging=1, only static libraries are generated.
  # Build optimized libs second so files are consistent with optimized.
  build-arch: patch
-       PETSC_DIR=$(CURDIR) ./config/configure.py \
+       PETSC_DIR=$(CURDIR) PETSC_ARCH=$(PETSC_ARCH)-c-debug ./config/configure.py \
           --with-debugging=1 \
           --useThreads 0 --with-mpi-dir=$(PETSC_MPI_DIR) \
           --with-blas-lib=-lblas --with-lapack-lib=-llapack \
@@ -107,7 +107,7 @@
  #        `if [ -e /usr/lib/libsidl.so ]; then echo "--with-babel=1 --with-babel-dir=/usr"; fi`
         $(MAKE) PETSC_ARCH=$(PETSC_ARCH)-c-debug PETSC_DIR=$(CURDIR) \
           PETSC_INSTALL_DIR=/usr/lib/petscdir/$(PETSC_VERSION)
-       PETSC_DIR=$(CURDIR) ./config/configure.py --with-shared \
+       PETSC_DIR=$(CURDIR) PETSC_ARCH=$(PETSC_ARCH)-c-opt ./config/configure.py --with-shared \
           --with-debugging=0 \
           --useThreads 0 --with-mpi-dir=$(PETSC_MPI_DIR) --with-mpi-shared=1 \
           --with-blas-lib=-lblas --with-lapack-lib=-llapack \






More information about the Pkg-scicomp-devel mailing list