[MacPorts] #31878: "port echo leaves" leads to error "an invalid entry was passed"

MacPorts noreply at macports.org
Fri Nov 4 14:40:49 PDT 2011


#31878: "port echo leaves" leads to error "an invalid entry was passed"
---------------------------------+------------------------------------------
 Reporter:  t.scheller@…         |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  base                 |     Version:  2.0.3                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------

Comment(by t.scheller@…):

 Hmm okay registry was a good tip. It is really scary to have something
 called "registry" on Mac OS X ;-)

 I've added some puts into receipt_sqlite.tcl and traced down the problem
 to be related with zlib. If I try to uninstall zlib, I get the same error.

 I guess the problem is that it searches for entry 164 (I guess counting
 from 0) but there are only 164 entries (counting from 1) in the "ports"
 table

 I do not understand the structure of the database. Where are the
 dependencies defined?

 Any ideas how to correct this or how to continue in tracing this down?


 {{{
 $ sudo port list leaves
 TKS was here !!!!!!!!!!!!!!
 list leaves
 TKS registry::list_depends zlib   0
 TKS receipt_sqlite::list_dependents zlib   0
 TKS port: ::registry::entry163 - dependent: ::registry::entry17
 TKS port: ::registry::entry163 - dependent: ::registry::entry21
 TKS port: ::registry::entry163 - dependent: ::registry::entry23
 TKS port: ::registry::entry163 - dependent: ::registry::entry24
 TKS port: ::registry::entry163 - dependent: ::registry::entry25
 TKS port: ::registry::entry163 - dependent: ::registry::entry85
 TKS port: ::registry::entry163 - dependent: ::registry::entry164
 an invalid entry was passed
     while executing
 "$dependent name"
     (procedure "receipt_sqlite::list_dependents" line 20)
     invoked from within
 "${macports::registry.format}::list_dependents $name $version $revision
 $variants"
     (procedure "registry::list_dependents" line 4)
     invoked from within
 "registry::list_dependents $iname"
     (procedure "get_leaves_ports" line 14)
     invoked from within
 "get_${name}_ports"
     ("^leaves(@.*)?$" arm line 8)
     invoked from within
 "switch -regex -- $token {
         ^\\)$               -
         ^\;                 -
         ^_EOF_$             { # End of expression/cmd/file
      ..."
     (procedure "element" line 12)
     invoked from within
 "element reslist"
     (procedure "unaryExpr" line 17)
     invoked from within
 "unaryExpr reslist"
     (procedure "andExpr" line 4)
     invoked from within
 "andExpr reslist"
     (procedure "orExpr" line 4)
     invoked from within
 "orExpr blist"
     (procedure "seqExpr" line 16)
     invoked from within
 "seqExpr reslist"
     (procedure "portExpr" line 3)
     invoked from within
 "portExpr portlist"
     (procedure "process_cmd" line 85)
     invoked from within
 "process_cmd $remaining_args"
     invoked from within
 "if { [llength $remaining_args] > 0 } {

     # If there are remaining arguments, process those as a command
     set exit_status [process_cmd $remaining..."
     (file "/opt/local/bin/port" line 4709)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/31878#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list