JuliaPackaging / Homebrew.jl

OSX Binary dependency provider for Julia
Other
27 stars 32 forks source link

Error: Operation already in progress for gdbm.formula #262

Open cmey opened 5 years ago

cmey commented 5 years ago

Hi @staticfloat

On Homebrew#master, there seems to be a problem building your version of glib:

julia> Homebrew.brew(`install staticfloat/juliatranslated/glib`)
==> Installing glib from staticfloat/juliatranslated
Error: Operation already in progress for gdbm.formula
Another active Homebrew process is already using gdbm.formula.
Please wait for it to finish or terminate it to continue.
ERROR: failed process: Process(`/Users/cmeyer/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install staticfloat/juliatranslated/glib`, ProcessExited(1)) [1]
Stacktrace:
 [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
 [2] pipeline_error at ./process.jl:785 [inlined]
 [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
 [4] run at ./process.jl:724 [inlined]
 [5] #brew#4(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Cmd) at /Users/cmeyer/.julia/packages/Homebrew/SvXTp/src/API.jl:19
 [6] brew(::Cmd) at /Users/cmeyer/.julia/packages/Homebrew/SvXTp/src/API.jl:11
 [7] top-level scope at none:0
(WaveSim.jl) pkg> st
    Status `~/Code/julia/WaveSim.jl/Project.toml`
  [d9be37ee] + Homebrew v0.6.4 #master (https://github.com/JuliaPackaging/Homebrew.jl.git)

julia> versioninfo()
Julia Version 1.1.1
Commit 55e36cc (2019-05-16 04:10 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin15.6.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4

Even clearing my locks did not help (same error after repeating the first command):

rm -rf /Users/cmeyer/.julia/packages/Homebrew/SvXTp/deps/usr/var/homebrew/locks/*
BeastyBlacksmith commented 5 years ago

same for me

darsnack commented 5 years ago

Getting the same issue with Homebrew.jl#master

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
kraftpunk97-zz commented 5 years ago

+1 pinging @staticfloat

cjprybol commented 5 years ago

I ended up here after following through https://github.com/JuliaGraphics/Cairo.jl/issues/271 and https://github.com/JuliaGraphics/Cairo.jl/issues/287.

switching to the default versions of homebrew packages instead of those in the staticfloat/juliatranslated package set and installing them from the command line seemed to be enough to work towards a successful Cairo build

first error

julia> Pkg.build("Cairo")
  Building LibCURL ─→ `~/.julia/packages/LibCURL/lWJxD/deps/build.log`
  Building WinRPM ──→ `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew → `~/.julia/packages/Homebrew/SvXTp/deps/build.log`
  Building Cairo ───→ `~/.julia/dev/Cairo/deps/build.log`
 Resolving package versions...
┌ Error: Error building `Cairo`: 
│ WARNING: redefining constant DEBIAN_VERSION_REGEX
│ WARNING: redefining constant have_sonames
│ WARNING: redefining constant sonames
│ WARNING: redefining constant EXTENSIONS
│ Error: Operation already in progress for libpng.formula
│ Another active Homebrew process is already using libpng.formula.
│ Please wait for it to finish or terminate it to continue.
│ ==> Installing harfbuzz from staticfloat/juliatranslated
│ ERROR: LoadError: failed process: Process(`/Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install staticfloat/juliatranslated/harfbuzz`, ProcessExited(1)) [1]
[...]

first fix

shell> /Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install harfbuzz

second error

julia> Pkg.build("Cairo")
  Building LibCURL ─→ `~/.julia/packages/LibCURL/lWJxD/deps/build.log`
  Building WinRPM ──→ `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew → `~/.julia/packages/Homebrew/SvXTp/deps/build.log`
  Building Cairo ───→ `~/.julia/dev/Cairo/deps/build.log`
 Resolving package versions...
┌ Error: Error building `Cairo`: 
│ WARNING: redefining constant DEBIAN_VERSION_REGEX
│ WARNING: redefining constant have_sonames
│ WARNING: redefining constant sonames
│ WARNING: redefining constant EXTENSIONS
│ Error: Operation already in progress for libpng.formula
│ Another active Homebrew process is already using libpng.formula.
│ Please wait for it to finish or terminate it to continue.
│ ==> Installing pango from staticfloat/juliatranslated
│ ERROR: LoadError: failed process: Process(`/Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install staticfloat/juliatranslated/pango`, ProcessExited(1)) [1]
[...]

second fix

shell> /Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install pango

successful build

julia> Pkg.build("Cairo")
  Building LibCURL ─→ `~/.julia/packages/LibCURL/lWJxD/deps/build.log`
  Building WinRPM ──→ `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew → `~/.julia/packages/Homebrew/SvXTp/deps/build.log`
  Building Cairo ───→ `~/.julia/dev/Cairo/deps/build.log`
 Resolving package versions...
false

julia> using Cairo

julia>

This doesn't address the issue of why the package versions that are installing by default don't work, but hopefully others can work through this solution until a general solution is developed

aramirezreyes commented 4 years ago

Problem persists, had to manually install (using @cjprybol 's trick)

fontoconfig pango harfbuzz cairo glib

What can we do to help solving the "Another active Homebrew process..." thing, @staticfloat ?