Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368829 - app-admin/eselect-mesa and associated conf files in media-libs/mesa depend on bash-4 associative arrays but do not depend on it
Summary: app-admin/eselect-mesa and associated conf files in media-libs/mesa depend on...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 00:24 UTC by Mart Raudsepp
Modified: 2011-05-27 00:48 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 Mart Raudsepp gentoo-dev 2011-05-27 00:24:10 UTC
>>> Original instance of package unmerged safely.

Switching to xorg-x11 OpenGL interface... done
//usr/share/mesa/eselect-mesa.conf: line 14: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
!!! Error: MESA_DRIVERS already in environment and not associative.
Call stack:
    * source (eselect-mesa.conf:14)
    * do_set (mesa.eselect:202)
    * check_do (core.bash:24)
    * do_action (core.bash:89)
    * main (eselect:191)
exiting
>>> media-libs/mesa-7.9.2 merged.



# qfile -v /bin/bash
app-shells/bash-3.2_p48-r1 (/bin/bash)


Yes, old; yes, will fix, eventually.

Meanwhile the system requires associative arrays and does not depend on a supporting bash version that support them, together with declare -A. No idea what that is, all I know is that bash4 added it (no idea starting when all is good) and bash-4.1_p9 works, while 3.2_p48-r1 does not.



# eselect mesa list
/usr/share/mesa/eselect-mesa.conf: line 14: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
!!! Error: MESA_DRIVERS already in environment and not associative.
Call stack:
    * source (eselect-mesa.conf:14)
    * do_list (mesa.eselect:132)
    * check_do (core.bash:24)
    * do_action (core.bash:89)
    * main (eselect:191)
exiting



A bash dependency needs to be added somewhere or associative arrays not used. PMS only guarantees bash-3.2 presence for the package manager, and afaik that for package manager - not tools installed by packages, such as eselect and its modules. But this needs some bash-4 anyway.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-05-27 00:48:27 UTC
A dependency on >=bash-4 was added to eselect-mesa.