Opened 9 years ago

Closed 9 years ago

#24572 closed defect (fixed)

vlc +huge variant causes an error

Reported by: dweber@… Owned by: mnick@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: vlc

Description (last modified by jmroot (Joshua Root))

$ sudo ./restore_ports.tcl myports.txt
Warning: Skipping Libstreams (not in the ports tree)
Warning: Skipping p5-io-compress-bzip2 (not in the ports tree)
Warning: Skipping python23 (not in the ports tree)
Warning: Skipping render (not in the ports tree)
Error evaluating variants
    while executing
"error "Error evaluating variants""
    (procedure "mportopen" line 55)
    invoked from within
"mportopen $portInfo(porturl) {} $variantInfo"
    (procedure "dependenciesForPort" line 9)
    invoked from within
"dependenciesForPort $name $variants"
    (procedure "sort_ports" line 46)
    invoked from within
"sort_ports $portList"
    invoked from within
"set operationList [sort_ports $portList]"
    (file "./restore_ports.tcl" line 246)
$ 
$ ./restore_ports.tcl -V
Version 0.1
MacPorts version 1.8.2

Attachments (1)

myports.txt (23.1 KB) - added by dweber@… 9 years ago.
A copy of myports.txt from my system

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by dweber@…

Attachment: myports.txt added

A copy of myports.txt from my system

comment:1 Changed 9 years ago by dweber@…

In response to this failure, I created a sed script to convert the myports.txt file into a bash script. It's not the best solution, but it sorta works for me.

$ cat myports.txt | /usr/bin/sed \
 -e 's/@[._0-9a-zA-Z\-]*+/+/' \
 -e 's/@[._0-9a-zA-Z \-]*(active)//' \
 -e 's/(active)//' \
 -e 's/+/ +/g' \
 -e 's/[+]darwin[_i0-9]*//g' \
 -e 's/+macosx//g' \
 -e 's/+i386//g' \
 -e 's/+gcc[0-9]*//' \
 -e '$q;s/$/ \\/' \
 -e 's/.*currently installed:.*/#!\/bin\/bash/' \
 -e '/\bin\/bash/ a\
 sudo port install \\
 ' > myports.bash
$ chmod +x myports.bash
$ ./myports.bash

comment:2 Changed 9 years ago by jmroot (Joshua Root)

Component: portscontrib
Description: modified (diff)
Owner: changed from jmr to macports-tickets@…
Version: 1.8.2

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

Component: contribports
Owner: changed from macports-tickets@… to mnick@…
Port: vlc added; restore_ports.tcl removed
Version: 1.8.2

Apparently your selection of variants for VLC doesn't work:

% port info VLC +bonjour+dvb+fribidi+huge+live555+macosx+mod+mpc+osd+sdl+shout+speex+svg+theora+twolame+vcd+x264
Error: Unable to open port: Error evaluating variants

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

Summary: migration restore_ports.tcl failsvlc +huge variant causes an error

Specifically +huge:

% port info VLC +huge
Error: Unable to open port: Error evaluating variants

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

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