| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 |
"https://www.w3.org/TR/html4/loose.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<title>Packaging deal.II</title> |
| 6 |
<link href="../screen.css" rel="StyleSheet" media="screen"> |
| 7 |
<meta name="copyright" content="Copyright (C) 2000 - 2023 by the deal.II Authors"> |
| 8 |
<meta name="keywords" content="deal.II packaging"> |
| 9 |
</head> |
| 10 |
|
| 11 |
<body> |
| 12 |
|
| 13 |
<h1>Packaging <acronym>deal.II</acronym> for a Unix-like distribution</h1> |
| 14 |
|
| 15 |
<h2>Overview</h2> |
| 16 |
<p> |
| 17 |
This page describes how to write packaging scripts |
| 18 |
for <acronym>deal.II</acronym>. <acronym>deal.II</acronym> is written in |
| 19 |
C++11 and is known to work with GCC, Clang, and Intel compilers. It is |
| 20 |
licensed under the LGPL v2.1. We recommend reading |
| 21 |
the <a href="porting.html">porting</a> document first for a description of |
| 22 |
the requirements of the build system. <acronym>deal.II</acronym> does not |
| 23 |
support any type of plug-in architecture for dependencies: all |
| 24 |
dependencies must be provided at compile-time. |
| 25 |
|
| 26 |
The only required dependency of <acronym>deal.II</acronym> is boost. |
| 27 |
</p> |
| 28 |
|
| 29 |
|
| 30 |
<h2>Examples</h2> |
| 31 |
<acronym>deal.II</acronym> is already available in many Linux distributions: |
| 32 |
for examples of packaging scripts see, e.g., |
| 33 |
<p> |
| 34 |
<ul> |
| 35 |
<li> |
| 36 |
<a href="https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=deal-ii"> |
| 37 |
a packaging script for the Arch Linux AUR</a>, |
| 38 |
</li> |
| 39 |
<li> |
| 40 |
<a href="https://github.com/gentoo/sci/blob/master/sci-libs/dealii/dealii-9.1.0.ebuild"> |
| 41 |
a packaging script for the Gentoo science overlay</a>, and |
| 42 |
</li> |
| 43 |
<li> |
| 44 |
<a href="https://packages.debian.org/stable/libs/libdeal.ii-8.4.2"> |
| 45 |
a packaging setup for Debian stable.</a> |
| 46 |
</li> |
| 47 |
</ul> |
| 48 |
</p> |
| 49 |
|
| 50 |
<h2>Suggestions</h2> |
| 51 |
<ul> |
| 52 |
<li> |
| 53 |
<acronym>deal.II</acronym> defaults to installing several |
| 54 |
configuration files |
| 55 |
(<tt>LICENSE.md</tt>, <tt>README.md</tt>, <tt>detailed.log</tt>, |
| 56 |
and <tt>summary.log</tt>) in the installation prefix. We recommend |
| 57 |
deleting these files. <tt>LICENSE.md</tt> should be installed in the |
| 58 |
correct directory for software licenses. |
| 59 |
</li> |
| 60 |
<li> |
| 61 |
The CMake configuration of <acronym>deal.II</acronym> will determine |
| 62 |
what compiler is being used and pick reasonable optimization and |
| 63 |
debugging flags automatically. Further flags for debug and release mode |
| 64 |
may be supplied by <tt>DEAL_II_CXX_FLAGS_DEBUG</tt> |
| 65 |
and <tt>DEAL_II_CXX_FLAGS_RELEASE</tt> variables passed to CMake, |
| 66 |
respectively. |
| 67 |
</li> |
| 68 |
<li> |
| 69 |
The flag <tt>DEAL_II_ALLOW_PLATFORM_INTROSPECTION</tt> (enabled by |
| 70 |
default) enables (as the name implies) CPU-specific issues (usually for |
| 71 |
vectorization). |
| 72 |
</li> |
| 73 |
<li> |
| 74 |
The flag <tt>DEAL_II_WITH_64BIT_INDICES</tt> changes an integral type |
| 75 |
used for indices in the library. |
| 76 |
</li> |
| 77 |
<li> |
| 78 |
<acronym>deal.II</acronym> includes copies of boost, Kokkos, muParser, TBB, and |
| 79 |
UMFPACK. These bundled packages should be disabled |
| 80 |
via <tt>-DDEAL_II_ALLOW_BUNDLED=OFF</tt> and these dependencies should |
| 81 |
instead be resolved by ensuring that whenever <acronym>deal.II</acronym> |
| 82 |
is installed, the packages above are also installed. |
| 83 |
</li> |
| 84 |
<li> |
| 85 |
The standard build of GSL does not link <tt>libgsl.so</tt> against a |
| 86 |
CBLAS implementation, which results in underlinkage |
| 87 |
in <acronym>deal.II</acronym>. This is resolved, for example, in the |
| 88 |
Arch Linux PKGBUILD script by stripping the <tt>-Wl,--as-needed</tt> |
| 89 |
flag from the linker flags. |
| 90 |
</li> |
| 91 |
</ul> |
| 92 |
|
| 93 |
<hr /> |
| 94 |
<div class="right"> |
| 95 |
<a href="https://validator.w3.org/check?uri=referer" target="_top"> |
| 96 |
<img style="border:0" src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a> |
| 97 |
<a href="https://jigsaw.w3.org/css-validator/check/referer" target="_top"> |
| 98 |
<img style="border:0;width:88px;height:31px" src="https://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a> |
| 99 |
</body> |
| 100 |
</html> |