New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #24572 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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 jmr@…) (diff)

$ 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

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

Change History

Changed 3 years ago by dweber@…

A copy of myports.txt from my system

comment:1 Changed 3 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 3 years ago by jmr@…

  • Owner changed from jmr to macports-tickets@…
  • Version 1.8.2 deleted
  • Component changed from ports to contrib
  • Description modified (diff)

comment:3 Changed 3 years ago by jmr@…

  • Owner changed from macports-tickets@… to mnick@…
  • Version set to 1.8.2
  • Component changed from contrib to ports
  • Port changed from restore_ports.tcl to vlc

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 3 years ago by jmr@…

  • Summary changed from migration restore_ports.tcl fails to vlc +huge variant causes an error

Specifically +huge:

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

comment:5 Changed 3 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.