23170303 augeas upgrade breaks ruby/augeas build
authorGeoffrey Gardella <geoffrey.gardella@oracle.com>
Mon, 02 May 2016 17:20:40 -0700
changeset 5901 cfee16e6e684
parent 5900 8693308c6031
child 5902 04ff9e7d7ef5
23170303 augeas upgrade breaks ruby/augeas build
components/ruby/augeas/patches/augeas-01-extconf.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/augeas/patches/augeas-01-extconf.patch	Mon May 02 17:20:40 2016 -0700
@@ -0,0 +1,23 @@
+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
[email protected]@ -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)