Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427970 - =dev-ruby/ruby-augeas-0.4.1 - In file included from _augeas.c:23:0: /usr/include/augeas.h:24:25: fatal error: libxml/tree.h: No such file or directory
Summary: =dev-ruby/ruby-augeas-0.4.1 - In file included from _augeas.c:23:0: /usr/incl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
: 430188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-25 00:40 UTC by Alex Brandt (RETIRED)
Modified: 2013-09-15 03:57 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log (build.log,3.50 KB, text/plain)
2012-07-25 00:41 UTC, Alex Brandt (RETIRED)
Details
Environment Log (environment,152.89 KB, text/plain)
2012-07-25 00:42 UTC, Alex Brandt (RETIRED)
Details
emerge --info =dev-ruby/ruby-augeas-0.4.1 (emerge-info.txt,5.15 KB, text/plain)
2012-07-25 00:44 UTC, Alex Brandt (RETIRED)
Details
emerge -pqv =dev-ruby/ruby-augeas-0.4.1 (emerge-list.txt,97 bytes, text/plain)
2012-07-25 00:45 UTC, Alex Brandt (RETIRED)
Details
Updated ebuild (augeas-0.10.0-r1.ebuild,1.08 KB, text/plain)
2012-09-17 07:53 UTC, Jan Vansteenkiste
Details
Patch to fix require libxml-2.0 (augeas-0.10.0-fix_libxml.patch,312 bytes, patch)
2012-09-17 07:54 UTC, Jan Vansteenkiste
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Brandt (RETIRED) gentoo-dev 2012-07-25 00:40:12 UTC
ruby-augeas fails to build on ~amd64

Reproducible: Always

Steps to Reproduce:
1. Add augeas use flag to puppet
2. Install puppet
3. ruby-augeas fails to build
Actual Results:  
Build failure in attached build log.

Expected Results:  
Successful build.
Comment 1 Alex Brandt (RETIRED) gentoo-dev 2012-07-25 00:41:38 UTC
Created attachment 319150 [details]
Build Log
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2012-07-25 00:42:06 UTC
More information from emerge:

GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
Comment 3 Alex Brandt (RETIRED) gentoo-dev 2012-07-25 00:42:55 UTC
Created attachment 319152 [details]
Environment Log
Comment 4 Alex Brandt (RETIRED) gentoo-dev 2012-07-25 00:44:51 UTC
Created attachment 319154 [details]
emerge --info =dev-ruby/ruby-augeas-0.4.1
Comment 5 Alex Brandt (RETIRED) gentoo-dev 2012-07-25 00:45:14 UTC
Created attachment 319156 [details]
emerge -pqv =dev-ruby/ruby-augeas-0.4.1
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-07 02:04:12 UTC
*** Bug 430188 has been marked as a duplicate of this bug. ***
Comment 7 Gaetan 2012-08-13 07:54:21 UTC
As stated in the duplicate bug, it can be fixed by editing : /usr/lib/pkgconfig/augeas.pc

and replacing "Requires:" by "Requires: libxml-2.0".

Any change of getting this fixed in portage?
Comment 8 Nikita Ofitserov 2012-08-14 14:38:30 UTC
Upstream commit with the fix: http://git.fedorahosted.org/cgit/augeas.git/diff/?id=11b00ad.

It should probably be applied to app-admin/augeas-0.10.0. It is stable now, so stable dev-ruby/ruby-augeas-0.3.0-r1 fails to compile, too.
Comment 9 Jan Vansteenkiste 2012-09-17 07:53:52 UTC
Created attachment 324078 [details]
Updated ebuild

Added epatch statement.
Comment 10 Jan Vansteenkiste 2012-09-17 07:54:24 UTC
Created attachment 324080 [details, diff]
Patch to fix require libxml-2.0
Comment 11 Yun Zheng Hu 2012-10-12 13:32:45 UTC
It's still not fixed in portage snapshot 2012-10-10. I fixed it by editing /usr/lib/pkgconfig/augeas.pc as commented before.

Any chance to have a clean fix?
Comment 12 Hans de Graaff gentoo-dev Security 2012-10-26 09:10:40 UTC
I've just fixed this in ruby-augeas-0.4.1 by including an upstream patch for the ruby bindings. With this patch the ruby bindings explicitly check for libxml2 themselves. I agree that it would be better to just fix this in auguas itself, so I'll leave the bug open. ruby-augeas really should not need to know about such implicit dependencies in the augeas include files.

I've also filed bug 439732 to stable the ruby-augeas 0.4.1 bindings with this fix included, so we at least have a set of stable packages that work.
Comment 13 Alex Brandt (RETIRED) gentoo-dev 2013-07-20 15:26:17 UTC
Looks like ruby-augeas-0.4.1 is stable and working normal.  Should we close this bug as a result?
Comment 14 Hans de Graaff gentoo-dev Security 2013-07-21 07:12:08 UTC
No, because this is really a bug in augeas itself. ruby-augeas-0.4.1 just works around it. Assigned to current augeas maintainer.
Comment 15 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-09-15 03:57:02 UTC
0.4.1 has the fix via the patch and 0.5.0 (just added) doesn't need the patch.  So, fixed.