Here's the patch we have in Ubuntu.
* Remove use of update-mime-database during build (LP: #263417):
- remove manual deletion of /usr/share/mime created files from debian/rules
- removed shared-mime-info as a B-D from debian/control
- add patch 500_remove_update_mime_database.diff:
+ remove calls to update-mime-database in data/Makefile.in
+ remove check for update-mime-database in configure
For more context see https://launchpad.net/bugs/263417
diff -u beast-0.7.1/debian/rules beast-0.7.1/debian/rules
--- beast-0.7.1/debian/rules
+++ beast-0.7.1/debian/rules
@@ -66,12 +66,6 @@
ln -s beast.1.gz debian/beast/usr/share/man/man1/beast-0.6.6.1.gz
ln -s bsescm.1.gz debian/beast/usr/share/man/man1/bsescm-0.6.6.1.gz
convert debian/beast/usr/share/pixmaps/beast.png -geometry 32x32 debian/beast/usr/share/pixmaps/beast.xpm
- rm -f $(CURDIR)/debian/beast/usr/share/mime/subclasses
- rm -f $(CURDIR)/debian/beast/usr/share/mime/magic
- rm -f $(CURDIR)/debian/beast/usr/share/mime/globs
- rm -f $(CURDIR)/debian/beast/usr/share/mime/XMLnamespaces
- rm -f $(CURDIR)/debian/beast/usr/share/mime/aliases
- rm -f $(CURDIR)/debian/beast/usr/share/mime/mime.cache
# Build architecture-independent files here.
binary-indep: build install
diff -u beast-0.7.1/debian/control beast-0.7.1/debian/control
--- beast-0.7.1/debian/control
+++ beast-0.7.1/debian/control
@@ -2,7 +2,7 @@
Section: gnome
Priority: extra
Maintainer: Sam Hocevar (Debian packages) <sam+...@zoy.org>
-Build-Depends: debhelper (>= 4.0), quilt, libgtk2.0-dev (>= 2.2.2-2), libglib2.0-dev (>= 2.2.2-1), libaudiofile-dev, libvorbis-dev, guile-1.6-dev (>= 1.6.4-2.1), libart-2.0-dev, libgnomecanvas2-dev, libmad0-dev, libxml-parser-perl, libxml2-utils, imagemagick, gettext, shared-mime-info
+Build-Depends: debhelper (>= 4.0), quilt, libgtk2.0-dev (>= 2.2.2-2), libglib2.0-dev (>= 2.2.2-1), libaudiofile-dev, libvorbis-dev, guile-1.6-dev (>= 1.6.4-2.1), libart-2.0-dev, libgnomecanvas2-dev, libmad0-dev, libxml-parser-perl, libxml2-utils, imagemagick, gettext
Standards-Version: 3.8.0
Vcs-Svn: svn://svn.debian.org/sam-hocevar/pkg-misc/unstable/beast
Vcs-Browser: http://svn.debian.org/wsvn/sam-hocevar/pkg-misc/unstable/beast/
diff -u beast-0.7.1/debian/patches/series beast-0.7.1/debian/patches/series
--- beast-0.7.1/debian/patches/series
+++ beast-0.7.1/debian/patches/series
@@ -8,0 +9 @@
+500_remove_update_mime_database.diff
only in patch2:
unchanged:
--- beast-0.7.1.orig/debian/patches/500_remove_update_mime_database.diff
+++ beast-0.7.1/debian/patches/500_remove_update_mime_database.diff
@@ -0,0 +1,84 @@
+Description: Remove calls to update-mime-database in data/Makefile.in.
+ Remove check for update-mime-database in configure.
+Author: Cesare Tirabassi <norse...@ubuntu.com>
+Bug-Debian: http://bugs.debian.org/563524
+Bug-Ubuntu: https://launchpad.net/bugs/263417
+
+Index: beast-0.7.1/configure
+===================================================================
+--- beast-0.7.1.orig/configure 2008-08-31 23:58:13.000000000 +0200
++++ beast-0.7.1/configure 2008-08-31 23:59:00.000000000 +0200
+@@ -20876,57 +20876,6 @@
+ # A hint is needed for aclocal from Automake <= 1.9.4:
+ # AC_DEFUN([AC_PROG_INTLTOOL], ...)
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-# find installation utilities
+-# Extract the first word of "update-mime-database", so it can be a program name with args.
+-set dummy update-mime-database; ac_word=$2
+-echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+-if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- case $UPDATE_MIME_DATABASE in
+- [\\/]* | ?:[\\/]*)
+- ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
+- ;;
+- *)
+- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+- ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
+- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+-done
+-
+- ;;
+-esac
+-fi
+-UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
+-
+-if test -n "$UPDATE_MIME_DATABASE"; then
+- echo "$as_me:$LINENO: result: $UPDATE_MIME_DATABASE" >&5
+-echo "${ECHO_T}$UPDATE_MIME_DATABASE" >&6
+-else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-fi
+-
+-
+ # check for maintainer mode tools
+ for ac_prog in xmllint
+ do
+Index: beast-0.7.1/data/Makefile.in
+===================================================================
+--- beast-0.7.1.orig/data/Makefile.in 2008-08-31 23:59:22.000000000 +0200
++++ beast-0.7.1/data/Makefile.in 2008-08-31 23:59:44.000000000 +0200
+@@ -860,11 +860,6 @@
+ @INTLTOOL_KEYS_RULE@
+ bse.keys: bse.keys.in
+
+-# update mime database according to: http://www.freedesktop.org/Standards/shared-mime-info-spec
+-install-data-hook:
+- test -z "$(UPDATE_MIME_DATABASE)" || $(UPDATE_MIME_DATABASE) "$(DESTDIR)${sharedmimedir}";
+-uninstall-local: uninstall-sharedmimepackageDATA
+- test -z "$(UPDATE_MIME_DATABASE)" || $(UPDATE_MIME_DATABASE) "$(DESTDIR)${sharedmimedir}";
+ config-paths.h: $(top_builddir)/config.status Makefile
+ cd . \
+ && echo "/* Generated data from $< (by make $@) */" > xgen-cph \