[MacPorts] #51625: ldas-tools being obsoleted

MacPorts noreply at macports.org
Mon Aug 15 18:44:58 PDT 2016


#51625: ldas-tools being obsoleted
--------------------------+---------------------------------
  Reporter:  ed.maros@…   |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  haspatch maintainer
      Port:  ldas-tools   |
--------------------------+---------------------------------

Comment (by ram@…):

 Tried updating to the new ports and it failed with the following:

 {{{
 [ram at hastur ~]$ port outdated
 The following installed ports are outdated:
 ldas-tools                     2.4.2_1 < 20160622_0
 [ram at hastur ~]$ sudo port upgrade outdated
 --->  Computing dependencies for ldas-tools-al
 Error: Unable to exec port: Can't install ldas-tools-al because
 conflicting ports are active: port:ldas-tools
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 [ram at hastur ~]$
 }}}

 I added the following code to `ldas-tools-al` to deactivate `ldas-tools`
 during the `pre-activate` stage (and remove the conflict) and then it all
 seems to work:

 {{{
 pre-activate {
   # ldas-tools-al now contains files that used to be provided by ldas-
 tools
   if {![catch {set installed [lindex [registry_active ldas-tools] 0]}]} {
     set _version [lindex $installed 1]
     if {[vercmp $_version 2.5.0] < 0} {
       # ldas-tools used to install some files now provided by ldas-tools
 in versions < 2.5.0
       registry_deactivate_composite ldas-tools "" [list ports_nodepcheck
 1]
     }
   }
 }
 }}}

 If there are no objections to these changes I'll incorporate this into the
 patch set and push the changes in the morning.

-- 
Ticket URL: <https://trac.macports.org/ticket/51625#comment:9>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list