File: disable-version-check.diff

package info (click to toggle)
ruby-rmagick 2.13.2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,620 kB
  • ctags: 1,785
  • sloc: ansic: 16,759; ruby: 9,717; makefile: 14; sh: 14
file content (16 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: ruby-rmagick/ext/RMagick/rmmain.c
===================================================================
--- ruby-rmagick.orig/ext/RMagick/rmmain.c	2011-05-17 12:20:11.000000000 -0500
+++ ruby-rmagick/ext/RMagick/rmmain.c	2011-05-17 12:54:43.000000000 -0500
@@ -1639,6 +1639,11 @@
     int x, n;
     ID bypass = rb_intern("RMAGICK_BYPASS_VERSION_TEST");
 
+    /* Vincent Fourmond: disabled by default on Debian as it is
+       obnoxious and unnecessary when appropriate SONAME is set for
+       ImageMagick libraries (which we should assume anyway) */
+    return;
+
     if (RTEST(rb_const_defined(rb_cObject, bypass)) && RTEST(rb_const_get(rb_cObject, bypass)))
     {
         return;