Bug 18026 - building failed. "failed to load external entity "../shared-mime-info/freedesktop.org.xml"
Summary: building failed. "failed to load external entity "../shared-mime-info/freedes...
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-12 04:02 UTC by Yevgeniy
Modified: 2008-10-12 06:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.