memcached 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- O3���Ց�U��$�ܘ�� �8`𺱭��軡$��s {�r1>�R*�7+����o%�n6A���M���=s&ycO���7hi�@ꂪ_h_p���I���f))*PʉSH?�V7�*�D<���@v>>����
2
- |� &�X��T.\��YqW9.4�(1����ǾAx!�63z����݋Jv^�i�\���Us�eDR)���K��4��k�a�>'Α�Vǐ�b�5�V�/�@���� �P���p
1
+ `Fn���T��SS��@��A��,�~�רv1f��6�Ԋ�T�:4뇒��8_\/o����f�8��_��}��d�f�K�9cLu�踖�c��>? mX荿�@�3R���R����<T�DK����{!m���z�<�Uuw,�L3ntꉿ.���4�\���iD��H{��P�yYKӱp��0׍�4l���Ґ(Փ������Fz=eee��
2
+ b����$j���.����
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v1.0.6. Make build step repeatable in the event of failure.
2
+
1
3
  v1.0.5. Fix Manifest.
2
4
 
3
5
  v1.0.4. Fix server_failure_count mangling in memcached_quit.
data/ext/extconf.rb CHANGED
@@ -14,12 +14,22 @@ $LDFLAGS = "#{RbConfig::CONFIG['LDFLAGS']} #{$LDFLAGS} -L#{RbConfig::CONFIG['lib
14
14
  $CXXFLAGS = " -std=gnu++98 #{$CFLAGS}"
15
15
  $CPPFLAGS = $ARCH_FLAG = $DLDFLAGS = ""
16
16
 
17
+ GMAKE_CMD = Config::CONFIG['host_os'].downcase =~ /bsd|solaris/ ? "gmake" : "make"
18
+ TAR_CMD = SOLARIS_32 ? 'gtar' : 'tar'
19
+ PATCH_CMD = SOLARIS_32 ? 'gpatch' : 'patch'
20
+
17
21
  if ENV['DEBUG']
18
22
  puts "Setting debug flags."
19
23
  $CFLAGS << " -O0 -ggdb -DHAVE_DEBUG"
20
24
  $EXTRA_CONF = ""
21
25
  end
22
26
 
27
+ def patch(prefix, reason)
28
+ puts "Patching libmemcached source for #{reason}."
29
+ puts(cmd = "#{PATCH_CMD} -p1 -f < #{prefix}.patch")
30
+ raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
31
+ end
32
+
23
33
  def check_libmemcached
24
34
  return if ENV["EXTERNAL_LIB"]
25
35
 
@@ -35,45 +45,24 @@ def check_libmemcached
35
45
  if File.exist?("lib")
36
46
  puts "Libmemcached already built; run 'rake clean' first if you need to rebuild."
37
47
  else
38
- tar = SOLARIS_32 ? 'gtar' : 'tar'
39
- patch = SOLARIS_32 ? 'gpatch' : 'patch'
40
-
41
48
  # have_sasl check may fail on OSX, skip it
42
49
  # unless RUBY_PLATFORM =~ /darwin/ or have_library('sasl2')
43
50
  # raise "SASL2 not found. You need the libsasl2-dev library, which should be provided through your system's package manager."
44
51
  # end
45
52
 
53
+ system("rm -rf #{BUNDLE_PATH}") unless ENV['DEBUG'] or ENV['DEV']
54
+
46
55
  puts "Building libmemcached."
47
- puts(cmd = "#{tar} xzf #{BUNDLE} 2>&1")
56
+ puts(cmd = "#{TAR_CMD} xzf #{BUNDLE} 2>&1")
48
57
  raise "'#{cmd}' failed" unless system(cmd)
49
58
 
50
- puts "Patching libmemcached source."
51
- puts(cmd = "#{patch} -p1 -Z < libmemcached.patch")
52
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
53
-
54
- puts "Patching libmemcached with SASL support."
55
- puts(cmd = "#{patch} -p1 -Z < sasl.patch")
56
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
57
-
58
- puts "Patching libmemcached for get_from_last support."
59
- puts(cmd = "#{patch} -p1 -Z < libmemcached-2.patch")
60
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
61
-
62
- puts "Patching libmemcached for no block prepend and append support."
63
- puts(cmd = "#{patch} -p1 -Z < libmemcached-3.patch")
64
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
65
-
66
- puts "Patching libmemcached for noop hash support."
67
- puts(cmd = "#{patch} -p1 -Z < libmemcached-4.patch")
68
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
69
-
70
- puts "Patching libmemcached for get_len command."
71
- puts(cmd = "#{patch} -p1 -Z < libmemcached-5.patch")
72
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
73
-
74
- puts "Patching libmemcached for failure count breakage."
75
- puts(cmd = "#{patch} -p1 -Z < libmemcached-6.patch")
76
- raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
59
+ patch("libmemcached", "mark-dead behavior")
60
+ patch("sasl", "SASL")
61
+ patch("libmemcached-2", "get_from_last method")
62
+ patch("libmemcached-3", "no block prepend and append")
63
+ patch("libmemcached-4", "noop hash")
64
+ patch("libmemcached-5", "get_len method")
65
+ patch("libmemcached-6", "failure count bug")
77
66
 
78
67
  puts "Touching aclocal.m4 in libmemcached."
79
68
  puts(cmd = "touch -r #{BUNDLE_PATH}/m4/visibility.m4 #{BUNDLE_PATH}/configure.ac #{BUNDLE_PATH}/m4/pandora_have_sasl.m4")
@@ -83,10 +72,10 @@ def check_libmemcached
83
72
  puts(cmd = "env CFLAGS='-fPIC #{$CFLAGS}' LDFLAGS='-fPIC #{$LDFLAGS}' ./configure --prefix=#{HERE} --without-memcached --disable-shared --disable-utils --disable-dependency-tracking #{$EXTRA_CONF} 2>&1")
84
73
  raise "'#{cmd}' failed" unless system(cmd)
85
74
 
86
- puts(cmd = "make CXXFLAGS='#{$CXXFLAGS}' || true 2>&1")
75
+ puts(cmd = "#{GMAKE_CMD} CXXFLAGS='#{$CXXFLAGS}' || true 2>&1")
87
76
  raise "'#{cmd}' failed" unless system(cmd)
88
77
 
89
- puts(cmd = "make install || true 2>&1")
78
+ puts(cmd = "#{GMAKE_CMD} install || true 2>&1")
90
79
  raise "'#{cmd}' failed" unless system(cmd)
91
80
  end
92
81
 
data/memcached.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{memcached}
5
- s.version = "1.0.5"
5
+ s.version = "1.0.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Weaver"]
9
9
  s.cert_chain = ["/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
10
- s.date = %q{2011-01-27}
10
+ s.date = %q{2011-02-09}
11
11
  s.description = %q{An interface to the libmemcached C client.}
12
12
  s.email = %q{}
13
13
  s.extensions = ["ext/extconf.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcached
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evan Weaver
@@ -36,7 +36,7 @@ cert_chain:
36
36
  yZ0=
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2011-01-27 00:00:00 -08:00
39
+ date: 2011-02-09 00:00:00 -08:00
40
40
  default_executable:
41
41
  dependencies: []
42
42
 
metadata.gz.sig CHANGED
Binary file