Opened 12 years ago

Closed 12 years ago

#38681 closed defect (duplicate)

mdmg seems to get confused when deps have variants on by default

Reported by: rogerdpack@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.3
Keywords: mdmg Cc:
Port:

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

Hello. I have this port:

$ port deps rdp-projects
Full Name: rdp-projects @0_6
Fetch Dependencies:   subversion
Library Dependencies: ffmpeg, gocr, ImageMagick, mplayer-edl

If I run, for instance,

$ sudo port mdmg -f rdp-projects

it happily builds and works, and creates a dmg file. So far so good.

If I then re-run that same command, this is what I then get:

$ sudo port mdmg -f rdp-projects
--->  Computing dependencies for rdp-projects
--->  Creating pkg for rdp-projects-0
--->  Package for rdp-projects-0 is up-to-date
...
Error: Requested variants "+gpl2" do not match original selection "".
Please use the same variants again, perform 'port clean ffmpeg' or specify the force option (-f).
Error: org.macports.mpkg for port rdp-projects returned: Processing of port ffmpeg failed
Please see the log file for port rdp-projects for details:
    /opt/rdp_project_local/var/macports/logs/_Users_rogerdpack_dev_mplayer-svn_mplayer_patches_port_dir_multimedia_rdp-projects/rdp-projects/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port rdp-projects failed

(as a note, specifying -f for force apparently does nothing to help here)

$ port clean ffmpeg does "temporarily" overcome the problem, so that it works again once, but then some other dependency will fail in like manner, like perl5. So if I then run a "port clean perl" and try it again, ffmpeg now fails again, since it's "unclean" from the previous run. So I have to manually, one after another figure out all the dependencies, and clean them all (or clean all installed) first.

Anyway appears this has been seen before: https://lists.macosforge.org/pipermail/macports-users/2009-December/018201.html though I didn't see a resolution.

Anyway, see if you can reproduce it.
Thanks!
-roger-

Change History (4)

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

Component: portsbase
Description: modified (diff)

comment:2 in reply to:  description Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to rogerdpack@…:

$ sudo port mdmg -f rdp-projects

(as a note, specifying -f for force apparently does nothing to help here)

The -f flag (and other single-letter flags) are global and have no effect unless placed immediately after the word port, before the verb, so in this case, sudo port -f mdmg ..., however I'm not aware of any reason to use the -f flag with the mdmg verb. The -f flag can be dangerous and should only be used in a few specific instances, and where you understand its consequences. For example, in this case, the message says the variants don't match; using the -f flag to override this error will cause the port to claim to have been installed with one variant but to actually get installed with a different variant, which is probably not what you want.

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

This bug might be a duplicate of #35093.

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

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.