Opened 16 years ago

Closed 16 years ago

#16260 closed defect (fixed)

port rebuilds inactive dependency then can't install it

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.0
Component: base Version: 1.7.0
Keywords: Cc: jmroot (Joshua Root)
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 (4)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase

comment:2 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:3 in reply to:  description Changed 16 years ago by jmroot (Joshua Root)

Replying to ryandesign@…:

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

Nope, that was upgrade, this is install.

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.8.0
Resolution: fixed
Status: newclosed

Fixed in r50490.

Note: See TracTickets for help on using tickets.