[MacPorts] #56793: macports base: installing a port with many files appears to hang; file registration loop slows dramatically for file counts > 10,000

MacPorts noreply at macports.org
Mon May 24 18:56:09 UTC 2021


#56793: macports base: installing a port with many files appears to hang; file
registration loop slows dramatically for file counts > 10,000
-----------------------+----------------------
  Reporter:  yan12125  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  base      |    Version:  2.7.0
Resolution:            |   Keywords:
      Port:            |
-----------------------+----------------------

Comment (by jmroot):

 Something like this works:
 {{{#!patch
 --- src/macports1.0/macports.tcl        2021-05-19 11:13:12.000000000
 +1000
 +++ lib/macports1.0/macports.tcl        2021-05-25 04:22:14.000000000
 +1000
 @@ -1906,6 +1906,8 @@
      }

      set workername [interp create]
 +    $workername eval [list package require profiler]
 +    $workername eval [list profiler::init]

      set mport [ditem_create]
      lappend macports::open_mports $mport
 }}}
 {{{#!patch
 --- src/port1.0/portinstall.tcl 2021-04-15 03:25:15.000000000 +1000
 +++ lib/port1.0/portinstall.tcl 2021-05-25 04:25:49.000000000 +1000
 @@ -457,5 +457,6 @@
      }

      _cd $oldpwd
 +    puts [::profiler::sortFunctions exclusiveRuntime]
      return 0
  }
 }}}
 `man n profiler` for more info on what you can do with it.

-- 
Ticket URL: <https://trac.macports.org/ticket/56793#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list