Package: deal.ii
Version: 7.1.0-1
Severity: serious
Tags: patch

When building deal.ii, the header slepcconf.h needs to be included. It
can be found under /usr/lib/slepc/linux-gnu-c-opt/include, but the
makefiles of deal.ii only refer to /usr/lib/slepc/include which holds
most of the headers of slepc.

The attached patch adds /usr/lib/slepc/linux-gnu-c-opt/include to the
include paths.

Regards,
Felix
Description: add slepc include path with arch triple
 The file slepcconf.h resides under
 /usr/lib/slepc/linux-gnu-c-opt/include/slepcconf.h but the makefiles
 only refer to the include path /usr/lib/slepc/include.
 .
 This patch adds the include path /usr/lib/slepc/linux-gnu-c-opt/include.
Author: Felix Gruber <fel...@gmx.de>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/common/Make.global_options.in
+++ b/common/Make.global_options.in
@@ -278,7 +278,8 @@
   include-path-petsc-bmake   = $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/include
 endif
 include-path-slepc           = $(DEAL_II_SLEPC_DIR)/include
-include-path-slepc-conf      = $(DEAL_II_SLEPC_DIR)/$(DEAL_II_PETSC_ARCH)/conf
+include-path-slepc-arch      = $(DEAL_II_SLEPC_DIR)/linux-gnu-c-opt/include
+include-path-slepc-conf      = $(DEAL_II_SLEPC_DIR)/conf
 ifeq ($(DEAL_II_PETSC_VERSION_DEV),yes)
   include-path-slepc-include = $(DEAL_II_SLEPC_DIR)/$(DEAL_II_PETSC_ARCH)/include
 endif
@@ -314,7 +315,8 @@
 endif
 
 ifeq ($(USE_CONTRIB_SLEPC),yes)
-  INCLUDE += -I$(include-path-slepc) -I$(include-path-slepc-conf)
+  INCLUDE += -I$(include-path-slepc) -I$(include-path-slepc-conf) \
+             -I$(include-path-slepc-arch)
 ifeq ($(DEAL_II_PETSC_VERSION_DEV),yes)
   INCLUDE += -I$(include-path-slepc-include)
 endif

Reply via email to