public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Filippo Giunchedi <filippo@esaurito.net>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] [PATCH] account for non-existant update-*-database
Date: Sun, 10 Feb 2008 19:33:44 +0100	[thread overview]
Message-ID: <20080210183344.GA2605@esaurito.net> (raw)

Hi,
I've noticed a bug in bluez-gnome when update-*-database programs are not
present (i.e. $UPDATE_*_DATABASE is "" thus install-data-hook fails), the
following patch (or something similar) should work:

--- gnome/configure.in	10 Feb 2008 17:46:50 -0000	1.63
+++ gnome/configure.in	10 Feb 2008 18:31:57 -0000
@@ -27,15 +27,15 @@
 
 AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, [update-desktop-database])
 AC_ARG_ENABLE(desktop-update, AC_HELP_STRING([--disable-desktop-update], [Disable desktop database update]))
-AM_CONDITIONAL([DESKTOP_UPDATE], [test "$enable_desktop_update" != no])
+AM_CONDITIONAL([DESKTOP_UPDATE], [test "$enable_desktop_update" != no -a ! -z "$UPDATE_DESKTOP_DATABASE"])
 
 AC_PATH_PROG(UPDATE_MIME_DATABASE, [update-mime-database])
 AC_ARG_ENABLE(mime-update, AC_HELP_STRING([--disable-mime-update], [Disable mime database update]))
-AM_CONDITIONAL([MIME_UPDATE], [test "$enable_mime_update" != no])
+AM_CONDITIONAL([MIME_UPDATE], [test "$enable_mime_update" != no -a ! -z "$UPDATE_MIME_DATABASE"])
 
 AC_PATH_PROG(UPDATE_ICON_CACHE, [gtk-update-icon-cache])
 AC_ARG_ENABLE(icon-update, AC_HELP_STRING([--disable-icon-update], [Disable icon cache update]))
-AM_CONDITIONAL([ICON_UPDATE], [test "$enable_icon_update" != no])
+AM_CONDITIONAL([ICON_UPDATE], [test "$enable_icon_update" != no -a ! -z "$UPDATE_ICON_CACHE"])
 
 PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.60, dummy=yes, AC_MSG_ERROR(dbus-glib >= 0.60 is required))
 m4_ifdef([PKG_CHECK_EXISTS], [

thanks,
filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

I worked myself up from nothing to a state of extreme poverty.
-- Groucho Marx

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2008-02-10 18:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-10 18:33 Filippo Giunchedi [this message]
2008-02-10 18:57 ` [Bluez-devel] [PATCH] account for non-existant update-*-database Marcel Holtmann
2008-02-10 19:51   ` Filippo Giunchedi
2008-02-10 20:24     ` Marcel Holtmann
2008-02-10 21:40       ` Filippo Giunchedi
2008-02-10 21:56         ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080210183344.GA2605@esaurito.net \
    --to=filippo@esaurito.net \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox