Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403771 - sci-visualization/opendx-4.4.4-r4: please support Gentoo Prefix installations
Summary: sci-visualization/opendx-4.4.4-r4: please support Gentoo Prefix installations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 04:30 UTC by Richard Yao (RETIRED)
Modified: 2012-02-15 10:24 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-02-15 04:30:03 UTC
It is keyworded for ~amd64-linux, but it contains "--libdir=/usr/$(get_libdir)", which causes it to install things outside of the prefix.

It uses EAPI=2, so I did a bump to EAPI=3 and changed that line to be "--libdir=${EPREFIX}/usr/$(get_libdir)". This enables it to work.
Comment 1 Richard Yao (RETIRED) gentoo-dev 2012-02-15 04:38:54 UTC
This ebuild is not keyworded. I had used ecopy on it, which is why I mistook it for being keyworded.

Here is a diff of the changes that I made to make this work:

--- gentoo/usr/portage/sci-visualization/opendx/opendx-4.4.4-r4.ebuild  2010-11-18 22:03:53.000000000 -0800
+++ gentoo/usr/local/portage/sci-visualization/opendx/opendx-4.4.4-r4.ebuild    2012-02-14 20:20:22.118722428 -0800
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/opendx/opendx-4.4.4-r4.ebuild,v 1.8 2010/11/19 05:45:02 bicatali Exp $
 
-EAPI=2
+EAPI=3
 
 inherit eutils flag-o-matic autotools
 
@@ -13,7 +13,7 @@ SRC_URI="http://opendx.sdsc.edu/source/$
 LICENSE="IBM"
 SLOT="0"
 
-KEYWORDS="amd64 ppc x86"
+KEYWORDS="~amd64-linux"
 
 IUSE="hdf cdf netcdf tiff imagemagick szip smp"
 
@@ -64,7 +64,7 @@ src_configure() {
 
        # javadx is currently broken. we may try to fix it someday.
        econf \
-               --libdir=/usr/$(get_libdir) \
+               --libdir=${EPREFIX}/usr/$(get_libdir) \
                --with-x \
                --without-javadx \
                $(use_with szip szlib) \
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-02-15 04:41:07 UTC
Richard, looks good to me.

sci: please apply this but add ~amd64-linux instead of replace. Thanks.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-15 10:24:57 UTC
+  15 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org> opendx-4.4.4-r4.ebuild:
+  Add prefix love. Thanks to Richard Yao <ryao@cs.stonybrook.edu> for the patch.
+  Fixes bug 403771