Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 463538

Summary: sci-libs/openfoam-2.2.0 - the directories "applications", "bin", "platforms" and "wmake" get installed into "/usr/lib64/OpenFOAM/OpenFOAM-2.2.0/lib/"
Product: Gentoo Linux Reporter: Bernhard Dunkl <bernhard.d>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: benjfitz, bircoph, oli.borm, proxy-maint, richard.kenney
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 478370    
Bug Blocks:    
Attachments: openfoam-2.2.0.ebuild.patch

Description Bernhard Dunkl 2013-03-27 21:08:31 UTC
The directories "applications", "bin", "platforms" and "wmake" get installed into "/usr/lib64/OpenFOAM/OpenFOAM-2.2.0/lib/", but OpenFoam expects them to reside under "/usr/lib64/OpenFOAM/OpenFOAM-2.2.0/". See the PATH variable after sourcing OpenFOAM's bashrc:
PATH="/usr/lib64/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/gperftools-svn/bin:/usr/lib64/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/openmpi-1.6.3/bin:/home/bernhard/OpenFOAM/bernhard-2.2.0/platforms/linux64GccDPOpt/bin:/usr/lib64/OpenFOAM/site/2.2.0/platforms/linux64GccDPOpt/bin:/usr/lib64/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin:/usr/lib64/OpenFOAM/OpenFOAM-2.2.0/bin:/usr/lib64/OpenFOAM/OpenFOAM-2.2.0/wmake:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3"

Reproducible: Always
Comment 1 Benj FitzPatrick 2013-03-29 18:16:25 UTC
I also noticed this on openfoam-2.2.0, and my temporary work around was to create symlinks for each folder down one level.
Comment 2 Stephen Bosch 2013-04-02 19:41:30 UTC
I can confirm this.
Comment 3 Andrew Savchenko gentoo-dev 2013-05-15 10:39:36 UTC
Created attachment 348378 [details, diff]
openfoam-2.2.0.ebuild.patch

Installation to lib is deprecated, perhaps some remnant of previous versions. There is nothing to install from lib/* now and QA complains:

 * QA Notice: file does not exist:
 * 
 *      doins: lib/* does not exist

This patch switches installation to the upper directory, removes useless lib/* doins and switches ebuild to EAPI=5.

Now openfoam works fine out of the box, though another bug should be treated to fix bashrc issue: 428418
Comment 4 Richard Kenney 2013-05-18 07:24:55 UTC
I too can confirm this.  The patch from comment 3 does the trick for me.
Comment 5 Patrick Lauer gentoo-dev 2013-07-29 08:24:13 UTC
+  29 Jul 2013; Patrick Lauer <patrick@gentoo.org> +openfoam-2.2.1.ebuild,                                                                                                                                                                   
+  metadata.xml:                                                                                                                                                                                                                             
+  Bump, fixes #478370 #428418 #463538