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

Bug 326537

Summary: sci-libs/blas-atlas: sci-libs/lapack-atlas: portage-multilib fix
Product: Gentoo Linux Reporter: Drew Patridge <slicersv>
Component: New packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372323    
Attachments: fixed ebuild for 3.8.0
fixed ebuild for 3.9.23
patch to fix lapack ebuild for 3.8.0
patch to fix lapack ebuild for 3.9.23

Description Drew Patridge 2010-07-02 02:55:55 UTC
submitting two new ebuilds for getting blas-atlas working under portage-multilib which should also continue working under regular portage.

the problem was from multiple sources, first, gentoo-multilib pre-determines that your fortran compiler is gfortran, and this breaks calls to the fortran eclass since it insists that you should be calling strictly "gfortran" and not any particular version of it.  if a user lacks gfortran, the compile errors should be pretty explicit enough on why the build fails anyways.

second, the BLD_DIR and RPATH definitions occurred outside of any of the stages, which is not abi-wrapped, and therefore fails to be properly defined for whichever abi is built second.

third, the archselect variable only checked for amd64, or ppc64 architecture and then proceeded to set -b 64, on amd64 this did fail, and would most likely also fail on ppc64 and sparc.  this is because when under the x86/ppc/sparc32 abi's, we need to pass -b 32, while on the amd64/ppc64/sparc64 abi's, we need to pass -b 64.
Comment 1 Drew Patridge 2010-07-02 02:58:17 UTC
Created attachment 237193 [details]
fixed ebuild for 3.8.0
Comment 2 Drew Patridge 2010-07-02 02:59:04 UTC
Created attachment 237195 [details]
fixed ebuild for 3.9.23
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-07-02 06:33:50 UTC
Thank you for your work on this! Though I would like to ask you to submit diff against original ebuild rather than whole files, next time.
Best regards,
Kacper Kowalik 
Comment 4 Drew Patridge 2010-07-02 07:05:48 UTC
Found out that lapack-atlas exhibits similar behavior for similar reasons,
exclusion being that the fortran eclass seems to behave itself... I notice it's
not called directly either... something must be calling it and that something
behaves itself I guess?  Too lazy to look into something that already works ;)

Anyways, patches for lapack will follow soon.
Comment 5 Drew Patridge 2010-07-02 07:12:35 UTC
Created attachment 237215 [details, diff]
patch to fix lapack ebuild for 3.8.0
Comment 6 Drew Patridge 2010-07-02 07:13:41 UTC
Created attachment 237217 [details, diff]
patch to fix lapack ebuild for 3.9.23
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2013-01-31 11:08:33 UTC
Dropped all atlas packages from tree.
Please use sci-libs/atlas from sci overlay.
If problem still exist with that package, please reopen the bug or file a new one.