Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559172 - [science overlay] sci-mathematics/petsc-3.6.0 wrong file reference in /usr/include/petsc/conf/variables
Summary: [science overlay] sci-mathematics/petsc-3.6.0 wrong file reference in /usr/in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-30 14:14 UTC by Marius N Sletten
Modified: 2016-04-22 03:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (petsc-3.6.0.ebuild,7.40 KB, text/plain)
2015-08-30 14:14 UTC, Marius N Sletten
Details
emerge --info (petsc.info,6.72 KB, application/x-info)
2015-08-30 14:15 UTC, Marius N Sletten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius N Sletten 2015-08-30 14:14:20 UTC
Created attachment 410606 [details]
ebuild

Wrong file reference in:
/usr/include/petsc/conf/variables line 117 :

orginal line:
include ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables

correct line:
/usr/include/petsc/linux-gnu-cxx-opt/conf/petscvariables

with 
PETSC_ARCH=linux-gnu-cxx-opt
and
PETSC_DIR=/usr/include/petsc

these files is treated in the ebuilds src_install().

So it works for me when I change line 117 in /usr/include/petsc/conf/variables.
Comment 1 Marius N Sletten 2015-08-30 14:15:04 UTC
Created attachment 410608 [details]
emerge --info
Comment 2 Marius N Sletten 2015-08-30 14:18:07 UTC
(In reply to Marius N Sletten from comment #0)
> Created attachment 410606 [details]
> ebuild
> 
> Wrong file reference in:
> /usr/include/petsc/conf/variables line 117 :
> 
> orginal line:
> include ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables
> 
> correct line:
> /usr/include/petsc/linux-gnu-cxx-opt/conf/petscvariables
> 
> with 
> PETSC_ARCH=linux-gnu-cxx-opt
> and
> PETSC_DIR=/usr/include/petsc
> 
> these files is treated in the ebuilds src_install().
> 
> So it works for me when I change line 117 in
> /usr/include/petsc/conf/variables.



Correct line:

include ${PETSC_DIR}/${PETSC_ARCH}/conf/petscvariables
Comment 3 Marius N Sletten 2015-08-30 20:51:42 UTC
From the ebuild:


src_install() {
...
doins ${PETSC_ARCH}/lib/${PN}/conf/{petscrules,petscvariables,RDict.db}

while moving files around inside the package it might be tricky to compile other packages depending on petsc as libmash
Comment 4 Marius N Sletten 2015-08-30 21:14:43 UTC
libmesh at http://libmesh.github.io/index.html
Comment 5 Matthias Maier gentoo-dev 2016-04-22 03:14:29 UTC
I've fixed the include in petsc-3.6.4 (pushed to github, should be fully synced to the overlay in the next days). Please test :-)


commit 4c50902cb7f54cf48e7c30b835cfd2c47ffdae57
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Thu Apr 21 22:12:27 2016 -0500

    sci-mathematics/petsc: version bump to 3.6.4, fix bug #559172
    
    Package-Manager: portage-2.2.26