On Thu, Jan 17, 2019 at 7:04 AM Branko Čibej <brane_at_apache.org> wrote:
> On 16.01.2019 21:51, Mark Phippard wrote:
>
> On Wed, Jan 16, 2019 at 2:54 PM Mark Phippard <markphip_at_gmail.com> wrote:
>
>> On Wed, Jan 16, 2019 at 2:10 PM Branko Čibej <brane_at_apache.org> wrote:
>>
>>> On 16.01.2019 15:39, Mark Phippard wrote:
>>> > I am trying to update my Homebrew and it looks like it wants to move
>>> > me from SVN 1.10 to 1.11 but it is failing. I do not recall even
>>> > asking it to install the Ruby bindings but perhaps I did once. I
>>> > thought I just had --with-java since I do need JavaHL. Any ideas?
>>> >
>>> > ==> make swig-rb EXTRA_SWIG_LDFLAGS=-L/usr/lib
>>> > Last 15 lines from
>>> /Users/xxxx/Library/Logs/Homebrew/subversion/14.make:
>>> > 2019-01-16 09:36:12 -0500
>>> >
>>> > make
>>> > swig-rb
>>> > EXTRA_SWIG_LDFLAGS=-L/usr/lib
>>> >
>>> > /bin/sh
>>> >
>>> "/private/tmp/subversion-20190116-34242-xgy0wo/subversion-1.11.1/libtool"
>>> > --tag=CC --silent --mode=compile none -I/usr/local/opt/sqlite/include
>>> > -I/usr/local/opt/readline/include -I/usr/local/opt/gettext/include
>>> > -I/usr/local/opt/openssl/include -F/usr/local/Frameworks -isysroot
>>> > /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -DDARWIN
>>> > -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10
>>> >
>>> -I/private/tmp/subversion-20190116-34242-xgy0wo/subversion-1.11.1/subversion/bindings/swig/ruby/libsvn_swig_ruby
>>> > -prefer-pic -c -o subversion/bindings/swig/ruby/svn_client.lo
>>> > subversion/bindings/swig/ruby/svn_client.c
>>> >
>>> /private/tmp/subversion-20190116-34242-xgy0wo/subversion-1.11.1/libtool:
>>> > line 1760: none: command not found
>>> > make: *** [subversion/bindings/swig/ruby/svn_client.lo] Error 1
>>> >
>>> >
>>> > I do not need these so ideas could include telling me how to
>>> > reconfigure my install so that it does not try to build these. I only
>>> > need the SVN command line and JavaHL. Do not care about any other
>>> > language bindings.
>>>
>>>
>>> https://github.com/Homebrew/homebrew-core/pull/33530
>>>
>>>
>> I am not seeing what the solution was. The last message seemed to be
>> about unsetting SDKROOT but that seemed internal to Brew, not my env.
>>
>>
> FWIW, I decided to use $ brew edit subversion to stop the swig-rb from
> trying to build, but if there is some fix I can make to my local machine
> would appreciate knowing what that is for future versions. I looked through
> those PR's and it seemed like all of the "fixes" were made in the build
> scripts. I only have the CLT installed:
>
> $ brew config
> HOMEBREW_VERSION: 1.9.2-9-g9141b15
> ORIGIN: https://github.com/Homebrew/brew.git
> HEAD: 9141b1509bb44da6c0a9683733ffe4a890690d8e
> Last commit: 12 hours ago
> Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
> Core tap HEAD: 82dc586c001a22051376ecbf8076473d67089370
> Core tap last commit: 9 hours ago
> HOMEBREW_PREFIX: /usr/local
> HOMEBREW_CASK_OPTS: --appdir=/Applications
> HOMEBREW_DEV_CMD_RUN: 1
> HOMEBREW_LOGS: /Users/markphip/Library/Logs/Homebrew
> CPU: octa-core 64-bit haswell
> Homebrew Ruby: 2.3.7 =>
> /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
> Clang: 10.0 build 1000
> Git: 2.20.1 => /usr/local/bin/git
> Curl: 7.54.0 => /usr/bin/curl
> Java: 1.8.0_60, 1.8.0_31
> macOS: 10.14.2-x86_64
> CLT: 10.1.0.0.1.1539992718
> Xcode: N/A
>
> $ xcode-select -v
> xcode-select version 2354.
>
> All updates are installed.
>
>
> $ brew config
> HOMEBREW_VERSION: 1.9.2-23-g609a91c
> ORIGIN: https://github.com/Homebrew/brew.git
> HEAD: 609a91c34547b0ccfdabde1cfdd39488b8d970c0
> Last commit: 2 hours ago
> Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
> Core tap HEAD: 9c59062900e897cebbcbf3a95e86282df4feb509
> Core tap last commit: 3 hours ago
> HOMEBREW_PREFIX: /usr/local
> HOMEBREW_DEV_CMD_RUN: 1
> HOMEBREW_GITHUB_API_TOKEN: set
> HOMEBREW_LOGS: /Users/brane/Library/Logs/Homebrew
> HOMEBREW_NO_ANALYTICS: 1
> CPU: octa-core 64-bit kabylake
> Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
> Clang: 10.0 build 1000
> Git: 2.20.1 => /usr/local/bin/git
> Curl: 7.54.0 => /usr/bin/curl
> Java: 11, 1.8.0_191
> macOS: 10.14.2-x86_64
> CLT: 10.1.0.0.1.1539992718
> Xcode: 10.1
> XQuartz: 2.7.11 => /opt/X11
>
> $ xcode-select -v
> xcode-select version 2354.
>
>
> $ brew uninstall subversion
> Uninstalling /usr/local/Cellar/subversion/1.11.1... (274 files, 35.6MB)
> $ brew install subversion --with-java
> ==> Installing subversion --with-java
> ==> Downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.11.1.tar.bz2
> ==> Downloading from https://www.apache.si/subversion/subversion-1.11.1.tar.bz2
> ######################################################################## 100.0%
> ==> Patching
> patching file subversion/bindings/swig/perl/native/Makefile.PL.in
> patching file build/get-py-info.py
> ==> Downloading https://www.apache.org/dyn/closer.cgi?path=serf/serf-1.3.9.tar.bz2
> ==> Downloading from https://www.apache.si/serf/serf-1.3.9.tar.bz2
> ######################################################################## 100.0%
> Warning: Calling scons is deprecated! Use system "scons" instead.
> Please report this to the homebrew/core tap, or even better, submit a PR to fix it:
> /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/subversion.rb:79
>
> ==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion/1.11.1/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os
> ==> scons install
> ==> ./configure --prefix=/usr/local/Cellar/subversion/1.11.1 --enable-optimize --disable-mod-activation --disable-plaintext-password
> ==> make
> ==> make install
> ==> make tools
> ==> make install-tools
> ==> make swig-py
> ==> make install-swig-py
> ==> make swig-pl
> ==> make install-swig-pl
> ==> make javahl
> ==> make install-javahl
> ==> make swig-rb EXTRA_SWIG_LDFLAGS=-L/usr/lib
> ==> make install-swig-rb
> ==> Caveats
> svntools have been installed to:
> /usr/local/opt/subversion/libexec
>
> The perl bindings are located in various subdirectories of:
> /usr/local/opt/subversion/lib/perl5
>
> If you wish to use the Ruby bindings you may need to add:
> /usr/local/lib/ruby
> to your RUBYLIB.
>
> You may need to link the Java bindings into the Java Extensions folder:
> sudo mkdir -p /Library/Java/Extensions
> sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib
>
> Bash completion has been installed to:
> /usr/local/etc/bash_completion.d
> ==> Summary
> 🍺 /usr/local/Cellar/subversion/1.11.1: 279 files, 37.5MB, built in 10 minutes 19 seconds
>
>
> (Yes, it takes that long because Homebrew forces 'make -j1' for everything
> when it will build JavahL.)
>
> The only thing I can suggest is that you install Xcode whether you use it
> or not. I never use it but I do install it and run it every now and then to
> install updates.
>
>
Thanks, I gave this a try today, unfortunately it still fails.
Is this a valid (and quicker) way to check my dev environment before trying
to do the full build?
/usr/bin/ruby -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)'
Because this still gives the same error about the developer tools not being
installed. A Google search led me to this which looked promising:
https://blog.driftingruby.com/updated-to-mojave/
But unfortunately it wasn't. I even tried following a link in the comments
to re-download the command line tools and that did not help either. I will
just go back to editing the subversion.rb for now. BTW, do you know why SVN
cannot be packaged as a bottle? It might be the only formula I have
installed that still builds from source. I would think it could just bundle
everything and if the user does --with-java it creates the symlink
otherwise it skips that.
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2019-01-17 21:35:53 CET