New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16260 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

port rebuilds inactive dependency then can't install it

Reported by: ryandesign@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.0
Component: base Version: 1.7.0
Keywords: Cc: jmr@…
Port:

Description

I have various versions of freetds installed. They're all deactivated.

$ port installed freetds
The following ports are currently installed:
  freetds @0.64_1+darwin_9
  freetds @0.64_1+darwin_9+mssql
  freetds @0.82_0+darwin_9
  freetds @0.82_0+darwin_9+mssql

php5 +mssql depends on freetds +mssql. When I try to install php5 +mssql it should activate freetds +mssql. But instead it starts trying to build freetds, which then fails to activate because it's already installed (just inactive).

$ port install php5 +apache2 +mssql
--->  Fetching freetds
--->  Verifying checksum(s) for freetds
--->  Extracting freetds
--->  Configuring freetds
--->  Building freetds
--->  Staging freetds into destroot
--->  Installing freetds @0.82_0+darwin_9+mssql
Error: Target org.macports.install returned: Registry error: freetds @0.82_0+darwin_9+mssql already registered as installed.  Please uninstall it first.
Error: The following dependencies failed to build: freetds
Error: Status 1 encountered during processing.

If I manually activate freetds +mssql first, php5 detects the dependency and proceeds normally.

$ port activate freetds @0.82_0+darwin_9+mssql
--->  Activating freetds @0.82_0+darwin_9+mssql
$ port install php5 +apache2 +mssql
--->  Fetching php5
--->  Verifying checksum(s) for php5
--->  Extracting php5
^C

I thought this is what #12013 / r36762 was supposed to address.

I'm using MacPorts trunk @39108 on Mac OS X 10.5.4 Intel with Xcode 3.1.

Change History

  Changed 4 years ago by ryandesign@…

  • component changed from ports to base

  Changed 3 years ago by toby@…

  • milestone changed from MacPorts base bugs to MacPorts Future

Milestone MacPorts base bugs deleted

in reply to: ↑ description   Changed 3 years ago by jmr@…

Replying to ryandesign@…:

I thought this is what #12013 / r36762 was supposed to address.

Nope, that was upgrade, this is install.

  Changed 3 years ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacPorts Future to MacPorts 1.8.0

Fixed in r50490.

Note: See TracTickets for help on using tickets.