Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499400 - prefix-portage: Cross-prefix building doesn't work
Summary: prefix-portage: Cross-prefix building doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-26 22:35 UTC by Ruud Koolen (RETIRED)
Modified: 2014-12-16 13:02 UTC (History)
0 users

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


Attachments
portage-cross-prefix.patch (portage-cross-prefix.patch,568 bytes, patch)
2014-01-26 22:35 UTC, Ruud Koolen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-01-26 22:35:53 UTC
Created attachment 368842 [details, diff]
portage-cross-prefix.patch

The functionality in portage to build packages cross-eprefix works in the mainline branch, but ironically doesn't work in prefix branch. Attached patch fixes it.
Comment 1 Fabian Groffen gentoo-dev 2014-02-01 13:03:10 UTC
Hmmm, will this break something else?  I added it back then on purpose.  Guess we need to run without it for a while to test and see if it doesn't break.  (I got lost what should be where, unfortunately.)
Comment 2 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-02-02 00:26:06 UTC
> Hmmm, will this break something else? 

It shouldn't. `mysettings` is a config object, which initializes a value of EPREFIX in its constructor (pym/portage/package/ebuild/config.py:489), and it is this value that should be used, not the constant one.

> (I got lost what should be where, unfortunately.)

I only have a vague idea myself, so by all means check my work. But in any case, const.EPREFIX is the wrong value to use here, the prefix to use can be overridden by settings.
Comment 3 Fabian Groffen gentoo-dev 2014-02-04 20:29:36 UTC
Pushed as 9e892c7
Comment 4 Benda Xu gentoo-dev 2014-12-04 10:19:47 UTC
already resolved?
Comment 5 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-12-16 13:02:51 UTC
Yes.