Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353562 - app-portage/eix: handle Gentoo Prefix arches better.
Summary: app-portage/eix: handle Gentoo Prefix arches better.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 23:49 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2011-03-21 14:49 UTC (History)
0 users

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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-02-02 23:49:26 UTC
Martin,
Gentoo Prefix users need to set "ALWAYS_ACCEPT_KEYWORDS="true"" in ~/.eixrc to get sane output. Perhaps it is easier to show you.

without:
%% eix -e less
[I] sys-apps/less
     Available versions:  (~*)436{tbz2} (~*)440 {unicode}
     Installed versions:  440(03:47:38 PM 02/01/2011)(unicode)
     Homepage:            http://www.greenwoodsoftware.com/less/
     Description:         Excellent text file viewer
with:
%% eix -e less
[I] sys-apps/less
     Available versions:  436{tbz2} 440 {unicode}
     Installed versions:  440(03:47:38 PM 02/01/2011)(unicode)
     Homepage:            http://www.greenwoodsoftware.com/less/
     Description:         Excellent text file viewer

Is there any way we could get something that works out of the box here?
Comment 1 Martin Väth 2011-02-03 20:48:44 UTC
I am not sure what want me to do: Doing some runtime magic depending on ARCH
(e.g. forcing ALWAYS_ACCET_KEYWORDS=true if ARCH contains certain values)
might be a bit confusing.
I could add a ./configure switch to set the default of ALWAYS_ACCEPT_KEYWORDS;
this switch could then be set by the ebuild depending on ARCH.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-02-03 20:56:35 UTC
Yea, I figured you were looking at the $ARCH value. That only confuses eix on the profiles where Gentoo Prefix doesn't match $ARCH to $ACCEPT_KEYWORDS, so x86-linux, amd64-linux, *-freebsd iirc.
Comment 3 Martin Väth 2011-02-03 21:51:51 UTC
(In reply to comment #2)
> where Gentoo Prefix doesn't match $ARCH to $ACCEPT_KEYWORDS, so
> x86-linux, amd64-linux, *-freebsd iirc.

Maybe I do not understand something:
Do you mean you have ARCH="x86-linux" in the profile but only
ACCEPT_KEYWORDS="~x86" (and not ACCEPT_KEYWORDS="~x86-linux")
in your make.conf?
If this is the case, how does portage know that "-linux" must be appended?
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-02-03 22:01:18 UTC
(In reply to comment #3)

> Maybe I do not understand something:
> Do you mean you have ARCH="x86-linux" in the profile but only
> ACCEPT_KEYWORDS="~x86" (and not ACCEPT_KEYWORDS="~x86-linux")
> in your make.conf?
> If this is the case, how does portage know that "-linux" must be appended?
> 

Incorrect. example: ARCH=x86 & ACCEPT_KEYWORDS=~x86-linux

You can see for yourself in $PORTDIR/profiles/prefix, example: /usr/portage/profiles/prefix/linux/x86/make.defaults
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-02-03 22:12:36 UTC
Alternatively, we can just add "use prefix && echo 'ALWAYS_ACCET_KEYWORDS=true' >> $ED/etc/eixrc" or so. That may be easier.
Comment 6 Martin Väth 2011-02-04 01:27:35 UTC
In eix trunk, I have now introduced the value "full" for ACCEPT_KEYWORDS_AS_ARCH
(and this is now the default value of that variable).
This causes that ARCH is replaced by the modification of ACCEPT_KEYWORDS,
but only with the stable versions.
For instance, in your example you should now get something like

%% eix -e less
[I] sys-apps/less
     Available versions:  (~)436 (~)440 {unicode}
...

which is perhaps the most "logical" result, although perhaps still not
acceptable for arches which will never go stable.

In any case, I have also introduced
./configure --with-always-accept-keywords
to set the default of ALWAYS_ACCEPT_KEYWORDS, so that you can use
econf ... $(use_with prefix always-accept-keywords) ...
in the ebuild.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-12 04:43:46 UTC
I'll see how this looks next week. Thanks.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-21 14:49:00 UTC
(In reply to comment #7)
> I'll see how this looks next week. Thanks.

Added, $(use_with prefix always-accept-keywords) to 0.22.8