summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-07-08 14:32:33 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-07-08 14:38:42 +0200
commitbd72b7f18cae0d64016192ddd718ca0e76ac4a67 (patch)
tree726bf1402762d3b9fa552b55ad2437d779b5ce76 /patches
parent942aeb2d76db528b1fc202a31c93a0cd6a1f7266 (diff)
downloadptxdist-bd72b7f18cae0d64016192ddd718ca0e76ac4a67.tar.gz
ptxdist-bd72b7f18cae0d64016192ddd718ca0e76ac4a67.tar.xz
[dconf] add patches to allow disabling the dconf editor
This avoids unnecessary dependencies to gtk, libxml2 and libgee Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/dconf-0.4.1/0001-make-dconf-editor-optional.patch50
-rw-r--r--patches/dconf-0.4.1/0002-fix-autotool-stuff.patch121
l---------patches/dconf-0.4.1/autogen.sh1
-rw-r--r--patches/dconf-0.4.1/series4
4 files changed, 176 insertions, 0 deletions
diff --git a/patches/dconf-0.4.1/0001-make-dconf-editor-optional.patch b/patches/dconf-0.4.1/0001-make-dconf-editor-optional.patch
new file mode 100644
index 000000000..ae2cb6826
--- /dev/null
+++ b/patches/dconf-0.4.1/0001-make-dconf-editor-optional.patch
@@ -0,0 +1,50 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Thu, 8 Jul 2010 14:21:32 +0200
+Subject: [PATCH 1/2] make dconf editor optional
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ Makefile.am | 6 +++++-
+ configure.ac | 11 ++++++++---
+ 2 files changed, 13 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 2a56d9b..219d5a1 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,5 +1,9 @@
+ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+-SUBDIRS = gvdb service gsettings tests client bin engine common docs editor
++SUBDIRS = gvdb service gsettings tests client bin engine common docs
++
++if ENABLE_EDITOR
++SUBDIRS += editor
++endif
+
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+diff --git a/configure.ac b/configure.ac
+index 5353483..2073946 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,9 +25,14 @@ GTK_DOC_CHECK([1.14])
+
+ # Dependencies
+ PKG_CHECK_MODULES(gio, gio-2.0 >= 2.25.10)
+-PKG_CHECK_MODULES(gtk, gtk+-2.0)
+-PKG_CHECK_MODULES(gee, gee-1.0)
+-PKG_CHECK_MODULES(libxml, libxml-2.0)
++
++AC_ARG_ENABLE(editor, [ --disable-editor Disable the dconf editor, [default=yes]],,[enable_editor=yes])
++if test "x$enable_editor" = "xyes"; then
++ PKG_CHECK_MODULES(gtk, gtk+-2.0)
++ PKG_CHECK_MODULES(gee, gee-1.0)
++ PKG_CHECK_MODULES(libxml, libxml-2.0)
++fi
++AM_CONDITIONAL(ENABLE_EDITOR, test "x$enable_editor" = "xyes")
+
+ AC_ARG_WITH(gio_modules_dir, [ --with-gio-modules-dir=PATH choose directory for the GIO module, [default=LIBDIR/gio/modules]], giomodulesdir="$withval", giomodulesdir=${libdir}/gio/modules)
+ AC_SUBST(giomodulesdir)
+--
+1.7.1
+
diff --git a/patches/dconf-0.4.1/0002-fix-autotool-stuff.patch b/patches/dconf-0.4.1/0002-fix-autotool-stuff.patch
new file mode 100644
index 000000000..462b6a3af
--- /dev/null
+++ b/patches/dconf-0.4.1/0002-fix-autotool-stuff.patch
@@ -0,0 +1,121 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Thu, 8 Jul 2010 14:22:36 +0200
+Subject: [PATCH 2/2] fix autotool stuff
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ configure.ac | 2 +-
+ m4/introspection.m4 | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 89 insertions(+), 1 deletions(-)
+ create mode 100644 m4/introspection.m4
+
+diff --git a/configure.ac b/configure.ac
+index 2073946..a639b2b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -6,7 +6,7 @@ AC_INIT([dconf],
+ AC_CONFIG_SRCDIR([configure.ac])
+ AC_CONFIG_MACRO_DIR([m4])
+
+-AM_INIT_AUTOMAKE([1.11 -Wno-portability])
++AM_INIT_AUTOMAKE([foreign])
+ AM_SILENT_RULES([yes])
+
+ # Check for programs
+diff --git a/m4/introspection.m4 b/m4/introspection.m4
+new file mode 100644
+index 0000000..bb3a0da
+--- /dev/null
++++ b/m4/introspection.m4
+@@ -0,0 +1,88 @@
++dnl -*- mode: autoconf -*-
++dnl Copyright 2009 Johan Dahlin
++dnl
++dnl This file is free software; the author(s) gives unlimited
++dnl permission to copy and/or distribute it, with or without
++dnl modifications, as long as this notice is preserved.
++dnl
++
++# serial 1
++
++m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
++[
++ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
++ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
++ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
++
++ dnl enable/disable introspection
++ m4_if([$2], [require],
++ [dnl
++ enable_introspection=yes
++ ],[dnl
++ AC_ARG_ENABLE(introspection,
++ AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
++ [Enable introspection for this build]),,
++ [enable_introspection=auto])
++ ])dnl
++
++ AC_MSG_CHECKING([for gobject-introspection])
++
++ dnl presence/version checking
++ AS_CASE([$enable_introspection],
++ [no], [dnl
++ found_introspection="no (disabled, use --enable-introspection to enable)"
++ ],dnl
++ [yes],[dnl
++ PKG_CHECK_EXISTS([gobject-introspection-1.0],,
++ AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
++ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
++ found_introspection=yes,
++ AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
++ ],dnl
++ [auto],[dnl
++ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
++ ],dnl
++ [dnl
++ AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
++ ])dnl
++
++ AC_MSG_RESULT([$found_introspection])
++
++ INTROSPECTION_SCANNER=
++ INTROSPECTION_COMPILER=
++ INTROSPECTION_GENERATE=
++ INTROSPECTION_GIRDIR=
++ INTROSPECTION_TYPELIBDIR=
++ if test "x$found_introspection" = "xyes"; then
++ INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
++ INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
++ INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
++ INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
++ INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
++ fi
++ AC_SUBST(INTROSPECTION_SCANNER)
++ AC_SUBST(INTROSPECTION_COMPILER)
++ AC_SUBST(INTROSPECTION_GENERATE)
++ AC_SUBST(INTROSPECTION_GIRDIR)
++ AC_SUBST(INTROSPECTION_TYPELIBDIR)
++
++ AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
++])
++
++
++dnl Usage:
++dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
++
++AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
++[
++ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
++])
++
++dnl Usage:
++dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
++
++
++AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
++[
++ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
++])
+--
+1.7.1
+
diff --git a/patches/dconf-0.4.1/autogen.sh b/patches/dconf-0.4.1/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/dconf-0.4.1/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh \ No newline at end of file
diff --git a/patches/dconf-0.4.1/series b/patches/dconf-0.4.1/series
new file mode 100644
index 000000000..b2b0a4263
--- /dev/null
+++ b/patches/dconf-0.4.1/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+0001-make-dconf-editor-optional.patch
+0002-fix-autotool-stuff.patch
+# fe99d5bbd2a34c41cef075c2805061c1 - git-ptx-patches magic