Package Details: slepc 3.22.0-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-02 15:50 (UTC)

Latest Comments

1 2 3 Next › Last »

carlosal1015 commented on 2024-08-08 20:27 (UTC)

Many thanks @rmsc, I will check soon and do it.

rmsc commented on 2024-08-08 15:50 (UTC) (edited on 2024-08-08 15:50 (UTC) by rmsc)

Some $pkgdir paths are now leaking to the installed files, most notably breaking packages that use pkgconfig. The "sed" lines need to be updated:

diff --git a/PKGBUILD b/PKGBUILD
index 22c2084..1323b46 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -69,13 +69,17 @@ 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/configure-hash"
   sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_rules"
+  sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_rules_util.mk"
+  sed -i "s#${pkgdir}##g" "${_dest_dir}/lib/slepc/conf/slepc_rules_doc.mk"
   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#${pkgdir}##g" "${_dest_dir}/lib/slepc4py/lib/slepc.cfg"
   sed -i "s#${_build_dir}#${_install_dir}#g" "${_dest_dir}/lib/slepc/conf/uninstall.py"

   # remove logs containing references to the build dir

micwoj92 commented on 2024-07-30 22:47 (UTC)

Fails to build for me:

==> Starting build()...
--with-clean --with-slepc4py=1
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().

configure.log was too long, so I put it in gist https://gist.github.com/micwoj92/5dd3d97b929e0867a04d05cf2126e761

carlosal1015 commented on 2024-07-10 18:32 (UTC)

No error from my side when with env command it does not list petsc or slepc variables. For example, when run this script.

from slepc4py import SLEPc
from petsc4py import PETSc

Alad commented on 2024-07-10 17:03 (UTC)

Getting a failure after the last update

==> Starting build()...
--with-clean --with-slepc4py=1
Checking environment... done
Checking PETSc installation... done
Processing slepc4py... Traceback (most recent call last):
  File "/home/user/.cache/aurutils/sync/slepc/src/slepc-3.21.1/./configure", line 12, in <module>
    exec(f.read())
  File "<string>", line 263, in <module>
  File "/home/user/.cache/aurutils/sync/slepc/src/slepc-3.21.1/config/packages/slepc4py.py", line 53, in Process
    from petsc4py import PETSc
  File "/opt/petsc/linux-c-opt/lib/petsc4py/PETSc.py", line 4, in <module>
    PETSc = ImportPETSc(ARCH)
            ^^^^^^^^^^^^^^^^^
  File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 30, in ImportPETSc
    return Import('petsc4py', 'PETSc', path, arch)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 97, in Import
    module = import_module(pkg, name, path, arch)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 74, in import_module
    module = importlib.util.module_from_spec(spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 570, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
==> ERROR: A failure occurred in build().
    Aborting...

PETSc can however be imported:

% python
Python 3.12.4 (main, Jun  7 2024, 06:33:07) [GCC 14.1.1 20240522] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import petsc
>>> import petsc4py

yuhldr commented on 2023-07-14 09:08 (UTC)

Sorry to delete the request, I clicked it wrong....

carlosal1015 commented on 2023-07-12 01:58 (UTC)

Done @yuhldr, let us if it is working fine.

Feel free to delete slepc4py as petsc4py 1 year ago.

yuhldr commented on 2023-06-30 14:36 (UTC) (edited on 2023-07-01 01:15 (UTC) by yuhldr)

Could you add slepc4py like petsc?

build()

python ./configure --prefix=${pkgdir}${_install_dir} --with-clean --with-slepc4py=1

package()

echo export PYTHONPATH=${_install_dir}/lib:'${PYTHONPATH}' >> ${pkgdir}/etc/profile.d/slepc.sh

carlosal1015 commented on 2022-05-03 16:52 (UTC) (edited on 2022-05-24 20:47 (UTC) by carlosal1015)

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.

Alad commented on 2022-05-03 16:26 (UTC)

It works now with the upgrade to petsc 3.17.1.