equal
deleted
inserted
replaced
|
1 --- ruby-1.8.7-p334.orig/ext/extmk.rb Thu Dec 24 01:01:58 2009 |
|
2 +++ ruby-1.8.7-p334/ext/extmk.rb Fri Mar 25 10:45:30 2011 |
|
3 @@ -17,6 +17,15 @@ |
|
4 $ignore = nil |
|
5 $message = nil |
|
6 |
|
7 +#The $do_not_build variable explicitly prevents |
|
8 +# extensions from being built. |
|
9 +# This is an Oracle internal patch created to prevent |
|
10 +# Ruby from automatically picking extensions |
|
11 +# for libraries that people integrate into Userland. |
|
12 +# This way, we can enable the extensions in our own |
|
13 +# time. |
|
14 +$do_not_build = %w(gdbm) |
|
15 + |
|
16 $progname = $0 |
|
17 alias $PROGRAM_NAME $0 |
|
18 alias $0 $progname |
|
19 @@ -440,6 +449,12 @@ |
|
20 |
|
21 hdrdir = $hdrdir |
|
22 $hdrdir = $top_srcdir = relative_from(srcdir, $topdir = "..") |
|
23 + |
|
24 +$do_not_build.each do |d| |
|
25 + exts.delete(d) |
|
26 + puts "Extension #{d} has been disabled by the build\n" |
|
27 +end |
|
28 + |
|
29 exts.each do |d| |
|
30 extmake(d) or abort |
|
31 end |