Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402895 - sci-libs/openfoam-2.1 does not install the application's binary files
Summary: sci-libs/openfoam-2.1 does not install the application's binary files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-09 16:50 UTC by Peter Gustafson
Modified: 2013-02-01 08:10 UTC (History)
4 users (show)

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


Attachments
Patch to allow correct install (openfoam-2.1.0-r1.diff,419 bytes, patch)
2012-02-09 16:50 UTC, Peter Gustafson
Details | Diff
Patch to correct installation errors with OpenFOAM 2.1.1 (openfoam-2.1.1-r1.ebuild.patch,581 bytes, patch)
2012-07-23 21:50 UTC, Craig Finch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gustafson 2012-02-09 16:50:48 UTC
Created attachment 301403 [details, diff]
Patch to allow correct install

As in the description, the application files are not installed.  doins doesn't work within the ebuild as the application/bin directory does not exist.

Reproducible: Always
Steps to Reproduce: emerge openfoam
Fix: attached patch


Note: 
PORTAGE_TMPDIR="/home2/portage"



>>> Source compiled.
>>> Test phase [not enabled]: sci-libs/openfoam-2.1.0

>>> Install openfoam-2.1.0 into /home2/portage/portage/sci-libs/openfoam-2.1.0/image/ category sci-libs
cp: omitting directory `tutorials/mesh/snappyHexMesh/motorBike'
cp: omitting directory `tutorials/mesh/snappyHexMesh/snappyMultiRegionHeater'
cp: omitting directory `tutorials/mesh/snappyHexMesh/iglooWithFridges'
cp: omitting directory `tutorials/compressible/rhoPorousMRFSimpleFoam/angledDuctExplicit/constant'
cp: omitting directory `tutorials/compressible/rhoPorousMRFSimpleFoam/angledDuctExplicit/0'
cp: omitting directory `tutorials/incompressible/porousSimpleFoam/angledDuctExplicit/constant'
cp: omitting directory `tutorials/incompressible/porousSimpleFoam/angledDuctExplicit/0'
doins failed
install: cannot stat `applications/bin/*': No such file or directory
!!! doins: applications/bin/* does not exist
doins failed
install: cannot stat `lib/*': No such file or directory
!!! doins: lib/* does not exist
doins failed
!!! dodoc: README does not exist
dodoc failed
>>> Completed installing openfoam-2.1.0 into /home2/portage/portage/sci-libs/openfoam-2.1.0/image/

 * QA Notice: file does not exist:
 * 
 *      doins: applications/bin/* does not exist
 *      doins: lib/* does not exist
 *      dodoc: README does not exist
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   usr/lib64/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/dirToString
   usr/lib64/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/wmkdep
   usr/lib64/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/wmkdepend

>>> Installing (1 of 1) sci-libs/openfoam-2.1.0

 * Messages for package sci-libs/openfoam-2.1.0:
Comment 1 Rahul Kumar 2012-07-10 19:59:34 UTC
It seems the patch does not work with openfoam 2.1.1. I am getting the following error when I emerge openfoam


>>> Source compiled.
>>> Test phase [not enabled]: sci-libs/openfoam-2.1.1

>>> Install openfoam-2.1.1 into /var/tmp/portage/sci-libs/openfoam-2.1.1/image/ category sci-libs
install: cannot stat `applications/bin/*': No such file or directory
!!! doins: applications/bin/* does not exist
doins failed
install: cannot stat `lib/*': No such file or directory
!!! doins: lib/* does not exist
doins failed
!!! dodoc: README does not exist
dodoc failed
>>> Completed installing openfoam-2.1.1 into /var/tmp/portage/sci-libs/openfoam-2.1.1/image/

 * QA Notice: file does not exist:
 * 
 * 	doins: applications/bin/* does not exist
 * 	doins: lib/* does not exist
 * 	dodoc: README does not exist
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   usr/lib64/OpenFOAM/OpenFOAM-2.1.1/wmake/platforms/linux64Gcc/wmkdepend
   usr/lib64/OpenFOAM/OpenFOAM-2.1.1/wmake/platforms/linux64Gcc/wmkdep
   usr/lib64/OpenFOAM/OpenFOAM-2.1.1/wmake/platforms/linux64Gcc/dirToString
Comment 2 Craig Finch 2012-07-23 21:50:09 UTC
I have attached a patch for OpenFOAM-2.1.1 which is based on Peter Gustafson's patch and corrects several additional issues and fixes QA errors:
- Installs all binaries and libraries
- Installs README.html and .pdf documentation

I also copy the entire src directory to the OpenFOAM installation directory. I think this is justified because OpenFOAM is a solver library, rather than an application, and you need the headers to build code using the OpenFOAM libraries. We could use a USE flag to control the installation of source.
Comment 3 Craig Finch 2012-07-23 21:50:51 UTC
Created attachment 319030 [details, diff]
Patch to correct installation errors with OpenFOAM 2.1.1
Comment 4 Benj FitzPatrick 2012-10-05 04:21:04 UTC
I can confirm that this happens with my new stage 3 install and the given patch corrects the problem.
Comment 5 Rahul Kumar 2012-10-14 19:48:59 UTC
Hi 
I have never patched an ebuild before and am not sure how to use the provided patch. Can you please let me know how to use the patch to compile openfoam. 

Also, how long does it take before the ebuild in the portage tree is updated with the patch. 

Thanks,
Rahul
 
(In reply to comment #3)
> Created attachment 319030 [details, diff] [details, diff]
> Patch to correct installation errors with OpenFOAM 2.1.1
Comment 6 Bernhard Dunkl 2013-01-01 18:28:27 UTC
The patch proposed by Craig in comment 3 works for me too.
Comment 7 Patrick Lauer gentoo-dev 2013-02-01 08:10:27 UTC
+  01 Feb 2013; Patrick Lauer <patrick@gentoo.org> +openfoam-2.1.1-r1.ebuild:
+  Fix for #402895