Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345935 - sys-apps/miscfiles-1.5 fails to install on prefix
Summary: sys-apps/miscfiles-1.5 fails to install on prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 345957 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-17 23:45 UTC by Dan Wallis
Modified: 2010-11-18 13:05 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 Dan Wallis 2010-11-17 23:45:09 UTC
This patch allows successful installation of sys-apps/miscfiles-1.5 on my prefix:

--- miscfiles-1.5.ebuild.orig	2010-11-18 12:26:16.000000000 +1300
+++ miscfiles-1.5.ebuild	2010-11-18 12:41:18.000000000 +1300
@@ -28,7 +28,7 @@
 }
 
 src_install() {
-	emake install DESTDIR="${D}" || die
+	emake install DESTDIR="${ED}" || die
 	dodoc NEWS ORIGIN README dict-README
 
 	# not sure if this is still needed ...
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-17 23:52:22 UTC
What about changing the following line:

econf --datadir=/usr/share/misc || die

to 

econf --datadir="${EPREFIX}/usr/share/misc instead.

I haven't tested it. I'll look at it soon (maybe tomorrow) if no one else does.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-17 23:52:40 UTC
of course:

econf --datadir="${EPREFIX}"/usr/share/misc
Comment 3 Dan Wallis 2010-11-18 00:18:30 UTC
Looks like that works too. (I've just tested and didn't get any errors.)
I chose that particular line because miscfiles-1.4.2-r1.ebuild has:

src_install() {
    emake install prefix="${ED}/usr" || die
    dodoc NEWS ORIGIN README dict-README
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-18 02:31:22 UTC
Yea, the ebuild got re-factored abit on the bump, I guess.

Anyway, fixed now. Thanks!

+  18 Nov 2010; Jeremy Olexa <darkside@gentoo.org> miscfiles-1.5.ebuild:
+  Fix for Gentoo Prefix, bug 345935 by Dan Wallis
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2010-11-18 13:05:18 UTC
*** Bug 345957 has been marked as a duplicate of this bug. ***