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

Re: Bug#502823: iodine: piuparts test fails: /var/lib/dpkg/info/iodine.postinst: line 27: ./MAKEDEV: No such file or directory



On Thu, 23 Oct 2008 16:41:20 +0200, Adeodato Simó wrote:

> > > And a question to the release team:
> > > The postinst and the bug are the same for 0.4.2-1 in sid and 0.4.1-4
> > > in lenny; do you prefer to unblock the version in sid or should a
> > > prepare a 0.4.1-4lenny1 version with distribution "testing", too?
> > I've uploaded 0.4.2-2 with a fixed .postinst to unstable yesterday.
> > How should we proceed for fixing the version in testing? I've already
> > prepared a version 0.4.1-4lenny1 for t-p-u (debdiff attached for your
> > convenience); please tell me if I should upload it.
> You forgot the patch, or somebody ate along the way. ;-)

Probably the non-free firmware in my e100 NIC :)

Thanks for noticing, trying again ...

Cheers,
gregor 
 
-- 
 .''`.   Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-    NP: Funny van Dannen: Schilddrüsenunterfunktion
diff -u iodine-0.4.1/debian/changelog iodine-0.4.1/debian/changelog
--- iodine-0.4.1/debian/changelog
+++ iodine-0.4.1/debian/changelog
@@ -1,3 +1,12 @@
+iodine (0.4.1-4lenny1) testing; urgency=low
+
+  * debian/postinst: only create /dev/net/tun if it doesn't exist and if
+    /dev/MAKEDEV is available; thanks to Lucas Nussbaum for the bug report and
+    to Lucas, Adeodato Simó, Matthew Johnson, and Alexander Wirt for their
+    help (closes: #502823).
+
+ -- gregor herrmann <gregoa@debian.org>  Wed, 22 Oct 2008 20:09:45 +0200
+
 iodine (0.4.1-4) unstable; urgency=low
 
   * Add Czech debconf translation, thanks to Daniel Kavan
diff -u iodine-0.4.1/debian/postinst iodine-0.4.1/debian/postinst
--- iodine-0.4.1/debian/postinst
+++ iodine-0.4.1/debian/postinst
@@ -23,8 +23,11 @@
 case "$1" in
     configure)
         # we need a tun device
-        echo "Creating device /dev/net/tun ..."
-        cd /dev && ./MAKEDEV tun
+        if [ ! -c /dev/net/tun ] && [ -x /dev/MAKEDEV ] ; then
+            echo "Creating device /dev/net/tun ..."
+            cd /dev
+            ./MAKEDEV tun || true
+        fi 
         # and we want a special user
         adduser --quiet --system --home /var/run/iodine iodine
         # generate /etc/default/iodine

Attachment: signature.asc
Description: Digital signature


Reply to: