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

Bug 605392

Summary: sci-libs/magma-2.2.0 version bump
Product: Gentoo Linux Reporter: Ladislav Zitka <archenroot>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED OBSOLETE    
Severity: normal CC: treecleaner, waebbl-gentoo
Priority: Normal Keywords: PMASKED, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/10515
Whiteboard:
Package list:
Runtime testing required: ---
Deadline: 2020-10-19   
Attachments: magma-2.4.0..1.4.1.diff

Description Ladislav Zitka 2017-01-11 15:26:41 UTC
I took the ebuild in portage tree of magma library version 1.4.1 and updated in my overlay to latest 2.2.0.

I added some flags which looked missing for this version:
CFLAGS    = -O3 -fPIC -DADD_ -Wall -fopenmp 
CXXFLAGS  = -O3 -fPIC
FFLAGS    = -O3 -fPIC -DADD_ -Wall -Wno-unused-dummy-argument
F90FLAGS  = -O3 -fPIC -DADD_ -Wall -Wno-unused-dummy-argument -x f95-cpp-input
NVCCFLAGS = -O3       -DADD_       -Xcompiler -fPIC
LDFLAGS   =     -fPIC              -fopenmp

I also added 2 USE flags:
maxwell pascal

And finally changed the src_compile phase block as following:
rc_compile() {
	emake lib
	emake shared
	elog "======================  COMPILE PHASE ====================="
	elog "lib/lib${PN}.so{,.2.2}"
	mv lib/lib${PN}.so{,.2.2} || die
	ln -sf lib${PN}.so.2.2 lib/lib${PN}.so.2 || die
	ln -sf lib${PN}.so.2.2 lib/lib${PN}.so || die
}

The complete ebuild is compilable and available for check here:
https://github.com/archenroot/gentoo-overlay/blob/master/sci-libs/magma/magma-2.2.0.ebuild

I think this should go first into science overlay, but not sure, I can of course open issue on science github, if rejected here.

One remaining thing reported on installation:
* QA Notice: The following shared libraries lack a SONAME
 * /usr/lib64/libmagma.so.2.2

Not sure how to resolve this one?
Comment 1 Ladislav Zitka 2017-01-12 14:44:38 UTC
I will commit this directly into Science github repo probably.

I believe there is some standard way of migration of stable science only artefacts into stable tree, so this way will be cleaner.
Comment 2 Bernd 2018-11-28 21:22:02 UTC
There's 2.4.0 out and 2.5.0 is on the horizon.
I prepared an ebuild for updated suitesparse ebuild and prepare a PR for it.
Comment 3 Bernd 2018-11-28 21:22:59 UTC
Created attachment 556642 [details]
magma-2.4.0..1.4.1.diff

diff between magma-2.4.0.ebuild and magma-1.4.1.ebuild
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-10-19 06:49:06 UTC
Package removed.