@jancici
You should probably update your PETSc. AUR version is already 3.5.1.
@myles
Here's the sed's I've included in my PKGBUILD (line 49) to remove most references to the build directory:
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepc_rules"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepc_variables"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepcvariables"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/uninstall.py"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/lib/pkgconfig/SLEPc.pc"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/lib/modules/3.5.0"
I'm not sure the one with uninstall.py is required (or even correct).
Search Criteria
Package Details: slepc 3.5.3-2
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2015-06-02)
| Package Base: | slepc |
|---|---|
| Description: | Scalable library for Eigenvalue problem computations |
| Upstream URL: | http://www.grycap.upv.es/slepc |
| Category: | science |
| Licenses: | |
| Submitter: | myles |
| Maintainer: | myles |
| Last Packager: | myles |
| Votes: | 6 |
| First Submitted: | 2010-05-21 02:04 |
| Last Updated: | 2015-02-12 21:49 |
Latest Comments
Comment by heitzmann
Comment by jancici
I am installing dolphin, and getting this error about compatible with PETSc version 3.4.
thank for help
here is output:
==> slepc dependencies:
- python2 (already installed)
- gcc (already installed)
- gcc-fortran (already installed)
- petsc (already installed)
==> Edit slepc.install ? [Y/n] ("A" to abort)
==> -----------------------------------------
==> n
==> Continue building slepc ? [Y/n]
==> -------------------------------
==>
==> Building and installing package
==> Making package: slepc 3.5.0-1 (Pi sep 12 10:26:20 CEST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading slepc-3.5.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3121k 100 3121k 0 0 576k 0 0:00:05 0:00:05 --:--:-- 741k
==> Validating source files with md5sums...
slepc-3.5.0.tar.gz ... Passed
==> Extracting sources...
-> Extracting slepc-3.5.0.tar.gz with bsdtar
==> Starting build()...
Checking environment...
ERROR: This SLEPc version is not compatible with PETSc version 3.4
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build slepc.
==> Restart building slepc ? [y/N]
==> ------------------------------
Comment by heitzmann
Correcting my last comment: slepc_variables, not slepc_conf.
Comment by heitzmann
The installed package keep a few references pointing at the build directory. I believe the PKGBUILD should include 'sed's to remove those, similarly to what happens for petsc.
I found those references in these files in /opt/slepc/arch-linux2-cxx-opt/conf:
- slepc_conf
- slepc_rules
- slepcvariables
- uninstall.py
There could be more.
Comment by myles
Now installs to /opt/slepc.
Comment by Gug
Hi, if you could change the default install dir "/usr/slepc/" to "/opt/slepc", it would be nice. (Or maybe there's a reason ?)
Comment by myles
@kkb110: Apparently it isn't necessary anymore, thanks for pointing that out.
Comment by kkimlabs
@myles
Is that still true? On my machine, "sudo makepkg -s --asroot" just hung after "Checking PETSc installation...". So I removed the root checking code from PKGBUILD and compiled but it didn't show any error message.
Comment by myles
Slepc modifies an installed petsc lib and so this currently requires root privileges, i.e.:
sudo makepkg -s --asroot