Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

subversion: make python bindings build on 10.9. #26156

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Library/Formula/subversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class Subversion < Formula
# If building bindings, allow non-system interpreters
env :userpaths if build.include? 'perl' or build.include? 'ruby'

# Prevent '-arch ppc' from being pulled in from Perl's $Config{ccflags}
# 1. Prevent '-arch ppc' from being pulled in from Perl's $Config{ccflags}
# 2. Fix python bindings compile on 10.9
# http://subversion.tigris.org/issues/show_bug.cgi?id=4465
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks from the thread that this might not be the right approach.

def patches
{ :p0 => DATA }
end
Expand Down Expand Up @@ -255,3 +257,14 @@ def caveats
" -I$swig_srcdir/perl/libsvn_swig_perl",
" -I$svnlib_srcdir/include",

--- build.conf 2014-01-24 19:55:04.000000000 -0700
+++ build.conf.orig 2014-01-24 19:53:58.000000000 -0700
@@ -71,7 +71,7 @@

bdb-test-scripts =

-swig-python-opts = $(CPPFLAGS) -python -classic
+swig-python-opts = $(filter-out -F/% -isystem/%,$(CPPFLAGS)) -python -classic
swig-perl-opts = $(CPPFLAGS) -perl -nopm -noproxy
swig-ruby-opts = $(CPPFLAGS) -ruby
swig-languages = python perl ruby