[MacPorts] #62881: gcc11: port is deactivating libgcc10, resulting in broken dependent ports

MacPorts noreply at macports.org
Thu May 13 12:57:20 UTC 2021


#62881: gcc11: port is deactivating libgcc10, resulting in broken dependent ports
----------------------+--------------------------
  Reporter:  mascguy  |      Owner:  cjones051073
      Type:  defect   |     Status:  assigned
  Priority:  High     |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  gcc11    |
----------------------+--------------------------
Description changed by mascguy:

Old description:

> When updating ports today, I notice that `libgcc10` was deactivated,
> despite a number of ports having a lib or runtime dependency on that
> port.
>
> Reviewing new port `gcc11`, it looks like it's occurring there:
>
> {{{
>     pre-activate {
>         if {![catch {set installed [lindex [registry_active libgcc10]
> 0]}]} {
>             # Extract the epoch of the installed libgcc9
>             set _epoch [lindex $installed 5]
>             # If < 3 need to deactivate
>             if {[vercmp $_epoch 6] < 0} {
>                 registry_deactivate_composite libgcc10 "" [list
> ports_nodepcheck 1]
>             }
> }}}

New description:

 When updating ports today, I notice that `libgcc10` was deactivated,
 despite a number of ports having a lib or runtime dependency on it.

 Reviewing new port `gcc11`, it looks like it's occurring there:

 {{{
     pre-activate {
         if {![catch {set installed [lindex [registry_active libgcc10]
 0]}]} {
             # Extract the epoch of the installed libgcc9
             set _epoch [lindex $installed 5]
             # If < 3 need to deactivate
             if {[vercmp $_epoch 6] < 0} {
                 registry_deactivate_composite libgcc10 "" [list
 ports_nodepcheck 1]
             }
 }}}

--

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


More information about the macports-tickets mailing list