[paludis-dev] [Paludis] #1329: Associative array and loadsaveenv

Paludis trac-paludis at exherbo.org
Sat May 23 06:51:06 UTC 2015


#1329: Associative array and loadsaveenv
-----------------------+--------------------------
    Reporter:  Vality  |       Type:  defect
      Status:  new     |   Priority:  Sometime
   Milestone:          |  Component:  core/paludis
     Version:  2.4.0   |   Keywords:
  Blocked By:          |   Blocking:
Distribution:  N/A     |
-----------------------+--------------------------
 Firstly, apologies if I have somehow screwed up and this is an environment
 or ebuild issue, not an issue with paludis.

 I am currently trying to emerge dev-util/dub-0.9.23 from the dlang
 overlay. It is breaking the build at the point of trying ">>> Starting
 builtin_loadenv" then falls over. with the error:

 {{{
 Error:
   * In program cave perform install --hooks --managed-output --output-
 exclusivity with-others =dev-util/dub-0.9.23:0::dlang --destination
 installed --x-of-y 1 of 1:
   * When installing 'dev-util/dub-0.9.23:0::dlang':
   * When running an ebuild command on 'dev-util/dub-0.9.23:0::dlang':
   * Install failed for 'dev-util/dub-0.9.23:0::dlang'
 (paludis::ActionFailedError)

 /var/tmp/paludis/dev-util-dub-0.9.23/temp/loadsaveenv: line 415: 2.063:
 syntax error: invalid arithmetic operator (error token is ".063")
 }}}

 Looking at that line in the file it is:

 {{{
 __dlang_dmd_frontend_mapping=([2.063]="2.063 x86 amd64" [2.066]="2.066 x86
 amd64" [2.067]="2.067" [2.064]="2.064 x86 amd64" [2.065]="2.065 x86 amd64"
 )
 }}}

 What this looks like is that the script is trying to assign to an
 undeclared associative array and failing, assuming it is a normal array.
 When I looked into the eclass it is indeed running:

 {{{
 declare -gA __dlang_dmd_frontend_mapping
 }}}

 but this declaration is not being run in the loadsaveenv script.

-- 
Ticket URL: <http://paludis.exherbo.org/trac/ticket/1329>
Paludis <http://paludis.exherbo.org/>
Paludis, the Other Package Mangler


More information about the paludis-dev mailing list