You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Paul Hammant <pa...@hammant.org> on 2018/02/24 10:18:03 UTC

Building Subversion on the Mac

Based on Brane's email from yesterday, I did a build for Subversion on the
Mac, with Homebrew and XCode installed already.

brew install apr apr-util httpd serf zlib berkeley-db swig lz4 utf8proc

# These two were necessary for me, for some reason
# Although handing flags to ./configure was an alternative
brew link --force apr
brew link --force apr-util

./autogen.sh

./configure

make && make install

Exhaustive test suites and language-binding builds are another thing
altogether - this was basic build of binaries.

The list of brew installs were the ones needed by me to get over the line.
There's other that may have been needed for noobs, that I already had
installed.

Versions after Brew's actions:

apr 1.6.3
apr-util 1.6.1_1
httpd 2.4.29_1
serf 0.8.1
zlib 1.2.11
berkeley-db 6.2.32
swig 3.0.12
lz4 1.8.1.2
utf8proc 2.1

- ph

Re: Building Subversion on the Mac

Posted by Branko Čibej <br...@apache.org>.
On 24.02.2018 13:22, Paul Hammant wrote:
> The homebrew install does a source compile rather than pluck of a
> binary and compare to a SHA256 ?

Depends. By default, it'll get a binary, if it's available (that binary
is of course built from source using Homebrew's formulae). If a binary
isn't available for your fomula/platform/flags combination, or if you
force it to --build-from-source, it'll do just that.

-- Brane


Re: Building Subversion on the Mac

Posted by Paul Hammant <pa...@hammant.org>.
The homebrew install does a source compile rather than pluck of a binary
and compare to a SHA256 ?

-Paul

Re: Building Subversion on the Mac

Posted by Branko Čibej <br...@apache.org>.
On 24.02.2018 12:42, Paul Hammant wrote:
> This seems to work for me, based on your advice:
>
> ./configure --with-apr=/usr/local/opt/apr
> --with-apr-util=/usr/local/opt/apr-util
> --with-apxs=/usr/local/opt/apache2/bin/apxs
>
> I'm thinking those are solid Homebrew paths for most people.

Yes, they are. That's what I use in my builds, and that's what Homebrew
does internally for its Subversion build, too.

-- Brane


Re: Building Subversion on the Mac

Posted by Paul Hammant <pa...@hammant.org>.
This seems to work for me, based on your advice:

./configure --with-apr=/usr/local/opt/apr
--with-apr-util=/usr/local/opt/apr-util
--with-apxs=/usr/local/opt/apache2/bin/apxs

I'm thinking those are solid Homebrew paths for most people.

Re: Building Subversion on the Mac

Posted by Branko Čibej <br...@apache.org>.
On 24.02.2018 11:18, Paul Hammant wrote:
> Based on Brane's email from yesterday, I did a build for Subversion on
> the Mac, with Homebrew and XCode installed already.
>
> brew install apr apr-util httpd serf zlib berkeley-db swig lz4 utf8proc
>  
> # These two were necessary for me, for some reason
> # Although handing flags to ./configure was an alternative
> brew link --force apr
> brew link --force apr-util

Not such a good idea; this may break the default httpd and other tools
installed on macOS that use the system default APR and APR-Util.

> ./autogen.sh
>
> ./configure

Better to use --with-apr and --with-apr-util here; you'd also need
--with-apxs, to be on the safe side.

Note that Homebrew uses its own build of APR and APR-Util with
Subversion, and doesn't "brew link --force" them.


-- Brane