Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#22847 closed defect (fixed)

ports installed as dependencies do not record variants in their statefile

Reported by: cerieljacobs@… Owned by: macports-tickets@…
Priority: Low Milestone: MacPorts 1.8.2
Component: base Version: 1.8.1
Keywords: Cc: jabronson@…, ryandesign (Ryan Carsten Schmidt), jmroot (Joshua Root)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Environment: 10.6.2
XCode: 3.2.1
MacPorts: 1.8.1
64-bit: yes (also optimizations set in macports conf)

When installing CouchDB, due to a build error in erlang, a message was spotted that erlang is not in the same variant:

[user@mac ~]$ sudo port install couchdb
<snip>
Error: The following dependencies failed to build: erlang icu spidermonkey nspr
Error: Status 1 encountered during processing.
[user@mac ~]$ sudo port -v install erlang                  (11-12-09 23:04)
Error: Requested variants "+darwin_10" do not match original selection "".
Please use the same variants again, perform 'port clean erlang' or specify the force option (-f).
Error: Status 1 encountered during processing.

Isn't it better that dependencies of CouchDB are installed using the default applicable variants?

Now it looks like it is better to install erlang using variant darwin_10, but that is not done due to the fact that it is installed as dependancy of CouchDB.

Change History (14)

comment:1 Changed 15 years ago by cerieljacobs@…

Cc: cerieljacobs@… added

Cc Me!

comment:2 Changed 15 years ago by cerieljacobs@…

Cc: cerieljacobs@… removed

Cc Me!

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Cc: febeling@… added
Description: modified (diff)
Keywords: stripped variant +darwin_10 removed
Owner: changed from macports-tickets@… to jwa@…

It's not at all clear what the supposed bug is here. Could you break it down into steps to reproduce, expected result and actual result?

comment:4 Changed 15 years ago by cerieljacobs@…

Expected result: That "port install couchdb" installs dependency 'erlang' with variant "darwin_10" as does the command "port install erlang" (without specifying any further options).

Actual result: "port install erlang" installs with variant "darwin_10" and "port install couchdb" installs the 'erlang' component with variant ""

comment:5 Changed 15 years ago by jmroot (Joshua Root)

I'm unable to reproduce that behaviour.

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Cc: bfulgham@… added

comment:7 Changed 15 years ago by cerieljacobs@…

Some more details, maybe that helps:

Environment: intel core2duo processor

Non-default settings used in:
/opt/local/share/macports/Tcl/port1.0/portconfigure.tcl

default configure.optflags {-fast}
default configure.march {nocona}
default configure.mtune {generic}

comment:8 Changed 15 years ago by cerieljacobs@…

Steps to reproduce:

$ port uninstall erlang couchdb
$ port clean erlang couchdb
$ port install couchdb
--->  Computing dependencies for couchdb
--->  Fetching erlang
--->  Verifying checksum(s) for erlang
--->  Extracting erlang
--->  Applying patches to erlang
--->  Configuring erlang
--->  Building erlang
Error: xyz (see bug#22848)
$ port install erlang
Error: Requested variants "+darwin_10" do not match original selection "".
Please use the same variants again, perform 'port clean erlang' or specify the force option (-f).
Error: Status 1 encountered during processing.

Let me know with what I could help debugging this issue.

comment:9 Changed 15 years ago by jabronson@…

Cc: jabronson@… added

Cc Me!

comment:10 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Please remember to use WikiFormatting and preview your posts. I have attempted to correct your formatting in your posts above.

comment:11 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: febeling@… bfulgham@… removed
Component: portsbase
Milestone: MacPorts Future
Port: couchdb removed

I am able to reproduce the issue with your recipe. I believe it's only an annoyance; I believe that if #22848 were resolved, erlang would have been correctly installed with its +darwin_10 variant. In debug mode, I see this either way:

DEBUG: Executing variant darwin_10 provides darwin_10

So I think it's just a bug in the mechanism used to determine if you've selected different variants: you haven't, but MacPorts incorrectly believes you have.

comment:12 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Owner: changed from jwa@… to macports-tickets@…

comment:13 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Resolution: fixed
Status: newclosed
Summary: install of couchdb seems to install dependancy erlang without the +darwin_10 variantports installed as dependencies do not record variants in their statefile

Fixed, r62194.

comment:14 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.8.2

Merged to branch in r62195.

Note: See TracTickets for help on using tickets.