[Pkg-scicomp-devel] Bug#514328: Bug#514328: OpenFOAM-1.5 patch for paraview-3.4.0

Oliver Borm oli.borm at web.de
Sat Feb 7 18:50:44 UTC 2009


> I've briefly glanced in the past at OpenFOAM packaging, and decided
> that it would be a huge task, mostly because coaxing OpenFOAM to obey
> Debian and Ubuntu policy is going to be a very difficult task. Besides
> having a very arcane build system and being a monster package, it also
> has some very weird usage expecting to be run under its own user with
> many environment variables set.
> 
> How did you address those issues?
> 

I will answer to this question right here, but maybe we can further discuss howto packaging OpenFOAM at bug 514327.
I'm interested in your opinons and suggestions.

Yes, the actual openfoam-1.5 package is not 100% FHS, Debian and Ubuntu policy conform. It's an first atempt in
packaging OpenFOAM. And I think it is better to have a "dirty" debian package, which is fully removeable, instead 
of doing the installation by hand. 

Yes, in order to use OpenFOAM you have to source /usr/lib/OpenFOAM-1.5/etc/bashrc (if you are using the bash)
to set up the paths correctly. But no, you don't need an extra user for doing that. You can watch also all my patches
to get OpenFOAM compiling in an automatic way and check the debian/rules file how I did it.

I don't have tested OpenFOAM without sourcing the OpenFOAM-1.5/etc/bashrc,
but maybe you only will need to setup the following paths to get OpenFOAM-1.5 running correctly (but as I said, this is untested):

PATH=/usr/lib/OpenFOAM-1.5/bin:/usr/lib/OpenFOAM-1.5/applications/bin:${PATH}
LD_LIBRARY_PATH=/usr/lib/OpenFOAM-1.5/lib:/usr/lib/OpenFOAM-1.5/lib/openmpi:/usr/lib/OpenFOAM-1.5/lib/dummy:${LD_LIBRARY_PATH}

__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html






More information about the Pkg-scicomp-devel mailing list