pigoz / mplayerosx-builds

build scripts of mplayer2 for Mac OSX
35 stars 8 forks source link

rake build fails #2

Closed Akemi closed 13 years ago

Akemi commented 13 years ago

unfortunately rake build fails. hope you can help me.

here rake build --trace:


$ rake build --trace
(in /Users/Akemi/mplayerosx-builds)
** Invoke build (first_time)
** Execute build
brew install /Users/Akemi/mplayerosx-builds/formulae/mplayer2.rb
Error: undefined method `include?' for #<Pathname:/Users/Akemi/mplayerosx-builds/formulae/ffmpeg-mt.rb>
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
/usr/local/Library/Homebrew/formula.rb:364:in `factory'
/usr/local/Library/Homebrew/formula.rb:416:in `expand_deps'
/usr/local/Library/Homebrew/formula.rb:415:in `map'
/usr/local/Library/Homebrew/formula.rb:415:in `expand_deps'
/usr/local/Library/Homebrew/formula.rb:411:in `recursive_deps'
/usr/local/Library/Homebrew/formula_installer.rb:19:in `go'
/usr/local/Library/Homebrew/cmd/install.rb:63:in `install_formulae'
/usr/local/Library/Homebrew/cmd/install.rb:59:in `each'
/usr/local/Library/Homebrew/cmd/install.rb:59:in `install_formulae'
/usr/local/Library/Homebrew/cmd/install.rb:12:in `install'
/usr/local/bin/brew:83:in `send'
/usr/local/bin/brew:83
rake aborted!
Command failed with status (1): [brew install /Users/Akemi/mplayerosx-build...]
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'
/Users/Akemi/mplayerosx-builds/Rakefile:20:in `block in <top (required)>'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
/Users/Akemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `load'
/Users/Akemi/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `<main>'
pigoz commented 13 years ago

Could you test by changing line 12 in formulae/mplayer2.rb

from
depends_on Pathname.new(FILE).dirname + 'ffmpeg-mt.rb' => :build

to
depends_on File.join(File.dirname(FILE), 'ffmpeg-mt.rb') => :build

Akemi commented 13 years ago

nice, works fine now without errors. thanks.

another question. the rake task to create a distributable bundle (rake pkg:mposxd) won't work right now? if it should work, i always get an error that the file "dsa_pub.pem" doesn't exist in my home directory.

pigoz commented 13 years ago

use rake pkg:mposxt instead, rake pkg:mposxd is the one I use to distribute my binaries and it tries to sign it with my private RSA key for Sparkle.

Akemi commented 13 years ago

i am using/testing mac os lion at the moment and lot of things won't work. so i wanted to build it on another system to test it on lion. but it's no big deal, will play a little bit with lion and maybe i get rid of the problems. for now it works on snow leopard and is really a big improvement over the last version. precise skipping in the video (no key frames) is really nice and the bugs i had with some releases with flac audio disappeared. really nice work. thanks.

pigoz commented 13 years ago

did you try to build it on Lion or the binary for Snow Leopard doesn't work? I'm quite interested in making changes in the build system to prepare for Lion if possible.

Akemi commented 13 years ago

tried to build it on lion, but got some errors. something xcode or homebrew related. i will try it from scratch on lion again, because i messed a little with the system.

yesterday i copied all libs and the binary from snow leopard to lion and it works just fine, no problems.