components/ruby/augeas/patches/augeas-01-extconf.patch
changeset 5901 cfee16e6e684
equal deleted inserted replaced
5900:8693308c6031 5901:cfee16e6e684
       
     1 Fix the environment so Ruby-Augeas finds the Augeas package information.
       
     2 This has not been pushed upstream as it is Solaris-specific.
       
     3 
       
     4 --- ruby-augeas-0.5.0/ext/augeas/extconf.rb.orig	2016-04-29 14:31:16.171732595 -0600
       
     5 +++ ruby-augeas-0.5.0/ext/augeas/extconf.rb	2016-04-29 14:31:39.159244851 -0600
       
     6 @@ -23,12 +23,13 @@
       
     7  
       
     8  extension_name = '_augeas'
       
     9  
       
    10 -unless pkg_config("augeas")
       
    11 -    raise "augeas-devel not installed"
       
    12 +$CFLAGS += " -I/usr/include/libxml2"
       
    13 +unless have_library("augeas")
       
    14 +    raise "libaugeas not installed"
       
    15  end
       
    16  
       
    17 -unless pkg_config("libxml-2.0")
       
    18 -    raise "libxml2-devel not installed"
       
    19 +unless have_library("xml2")
       
    20 +    raise "libxml2 not installed"
       
    21  end
       
    22  
       
    23  create_makefile(extension_name)