Thank you for confirm good news. This could suggest, change depends=("petsc>=${pkgver:0:4}")
to depends=("petsc=${pkgver}")
.
Edited: 05/24/2022 I tested with petsc-complex
and compiles well.
Git Clone URL: | https://aur.archlinux.org/slepc.git (read-only, click to copy) |
---|---|
Package Base: | slepc |
Description: | Scalable library for Eigenvalue problem computations |
Upstream URL: | https://slepc.upv.es |
Licenses: | custom |
Submitter: | heitzmann |
Maintainer: | carlosal1015 |
Last Packager: | carlosal1015 |
Votes: | 8 |
Popularity: | 0.048859 |
First Submitted: | 2018-02-24 11:36 (UTC) |
Last Updated: | 2022-04-13 14:31 (UTC) |
Thank you for confirm good news. This could suggest, change depends=("petsc>=${pkgver:0:4}")
to depends=("petsc=${pkgver}")
.
Edited: 05/24/2022 I tested with petsc-complex
and compiles well.
It works now with the upgrade to petsc 3.17.1.
Right, alad-edu/petsc
was built from the aur/petsc
PKGBUILD. I can test it later with petsc-complex
, when I get back to my Arch install.
edit: same issue with petsc-complex (which needed upgrading to 3.17).
Thank you very much, I tested with PETSc installed without sourcing /etc/profile.d/petsc.sh
, I will think about this for solve it and take a look if we need add and if-else conditional statement for slepc like openfoam. Is alad-edu/petsc
the same for aur/petsc
, looks like more to an updated petsc-complex
from petronny. It is ok, slepc
must be supporting both versions (real and complex valued scalars).
Thanks, I can clone the repository now. Unfortunately 3.17.1 results in a build failure:
==> Making package: slepc 3.17.1-1 (Thu 14 Apr 2022 08:23:38 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Package (4) New Version Net Change
extra/boost 1.78.0-1 169.58 MiB
extra/cblas 3.10.0-1 0.20 MiB
extra/python-numpy 1.22.3-1 33.24 MiB
alad-edu/petsc 3.17.0-1 79.96 MiB
Total Installed Size: 282.97 MiB
:: Proceed with installation? [Y/n]
(4/4) checking keys in keyring [######################################] 100%
(4/4) checking package integrity [######################################] 100%
(4/4) loading package files [######################################] 100%
(4/4) checking for file conflicts [######################################] 100%
(4/4) checking available disk space [######################################] 100%
:: Processing package changes...
(1/4) installing cblas [######################################] 100%
(2/4) installing python-numpy [######################################] 100%
Optional dependencies for python-numpy
openblas: faster linear algebra [installed]
(3/4) installing boost [######################################] 100%
Optional dependencies for boost
python: for python bindings [installed]
(4/4) installing petsc [######################################] 100%
source /etc/profile.d/petsc.sh to set environment variables
Optional dependencies for petsc
trilinos: support for trilinos
ptscotch: support for ptscotch sequential and parallel graph partitioning library
parmetis: support for parmetis parallel graph partitioning library
metis: support for metis graph partitioning library [installed]
pastix: support for the pastix solver
superlu: support for the superlu sparse solver
hypre: support for the hypre sparse system solver
hdf5-openmpi: support for the parallel version of HDF5 [installed]
mumps: support for the mumps sparse solver
fftw: support for the FFTW fast Fourier transform [installed]
triangle: support for the two-dimensional quality mesh generator and Delaunay triangulator
suitesparse: support for the suitesparse sparse matrix libraries [installed]
valgrind: support for valgrind to help find memory-management problems in programs [installed]
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading slepc-3.17.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5322k 100 5322k 0 0 6193k 0 --:--:-- --:--:-- --:--:-- 6196k
==> Validating source files with md5sums...
slepc-3.17.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting slepc-3.17.1.tar.gz with bsdtar
==> Starting build()...
Checking environment... done
Checking PETSc installation...
ERROR: Unable to link with PETSc
ERROR: See "installed-arch-linux2-c-debug/lib/slepc/conf/configure.log" file for details
==> ERROR: A failure occurred in build().
Aborting...
==> Removing installed dependencies...
checking dependencies...
Package (4) Old Version Net Change
boost 1.78.0-1 -169.58 MiB
cblas 3.10.0-1 -0.20 MiB
petsc 3.17.0-1 -79.96 MiB
python-numpy 1.22.3-1 -33.24 MiB
Total Removed Size: 282.97 MiB
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
removing petsc...
removing python-numpy...
removing cblas...
removing boost...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
configure.log
mentioned in the output: https://gist.github.com/AladW/50bd935e8e65de00a216a9fe2af57508
Hi Alad, one month ago I experimented the same message with this repository when switch to tag v1.1.0
. Thanks for reporting, I solved with this help.
I have some strange behavior when cloning this repostitory:
$ git clone https://aur.archlinux.org/slepc.git
Cloning into 'slepc'...
remote: Enumerating objects: 153, done.
remote: Counting objects: 100% (153/153), done.
remote: Compressing objects: 100% (127/127), done.
remote: Total 153 (delta 25), reused 153 (delta 25), pack-reused 0
Receiving objects: 100% (153/153), 46.27 KiB | 1.85 MiB/s, done.
Resolving deltas: 100% (25/25), done.
Note: switching to 'db40240edd1fed79072b6344506551fcd4f8829f'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
It appears the master
branch does not have the 3.17.0 commit:
git checkout master
Warning: you are leaving 1 commit behind, not connected to
any of your branches:
db40240 Bump version to 3.17.0
If you want to keep it by creating a new branch, this may be a good time
to do so with:
git branch <new-branch-name> db40240
branch 'master' set up to track 'origin/master'.
Switched to a new branch 'master'
Thank you very much for all comments below, please continue giving feedback for us.
PKGBUILD for version 3.16.1:
pkgname=slepc
pkgver=3.16.1
pkgrel=1
pkgdesc="Scalable library for Eigenvalue problem computations"
arch=('x86_64')
url="http://slepc.upv.es"
license=('BSD')
depends=("petsc>=${pkgver:0:4}")
makedepends=('python')
install=slepc.install
source=(http://slepc.upv.es/download/distrib/${pkgname}-${pkgver/_/-}.tar.gz)
sha256sums=('b1a8ad8db1ad88c60616e661ab48fc235d5a8b6965023cb6d691b9a2cfa94efb')
build() {
# get SLEPC_DIR
source /etc/profile.d/petsc.sh # gets PETSC_DIR
_build_dir=${srcdir}/${pkgname}-${pkgver/_/-}
_install_dir=/opt/slepc/`basename ${PETSC_DIR}`
cd ${_build_dir}
unset PETSC_ARCH
export SLEPC_DIR=${_build_dir}
python ./configure --prefix=${pkgdir}${_install_dir} --with-clean
make
}
package() {
# get SLEPC_DIR
source /etc/profile.d/petsc.sh # gets PETSC_DIR
_build_dir=${srcdir}/${pkgname}-${pkgver/_/-}
_install_dir=/opt/slepc/`basename ${PETSC_DIR}`
_dest_dir=${pkgdir}${_install_dir}
cd ${_build_dir}
export SLEPC_DIR=${_build_dir}
source /etc/profile.d/petsc.sh # sets PETSC_DIR
make install > /dev/null # redirect in order to suppress confusing messages
export SLEPC_DIR=${_install_dir}
unset PETSC_ARCH
sed -i "s#${pkgdir}##g" "${_dest_dir}/include/slepcconf.h"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/pkgconfig/slepc.pc"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/modules/${pkgname}/${pkgver}"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_rules"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_variables"
# sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepcrules"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepcvariables"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/uninstall.py"
sed -i "s#${_build_dir}#${_install_dir}#g" "${_dest_dir}/lib/slepc/conf/uninstall.py"
# remove logs containing references to the build dir
rm -f "${_dest_dir}/lib/slepc/conf/configure.log"
rm -f "${_dest_dir}/lib/slepc/conf/make.log"
# install licence (even though there is no such word as licenses)
mkdir -p ${pkgdir}/usr/share/licenses/$pkgname
cp ${_build_dir}/LICENSE.md ${pkgdir}/usr/share/licenses/$pkgname/
mkdir -p ${pkgdir}/etc/profile.d
echo "export SLEPC_DIR=${_install_dir}" > ${pkgdir}/etc/profile.d/slepc.sh
chmod +x ${pkgdir}/etc/profile.d/slepc.sh
# show where the shared libraries are
install -d -m755 "${pkgdir}"/etc/ld.so.conf.d/
echo "${_install_dir}/lib" > "${pkgdir}"/etc/ld.so.conf.d/slepc.conf
}
A patch for 3.15.1:
diff --git a/PKGBUILD b/PKGBUILD
index 1a30719..222d24a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=slepc
-pkgver=3.13.3
+pkgver=3.15.1
pkgrel=1
pkgdesc="Scalable library for Eigenvalue problem computations"
arch=('x86_64')
@@ -9,8 +9,7 @@ depends=("petsc>=${pkgver:0:4}")
makedepends=('python')
install=slepc.install
source=(http://slepc.upv.es/download/distrib/${pkgname}-${pkgver/_/-}.tar.gz)
-sha256sums=('23d179c22b4b2f22d29fa0ac0a62f5355a964d3bc245a667e9332347c5aa8f81')
-
+sha256sums=('9c7c3a45f0d9df51decf357abe090ef05114c38a69b7836386a19a96fb203aea')
build() {
# get SLEPC_DIR
@@ -46,7 +45,7 @@ package() {
unset PETSC_ARCH
sed -i "s#${pkgdir}##g" "${_dest_dir}/include/slepcconf.h"
- sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/pkgconfig/SLEPc.pc"
+ sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/pkgconfig/slepc.pc"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/modules/${pkgname}/${pkgver}"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_rules"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_variables"
Are there any plans to update the packages? It is now on version 3.15.1
It's yours, xantares.
Ah. Then it should be "petsc>=3.12" combined with "petsc<3.13". SLEPc versions follow PETSc versions exactly, except for the last number (the patch number). When PETSc 3.13 arrives, SLEPc 3.12 will no longer work. Added this now.
Why not,
Note that it still does not build:
!! While searching for solutions the following errors occurred:
:: Not provided: petsc=3.12 but needed by slepc-3.12.2-2
maybe it should be "petsc>=3.12" (petsc is 3.12.3 currently)
Sorry for the delay, I had a lot to do. Would you like to be a co-maintainer or take over the package, xantares?
here's a patch:
diff --git a/PKGBUILD b/PKGBUILD
index 183ba32..0e48ef6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
# Contributor: Hawdaa
pkgname=slepc
-pkgver=3.11.2
-pkgrel=2
+pkgver=3.12.2
+pkgrel=1
pkgdesc="Scalable library for Eigenvalue problem computations"
arch=('i686' 'x86_64')
url="http://www.grycap.upv.es/slepc"
@@ -15,7 +15,7 @@ license=('BSD')
depends=('petsc>=3.11')
install=slepc.install
source=(http://slepc.upv.es/download/distrib/${pkgname}-${pkgver/_/-}.tar.gz)
-sha256sums=('cd6a73ac0c9f689c12f2987000a7a28fa7df53fdc069fb59a2bb148699e741dd')
+sha256sums=('a586ce572a928ed87f04961850992a9b8e741677397cbaa3fb028323eddf4598')
export MAKEFLAGS="-j1"
@@ -65,7 +65,7 @@ package() {
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/modules/${pkgname}/${pkgver}"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_rules"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_variables"
- sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepcrules"
+ #sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepcrules"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepcvariables"
sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/uninstall.py"
sed -i "s#${_build_dir}#${_install_dir}#g" "${_dest_dir}/lib/slepc/conf/uninstall.py"
@@ -76,7 +76,7 @@ package() {
# install licence (even though there is no such word as licenses)
mkdir -p ${pkgdir}/usr/share/licenses/$pkgname
- cp ${_build_dir}/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/
+ cp ${_build_dir}/LICENSE.md ${pkgdir}/usr/share/licenses/$pkgname/
mkdir -p ${pkgdir}/etc/profile.d
echo "export SLEPC_DIR=${_install_dir}" > ${pkgdir}/etc/profile.d/slepc.sh
hello, it seems it wont build anymore petsc being >=3.12
also the url seems out of date
@haawda: Sorry for the very late response, I just handed in my PhD and had a lot to do. Should be up-to-date now.
3.11.2 is out.
diff --git a/PKGBUILD b/PKGBUILD
index 090d087..ed18d6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com>
pkgname=slepc
-pkgver=3.11.1
+pkgver=3.11.2
pkgrel=1
pkgdesc="Scalable library for Eigenvalue problem computations"
arch=('i686' 'x86_64')
@@ -14,7 +14,7 @@ license=('BSD')
depends=('petsc>=3.11')
install=slepc.install
source=(http://slepc.upv.es/download/distrib/${pkgname}-${pkgver/_/-}.tar.gz)
-sha256sums=('4816070d4ecfeea6212c6944cee22dc7b4763df1eaf6ab7847cc5ac5132608fb')
+sha256sums=('cd6a73ac0c9f689c12f2987000a7a28fa7df53fdc069fb59a2bb148699e741dd')
export MAKEFLAGS="-j1"
Pinned Comments