Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win64
mingw64-shared-mime-info
0002-Disable-checks-when-cross-compiling.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Disable-checks-when-cross-compiling.patch of Package mingw64-shared-mime-info
From 79f9aed8b43bc0ed5e23c8aef4661afcc1d30178 Mon Sep 17 00:00:00 2001 From: Hib Eris <hib@hiberis.nl> Date: Thu, 3 Nov 2011 13:25:15 +0100 Subject: [PATCH 2/4] Disable checks when cross compiling --- Makefile.am | 4 ++++ configure.in | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Makefile.am b/Makefile.am index fe5c15d..5242b86 100644 --- a/Makefile.am +++ b/Makefile.am @@ -74,6 +74,9 @@ create-pot: $(MAKE) -C po shared-mime-info.pot check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-translations +if CROSS_COMPILING + @echo "Cross compiling: Skipping checks" +else if test -e $(top_builddir)/freedesktop.org.xml; then \ xmllint --noout --valid $(top_builddir)/freedesktop.org.xml || exit 1; \ else \ @@ -98,6 +101,7 @@ check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-transl fi @echo Number of mime-types that might need generic-icon: `grep "mime-type type=" $(srcdir)/freedesktop.org.xml.in | grep -v video/ | grep -v image/ | grep -v text/ | grep -v audio/ | grep -v "octet-stream" | wc -l` ; \ echo Number of mime-types with a generic icon: `grep "generic-icon name=" $(srcdir)/freedesktop.org.xml.in | wc -l` ; +endif check-translations: @for i in $(top_srcdir)/po/*.po ; do \ diff --git a/configure.in b/configure.in index c7ce5b2..d3ed777 100644 --- a/configure.in +++ b/configure.in @@ -17,6 +17,9 @@ GETTEXT_PACKAGE=shared-mime-info AC_SUBST(GETTEXT_PACKAGE) AM_GLIB_GNU_GETTEXT +dnl Check for cross compiling +AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) + dnl Check whether libxml and glib are present is installed PKG_CHECK_MODULES(ALL, \ libxml-2.0 >= 2.4 \ -- 1.7.4.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor