Bug 25444

Summary: paraFoam is not properly linked to the system Paraview
Product: Mageia Reporter: Cyril Levet <cyril.levet0780>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Normal CC: eatdirt, lewyssmith
Version: 7   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: openfoam-6-5.mga7.src.rpm CVE:
Status comment:

Description Cyril Levet 2019-09-15 18:36:07 CEST
Description of problem: When trying to launch paraFoam, a FATAL_ERROR Paraview reader module libraries do not exist is printed and paraView won't launch. It is due to the absence of paraView in the Mageia openFOAM package because the system paraview is normally used but the link is not properly found.

An easy workaround is to modify the etc/bashrc OpenFOAM script by adding the following line :
alias paraFoam='paraFoam -builtin'


Version-Release number of selected component (if applicable): 6


How reproducible: Always


Steps to Reproduce:
1. Launch openfoam
2. Go to any tutorial case
3. Launch paraFoam
Comment 1 Lewis Smith 2019-09-15 21:51:34 CEST
Cyril : thank you for the report, and your suggestion.

OpenFoam has no registered maintainer, so assigning this globally; CC'ing ChrisD who has seen it before.

Assignee: bugsquad => pkg-bugs
CC: (none) => eatdirt

Comment 2 Lewis Smith 2019-09-15 21:58:33 CEST
See also bug 25446.

CC: (none) => lewyssmith

Comment 3 Lewis Smith 2019-09-16 08:27:23 CEST
See also bug 25443. I do not think these are duplicates, even though the solution may prove to be common.
Comment 4 Chris Denice 2019-09-18 14:42:18 CEST
This bug is not a duplicate of #25443 and it is not a bug at all.

OpenFOAM in Mageia, as any other program, is compiled against system libraries, which means you should be using:

paraFoam -builtin

You're of course free to set up an alias into your environment, but we're not changing the default behaviour/configuration of OpenFOAM, nor overloading the choices made by the OpenFOAM developers.

As a matter of fact, OpenFOAM also destroys all environment variables set by Mageia. If you have accelerated drivers, paraFoam -builtin may still fail with some error GLX missing messages.

If you have nvidia drivers, you should actually preload the libGL libs using:

LD_PRELOAD=/usr/lib(64)/nvidia-current/libGL.so.1 paraFoam -builtin

The LD_PRELOAD= should be accordingly modified if your proprietary lib resides elsewhere.

Unfortunately, we cannot "fix" the funny choices made by the OpenFOAM people. Even if your Mageia system is well configured, it will be overloaded by the OpenFOAM environment.

I marking this bug as WONTFIX for these reasons.

Good luck.

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED

Comment 5 Cyril Levet 2019-09-18 20:17:25 CEST
Thank you for your answer. I will use your trick. I understand your point of view even if I disagree with it.
Comment 6 Chris Denice 2019-09-19 14:09:18 CEST
Well, if you're motivated enough, you can register of the dev mailing list and become a mageia packager, and then take over the packaging of OpenFOAM. No one is currently maintaining it :(

In that case, you'll be free to tune it to Mageia and distribute your expertise to the world :) We're always looking for packagers using their packages on a daily basis.

Cheers,
Chris.