Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[BUG 148534] eselect profile list
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jmanko
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 117
Location: NEPA, USA

PostPosted: Thu Sep 21, 2006 2:09 pm    Post subject: [BUG 148534] eselect profile list Reply with quote

I was trying to eselect to manage the profile symlink (i know, i know, it only a symlink)

'show' works:

Code:
# eselect profile show
Current make.profile symlink:
  /usr/portage/profiles/default-linux/x86/2006.0


but 'list' fails:

Code:
# eselect profile list
!!! Error: Failed to get a list of valid profiles
exiting.


I kinda feel that if eselect offers the option to manage the profile, then it should work, even if it's only a symlink.

Any1 get this working?
_________________
"What stands in the way becomes the way." -- Marcus Aurelius


Last edited by jmanko on Thu Sep 21, 2006 4:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Thu Sep 21, 2006 3:22 pm    Post subject: Reply with quote

Works perfectely for me, always has.

Maybe try performing an
Code:
emerge --sync
followed by an
Code:
emerge -av eselect
. You never know..




Cheers,
jcat
Back to top
View user's profile Send private message
jmanko
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 117
Location: NEPA, USA

PostPosted: Thu Sep 21, 2006 3:33 pm    Post subject: Reply with quote

sadly, it did not work. :cry:
_________________
"What stands in the way becomes the way." -- Marcus Aurelius
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Thu Sep 21, 2006 3:37 pm    Post subject: Reply with quote

jcat: Works perfectely for me

Version 1.0.5 — the latest, surprisingly marked unstable at http://packages.gentoo.org/search/?sstring=eselect — has
Code:
describe_list() {
        echo "List available profile symlink targets"
}

do_list() {
        local active targets
        targets=( $(find_targets) )

        [[ -z "${targets}" ]] && die -q "Failed to get a list of valid profiles"
...
in /usr/share/eselect/modules/profile.eselect. So it should work.

But, then again
Code:
# eselect profile list
!!! Error: Failed to get a list of valid profiles
exiting.

_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Thu Sep 21, 2006 4:03 pm    Post subject: Reply with quote

Which version of eselect do you have?




Cheers,
jcat
Back to top
View user's profile Send private message
jmanko
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 117
Location: NEPA, USA

PostPosted: Thu Sep 21, 2006 4:04 pm    Post subject: Reply with quote

it appears that the problem is with "arch"

my arch is i686:

Code:
# arch
i686


/usr/portage/profiles/profiles.desc does not contain entries for i686, only x86


Code:
 # grep "86" /usr/portage/profiles/profiles.desc
# x86 Profiles
#x86            default-linux/x86/2005.0                        stable
#x86            default-linux/x86/2005.1                        stable
#x86            default-linux/x86/2006.0                        stable
x86             default-linux/x86/2006.1                        stable
x86             default-linux/x86/no-nptl                       stable
x86             default-linux/x86/no-nptl/2.4                   stable
x86             default-linux/x86/2006.1/desktop                stable
#x86            default-linux/x86/2006.1/server         stable
x86-fbsd        default-bsd/fbsd/6.1/x86                        dev
x86             hardened/x86                                    stable
x86             hardened/x86/2.6                                stable
#x86            uclibc/x86                                      dev
#x86            uclibc/x86/2.4                                  dev
#x86            uclibc/x86/2005.1                               dev
#x86            uclibc/x86/2005.1/2.4                           dev
#x86            uclibc/x86/hardened                             dev
#x86            uclibc/x86/hardened/2.4                         dev


issuing the sed command (for x86) that's in the script:

Code:
sed -n -e "s|^x86[[:space:]]\+\([^[:space:]]\+\).*$|\1|p" //usr/portage/profiles/profiles.desc
default-linux/x86/2006.1
default-linux/x86/no-nptl
default-linux/x86/no-nptl/2.4
default-linux/x86/2006.1/desktop
hardened/x86
hardened/x86/2.6


issuing the sed command for i686 yeilds nothing.
_________________
"What stands in the way becomes the way." -- Marcus Aurelius
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Thu Sep 21, 2006 4:07 pm    Post subject: Reply with quote

It looks as if you should post a bug report — you seem to have found a definite bug, searching based on arch which doesn't match the profile tag.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Thu Sep 21, 2006 4:09 pm    Post subject: Reply with quote

Nope, I'm on arch i686 as well.

x86 part of the profile refers to the 32bit stable Gentoo portage tree you're using. Good suggestion though.




Cheers,
jcat
Back to top
View user's profile Send private message
jmanko
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 117
Location: NEPA, USA

PostPosted: Thu Sep 21, 2006 4:19 pm    Post subject: Reply with quote

This has been submitted to Gentoo Bugzilla:

http://bugs.gentoo.org/show_bug.cgi?id=148534

[EDIT]jcat: i already submitted before i saw your comments. it still looks like that is the issue though...[/EDIT]
_________________
"What stands in the way becomes the way." -- Marcus Aurelius
Back to top
View user's profile Send private message
Polynomial-C
Developer
Developer


Joined: 01 Jun 2003
Posts: 1391
Location: germany

PostPosted: Fri Sep 22, 2006 1:18 am    Post subject: Reply with quote

Hi,

quick (hackish?) fix until this is fixed in portage:
Code:
sed -e 's:arch=$(arch):arch=$(arch | sed "s|^i[3-6]|x|"):' -i /usr/share/eselect/modules/profile.eselect


Explanation:
the above sed-commad replaces the line
Code:
arch=$(arch)
with
Code:
arch=$(arch | sed "s|^i[3-6]|x|")
in /usr/share/eselect/modules/profile.eselect
Tested on two i686 machines; works like a charm ;)

Cheers
Poly-C
_________________
The manual said "Requires Windows7 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum