Accepting request 48443 from home:vuntz:branches:GNOME:Factory
ok OBS-URL: https://build.opensuse.org/request/show/48443 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-bluetooth?expand=0&rev=53
This commit is contained in:
parent
0920e2ced2
commit
fbf25eaa07
180
gnome-bluetooth-fix-parallel-build.patch
Normal file
180
gnome-bluetooth-fix-parallel-build.patch
Normal file
@ -0,0 +1,180 @@
|
|||||||
|
Index: gnome-bluetooth-2.31.90/lib/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- gnome-bluetooth-2.31.90.orig/lib/Makefile.am
|
||||||
|
+++ gnome-bluetooth-2.31.90/lib/Makefile.am
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
SUBDIRS = plugins
|
||||||
|
|
||||||
|
EXTRA_DIST =
|
||||||
|
-BUILT_GIRSOURCES =
|
||||||
|
+CLEANFILES =
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = libcommon.la
|
||||||
|
lib_LTLIBRARIES = libgnome-bluetooth.la
|
||||||
|
@@ -55,41 +55,33 @@ gnomebluetooth_HEADERS = \
|
||||||
|
|
||||||
|
AM_CFLAGS = -I$(srcdir) $(LIBGNOMEBT_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED) -DPLUGINDIR=\"$(libdir)/gnome-bluetooth/plugins\"
|
||||||
|
|
||||||
|
-if HAVE_INTROSPECTION
|
||||||
|
-BUILT_GIRSOURCES += GnomeBluetooth-1.0.gir
|
||||||
|
+-include $(INTROSPECTION_MAKEFILE)
|
||||||
|
+INTROSPECTION_GIRS =
|
||||||
|
+INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir)
|
||||||
|
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
|
||||||
|
|
||||||
|
+if HAVE_INTROSPECTION
|
||||||
|
GnomeBluetooth-1.0.gir: $(libgnome_bluetooth_la_SOURCES)
|
||||||
|
GnomeBluetooth-1.0.gir: $(gnomebluetooth_HEADERS)
|
||||||
|
GnomeBluetooth-1.0.gir: libgnome-bluetooth.la
|
||||||
|
GnomeBluetooth-1.0.gir: $(INTROSPECTION_SCANNER)
|
||||||
|
- $(AM_V_GEN) $(INTROSPECTION_SCANNER) -v --namespace GnomeBluetooth --nsversion=1.0 \
|
||||||
|
- --add-include-path=$(srcdir) --add-include-path=. \
|
||||||
|
- --include=GObject-2.0 \
|
||||||
|
- --include=Gtk-2.0 \
|
||||||
|
- --include=DBusGLib-1.0 \
|
||||||
|
- --include=GModule-2.0 \
|
||||||
|
- --libtool="$(LIBTOOL)" \
|
||||||
|
- --library=gnome-bluetooth \
|
||||||
|
- --output $@ \
|
||||||
|
- --pkg gobject-2.0 \
|
||||||
|
- --pkg gtk+-2.0 \
|
||||||
|
- --pkg dbus-glib-1 \
|
||||||
|
- --pkg gmodule-2.0 \
|
||||||
|
- -I$(srcdir) \
|
||||||
|
- $(LIBGNOMEBT_CFLAGS) \
|
||||||
|
- $(gnomebluetooth_HEADERS)
|
||||||
|
|
||||||
|
-girdir = $(INTROSPECTION_GIRDIR)
|
||||||
|
-dist_gir_DATA = $(BUILT_GIRSOURCES)
|
||||||
|
+GnomeBluetooth_1_0_gir_INCLUDES = GObject-2.0 Gtk-2.0 DBusGLib-1.0 GModule-2.0
|
||||||
|
+GnomeBluetooth_1_0_gir_CFLAGS = \
|
||||||
|
+ -I$(srcdir) \
|
||||||
|
+ $(LIBGNOMEBT_CFLAGS)
|
||||||
|
+GnomeBluetooth_1_0_gir_LIBS = libgnome-bluetooth.la
|
||||||
|
+GnomeBluetooth_1_0_gir_FILES = $(gnomebluetooth_HEADERS)
|
||||||
|
+GnomeBluetooth_1_0_gir_SCANNERFLAGS = --namespace=GnomeBluetooth
|
||||||
|
+INTROSPECTION_GIRS += GnomeBluetooth-1.0.gir
|
||||||
|
|
||||||
|
-EXTRA_DIST += $(BUILT_GIRSOURCES)
|
||||||
|
+girdir = $(INTROSPECTION_GIRDIR)
|
||||||
|
+gir_DATA = $(INTROSPECTION_GIRS)
|
||||||
|
|
||||||
|
-typelibsdir = $(INTROSPECTION_TYPELIBDIR)
|
||||||
|
-typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
|
||||||
|
+typelibdir = $(INTROSPECTION_TYPELIBDIR)
|
||||||
|
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
||||||
|
|
||||||
|
-%.typelib: %.gir $(G_IR_COMPILER)
|
||||||
|
- $(AM_V_GEN) LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $@
|
||||||
|
-
|
||||||
|
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
||||||
|
endif # HAVE_INTROSPECTION
|
||||||
|
|
||||||
|
BUILT_SOURCES = marshal.h marshal.c \
|
||||||
|
@@ -101,7 +93,7 @@ BUILT_SOURCES = marshal.h marshal.c \
|
||||||
|
|
||||||
|
nodist_libcommon_la_SOURCES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
|
-CLEANFILES = $(BUILT_SOURCES)
|
||||||
|
+CLEANFILES += $(BUILT_SOURCES)
|
||||||
|
|
||||||
|
noinst_PROGRAMS = test-client test-agent test-deviceselection test-plugins test-class
|
||||||
|
|
||||||
|
Index: gnome-bluetooth-2.31.90/acinclude.m4
|
||||||
|
===================================================================
|
||||||
|
--- gnome-bluetooth-2.31.90.orig/acinclude.m4
|
||||||
|
+++ gnome-bluetooth-2.31.90/acinclude.m4
|
||||||
|
@@ -1,93 +1,3 @@
|
||||||
|
-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])
|
||||||
|
-])
|
||||||
|
-
|
||||||
|
-
|
||||||
|
dnl as-ac-expand.m4 0.2.0 -*- autoconf -*-
|
||||||
|
dnl autostars m4 macro for expanding directories using configure's prefix
|
||||||
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 19 00:16:15 CEST 2010 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Remove gir-repository BuildRequires: this was only needed for the
|
||||||
|
DBusGLib gir, which is now part of gobject-introspection.
|
||||||
|
- Add gnome-bluetooth-fix-parallel-build.patch: this updates the
|
||||||
|
build system for introspection, to work correctly. This requires
|
||||||
|
the gnome-common BuildRequires and the call to gnome-autogen.sh.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 13 18:00:37 CEST 2010 - vuntz@opensuse.org
|
Mon Sep 13 18:00:37 CEST 2010 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
@ -27,10 +27,13 @@ Group: System/GUI/GNOME
|
|||||||
Source: http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2
|
Source: http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2
|
||||||
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
|
||||||
Patch0: lxde-support.patch
|
Patch0: lxde-support.patch
|
||||||
|
# PATCH-FIX-UPSTREAM gnome-bluetooth-fix-parallel-build.patch bgo#630024 vuntz@opensuse.org -- Improve build system for introspection to fix parallel build
|
||||||
|
Patch1: gnome-bluetooth-fix-parallel-build.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
# Needed for geoclue plugin
|
# Needed for geoclue plugin
|
||||||
BuildRequires: gconf2-devel
|
BuildRequires: gconf2-devel
|
||||||
BuildRequires: gir-repository
|
# Needed for patch1 gnome-bluetooth-fix-parallel-build.patch
|
||||||
|
BuildRequires: gnome-common
|
||||||
BuildRequires: gnome-doc-utils-devel
|
BuildRequires: gnome-doc-utils-devel
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
@ -109,8 +112,10 @@ send files over bluetooth.
|
|||||||
%setup -q
|
%setup -q
|
||||||
translation-update-upstream
|
translation-update-upstream
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
NOCONFIGURE=1 gnome-autogen.sh
|
||||||
%configure \
|
%configure \
|
||||||
--disable-icon-update \
|
--disable-icon-update \
|
||||||
--disable-scrollkeeper \
|
--disable-scrollkeeper \
|
||||||
|
Loading…
Reference in New Issue
Block a user