Bug 1276364 - hivex: fails to compile without libxml2
hivex: fails to compile without libxml2
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: hivex (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard W.M. Jones
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-29 10:25 EDT by Floris
Modified: 2015-10-29 11:51 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-29 11:51:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Floris 2015-10-29 10:25:08 EDT
Filling this under component libguestfs, concerns hivex, but cannot find that in the list.


Description of problem:

README of hivex says libxml2 is optional:

==
These dependencies are needed for the tools:

- Readline library (optional, to add command-line editing to hivexsh).
- libxml2 (optional, for hivexml).
==

But configure script fails without it.



Steps to Reproduce:
1. on a system without libxml2: extract hivex-1.3.12.tar.gz, run: ./configure


Actual results:

==
checking for LIBXML2... no
configure: error: Package requirements (libxml-2.0) were not met:

Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==


Expected results:

Should work without it, and only skip building hivexml.
Comment 1 Richard W.M. Jones 2015-10-29 11:51:20 EDT
Fixed by this commit:

https://github.com/libguestfs/hivex/commit/1a3df9504ecb8a127c92fbd1ece4c6276552e697

Note You need to log in before you can comment on or make changes to this bug.