Ticket #16260 (closed defect: fixed)
port rebuilds inactive dependency then can't install it
|Reported by:||ryandesign@…||Owned by:||macports-tickets@…|
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'm using MacPorts trunk @39108 on Mac OS X 10.5.4 Intel with Xcode 3.1.
- Milestone changed from MacPorts base bugs to MacPorts Future