Bug 18026

Summary: building failed. "failed to load external entity "../shared-mime-info/freedesktop.org.xml"
Product: shared-mime-info Reporter: Yevgeniy <YLitvinenko>
Component: generalAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Yevgeniy 2008-10-12 04:02:33 UTC
When building in the directory other than source directory I get an error:
LC_ALL=C /usr/local/bin/intltool-merge -x -u -c ./po/.intltool-merge-cache ../shared-mime-i
nfo/po ../shared-mime-info/freedesktop.org.xml.in freedesktop.org.xml
Generating and caching the translation database
Merging translations into freedesktop.org.xml.
CREATED freedesktop.org.xml
gmake[1]: Leaving directory `/home/unix/build'
warning: failed to load external entity "../shared-mime-info/freedesktop.org.xml"
gmake: *** [check] Error 1


My workaround is to change line 74 in the Makefile.am:
--  xmllint --noout --valid $(srcdir)/freedesktop.org.xml;  \
++  xmllint --noout --valid $(top_builddir)/freedesktop.org.xml;  \

and regeneration of the source directory with autotools (aclocal, autoheader, etc)
Comment 1 Bastien Nocera 2008-10-12 06:43:39 UTC
* Makefile.am: Fix building when srcdir != builddir,
patch by Yevgeniy <YLitvinenko@astana.oilfield.slb.com>
(Closes: #18026)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.