[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#198299: dh_installmime & xaw-stuff



Package: tetex-bin
Version: 2.0.2-4.1
Severity: wishlist
Tags: patch

Hello,

Just an idea: Until now the installation of the MIME-related stuff is
done manually in debian/rules and the call of /usr/sbin/update-mime
is hard coded into post{inst,rm}. My proposal is to swap over that
job to dh_installmime.
Further the installation of update-xaw-wrappers stuff was removed,
but not all related stuff were purged. I propose to remove that too.
Patch included.
Well, errrmm -- doesn't simplify our build-process that much.

Hilmar
-- 
sigmentation fault
diff -urN debian.old/postinst debian/postinst
--- debian.old/postinst	Sat Jun 21 10:59:18 2003
+++ debian/postinst	Sat Jun 21 11:06:04 2003
@@ -236,16 +236,6 @@
 #  chmod -v 644 ${dir} 2>/dev/null | fgrep changed || true
 #done
 
-# register xdvi for mime
-if [ -x /usr/sbin/update-mime ]; then
-    update-mime
-fi
-
-if [ -x /usr/sbin/update-xaw-wrappers ]; then
-    update-xaw-wrappers
-fi
-
-
 # remove the manual setting of the xdvi alternatives when
 # they point to the obsolete location in /usr/X11R6/bin
 test -x /usr/bin/xdvi.bin  || update-alternatives --auto xdvi.bin
diff -urN debian.old/postrm debian/postrm
--- debian.old/postrm	Sat Jun 21 10:59:18 2003
+++ debian/postrm	Sat Jun 21 11:06:31 2003
@@ -5,15 +5,6 @@
 TEXMFD=/etc/texmf/texmf.d
 FMTD=/etc/texmf/fmt.d
 
-# unregister xdvi for mime
-if [ -x /usr/sbin/update-mime ]; then
-    update-mime
-fi
-
-if [ -x /usr/sbin/update-xaw-wrappers ]; then
-    update-xaw-wrappers
-fi
-
 rm -f /usr/lib/texmf/web2c /usr/share/texmf/web2c || true
 
 if [ x"$1" = xpurge ] ; then
diff -urN debian.old/rules debian/rules
--- debian.old/rules	Sat Jun 21 10:59:18 2003
+++ debian/rules	Sat Jun 21 11:01:42 2003
@@ -181,7 +181,6 @@
 	#(cd $(debvar)/web2c/; ln -s $(etcdir)/fmtutil.cnf .)
 #	install -m 644 texk/kpathsea/mktex.cnf $(debetc)/
 #	(cd $(debvar)/web2c/; ln -s $(etcdir)/mktex.cnf .)
-	install -m 644 debian/mime debian/$(package)/usr/lib/mime/packages/$(package)
 	cp debian/update-fmtutil.8 $(sharedir)/man/man8/
 #	update-updmap stuffs #########
 	install -m 755 debian/update-updmap debian/$(package)/usr/sbin
@@ -204,6 +203,7 @@
 	dh_installdocs -p$(package) -p$(sublib)
 	dh_installexamples
 	dh_installchangelogs -p$(package) -p$(sublib) ChangeLog
+	dh_installmime
 	dh_installmenu
 	dh_installcron
 	dh_installman new-manpages/[a-z]*
diff -urN debian.old/xaw-wrappers debian/xaw-wrappers
--- debian.old/xaw-wrappers	Sat Jun 21 10:59:18 2003
+++ debian/xaw-wrappers	Thu Jan  1 01:00:00 1970
@@ -1,9 +0,0 @@
-Program: /usr/bin/xdvi.bin
-Incompat: /usr/X11R6/lib/neXtaw
-Wrapped: /usr/bin/xdvi.real
-Link-name: xdvi.bin
-
-Program: /usr/bin/oxdvi.bin
-Incompat: /usr/X11R6/lib/neXtaw
-Wrapped: /usr/bin/oxdvi.real
-Link-name: oxdvi.bin

Reply to: