components/ruby/augeas/patches/augeas-01-extconf.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 12 Oct 2016 05:02:11 -0700
changeset 7099 58b579e0ff32
parent 5901 cfee16e6e684
permissions -rw-r--r--
24836953 firefox/thunderbird js test failures

Fix the environment so Ruby-Augeas finds the Augeas package information.
This has not been pushed upstream as it is Solaris-specific.

--- ruby-augeas-0.5.0/ext/augeas/extconf.rb.orig	2016-04-29 14:31:16.171732595 -0600
+++ ruby-augeas-0.5.0/ext/augeas/extconf.rb	2016-04-29 14:31:39.159244851 -0600
@@ -23,12 +23,13 @@
 
 extension_name = '_augeas'
 
-unless pkg_config("augeas")
-    raise "augeas-devel not installed"
+$CFLAGS += " -I/usr/include/libxml2"
+unless have_library("augeas")
+    raise "libaugeas not installed"
 end
 
-unless pkg_config("libxml-2.0")
-    raise "libxml2-devel not installed"
+unless have_library("xml2")
+    raise "libxml2 not installed"
 end
 
 create_makefile(extension_name)