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

Bug#381761: tidev-modules-source: postinst/postrm depmod -- update templates to use dh_installmodules instead



On Sunday 13 August 2006 21:58, Matej Vela wrote:
> retitle 381761 tidev-modules-source: update-modules deprecated
> thanks
>
> Bernd Schubert <bernd-schubert@gmx.de> writes:
> > sorry, tidev-modules-source got probably by accident into the list.
> > Anyway looking at I see that it is calling 'update-modules', though the
> > man page of update-modules says that it is obsolete. Maybe a good chance
> > to fix this?
>
> If you can provide a patch, sure (the package is orphaned).

Pity, I just (2 weeks ago) throw away my self-made serial cable to connect my 
Ti85 - didn't use it for 5 years and it was, erm lets say, not the best thing 
I ever soldered :)
I also didn't know and never checked that connecting Ti calculators is 
supported on Linux.

Attached are two patches. One is to remove the postinst script (there's even 
no update-devfsd script in unstable) and adjusts the deb_helper dependency 
and the other patch fixes module_param() for newer kernel versions.

Now that I know there I could connect my Ti85 in Linux I might consider to 
resolder a new cable. However, I'm pretty sure I don't have time to that at 
least until February 2007. Do you think tidev can stay in unstable until that 
time? I would report back in February or March and ask to maintain it.

Cheers,
Bernd




-- 
Bernd Schubert
PCI / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg

diff -ruN tidev-modules.old/debian/control.modules.in tidev-modules.new/debian/control.modules.in
--- tidev-modules.old/debian/control.modules.in	2006-04-12 16:49:59.000000000 +0200
+++ tidev-modules.new/debian/control.modules.in	2006-08-13 22:45:53.000000000 +0200
@@ -2,7 +2,7 @@
 Section: misc
 Priority: optional
 Maintainer: Julien BLACHE <jblache@debian.org>
-Build-Depends: debhelper (>= 4.0.0)
+Build-Depends: debhelper (>= 5.0.37)
 Standards-Version: 3.6.1
 
 Package: tidev-modules-_KVERS_
diff -ruN tidev-modules.old/debian/tidev-modules-_KVERS_.postinst.modules.in tidev-modules.new/debian/tidev-modules-_KVERS_.postinst.modules.in
--- tidev-modules.old/debian/tidev-modules-_KVERS_.postinst.modules.in	2006-04-12 16:49:59.000000000 +0200
+++ tidev-modules.new/debian/tidev-modules-_KVERS_.postinst.modules.in	1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-#DEBHELPER#
-
-if [ "$1" = "configure" ]; then 
-
-  if [ "`uname -r`" = "_KVERS_" ] ; then
-     update-modules || true
-     update-devfsd || true
-  fi
-
-fi
diff -ru tidev-modules.new/tiser/module/tiser.c tidev-modules.new2/tiser/module/tiser.c
--- tidev-modules.new/tiser/module/tiser.c	2004-06-19 10:36:07.000000000 +0200
+++ tidev-modules.new2/tiser/module/tiser.c	2006-08-13 22:26:41.000000000 +0200
@@ -508,7 +508,7 @@
 EXPORT_NO_SYMBOLS;
 #endif
 
-MODULE_PARM(timeout, "i");
+module_param(timeout, int, 0);
 MODULE_PARM_DESC(timeout, "Timeout, default=1.5 seconds");
-MODULE_PARM(delay, "i");
+module_param(delay, int, 0);
 MODULE_PARM_DESC(delay, "Inter-bit delay, default=10 microseconds");

Reply to: