Package Details: slepc 3.22.1-1

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: BSD-2-Clause
Provides: slepc4py
Submitter: heitzmann
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 8
Popularity: 0.000000
First Submitted: 2018-02-24 11:36 (UTC)
Last Updated: 2024-10-31 14:02 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

Alad commented on 2022-04-17 13:44 (UTC) (edited on 2022-04-19 18:09 (UTC) by Alad)

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).

carlosal1015 commented on 2022-04-14 19:49 (UTC)

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).

Alad commented on 2022-04-14 18:24 (UTC)

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

carlosal1015 commented on 2022-04-05 15:16 (UTC)

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.

Alad commented on 2022-04-05 13:24 (UTC) (edited on 2022-04-05 13:25 (UTC) by Alad)

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'

carlosal1015 commented on 2022-04-04 14:24 (UTC)

Hi slepc users, with recently petsc upgrade, we need to a do a fix/patch in order to have slepc propertly installed. This is the log.

carlosal1015 commented on 2022-01-10 18:24 (UTC)

Thank you very much for all comments below, please continue giving feedback for us.

pointhi commented on 2022-01-02 13:04 (UTC)

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
}

pfyhr commented on 2021-08-28 13:04 (UTC)

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"