Bug#268664: critical 201023 is not yet fixed

2006-02-09 Thread Bart Martens
According to the current title of this bug, the remaining scope is:

 BTW, I filed a bug against dosemu last year regarding this line in the
 postrm, but it was ignored by the old maintainer:
 
 purge)
 rm -rf /etc/dosemu /var/lib/dosemu
 
 /var/lib/dosemu gets blown away on purge.  That's OK, but the dosemu
 docs did tell you to put your operating system under here (although
 they did mention symlinking as an option).  I lost a 4 GiB filesystem
 to a dosemu purge, since it was mounted directly under here, all done
 according to the instructions provided with the package.
 
 Please would you consider either not purging the directory
 indiscriminately, or making sure the docs don't mention putting user
 data under there under pain of severe data loss--I was badly affected
 by this, and I wouldn't want others to suffer as well.

That bug was 201023.  The rm -rf is still in 1.2.2-1, and the docs
still seem to suggest using /var/lib/dosemu for user data.

I think that the rm -rf is to be replaced by something that does not
purge any user data.  Bas Zoetekouw suggested on bug 201023 to have a
look at apache, mysql, and other packages preserving user data in /var.

Increasing the severity to critical because of the serious data loss
mentioned here:
http://www.debian.org/Bugs/Developer#severities



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#268664: critical 201023 is not yet fixed

2006-02-09 Thread Ryan Underwood

On Fri, Feb 10, 2006 at 12:16:10AM +0100, Bart Martens wrote:
 
 That bug was 201023.  The rm -rf is still in 1.2.2-1, and the docs
 still seem to suggest using /var/lib/dosemu for user data.

All that should be removed is /var/lib/dosemu if it is empty.  BTW,
/var/lib/dosemu is going away in favor of /usr/share/dosemu, and users
should put DOS installations in their home directories and use
--Fimagedir.

-- 
Ryan Underwood, [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#268664: patch (Re: Bug#268664: critical 201023 is not yet fixed)

2006-02-09 Thread Bart Martens
On Thu, Feb 09, 2006 at 07:59:51PM -0600, Ryan Underwood wrote:
 
 All that should be removed is /var/lib/dosemu if it is empty.

Basically, yes.  There's just also a symlink created by the postinst I
want to see deleted.  The attached patch should fix this bug.

diff -ruN orig/dosemu-1.2.2/debian/postrm dosemu-1.2.2/debian/postrm
--- orig/dosemu-1.2.2/debian/postrm 2006-02-09 20:21:52.0 +0100
+++ dosemu-1.2.2/debian/postrm  2006-02-10 07:20:35.0 +0100
@@ -14,7 +14,14 @@
 upgrade | failed-upgrade | disappear)
;;
 purge)
-   rm -rf /etc/dosemu /var/lib/dosemu
+   rm -rf /etc/dosemu
+
+   if [ -L /var/lib/dosemu/freedos ]
+   then
+   rm -f /var/lib/dosemu/freedos
+   fi
+   rmdir /var/lib/dosemu 2 /dev/null || true
+
;;
 *)
echo $0: incorrect arguments: $* 2


Bug#268664: patch (Re: Bug#268664: critical 201023 is not yet fixed)

2006-02-09 Thread Ryan Underwood

On Fri, Feb 10, 2006 at 07:37:24AM +0100, Bart Martens wrote:
 
 Basically, yes.  There's just also a symlink created by the postinst I
 want to see deleted.  The attached patch should fix this bug.

I believe if anyone should be managing that link, it should be the
maintainer scripts of the dosemu-freedos package.

 + if [ -L /var/lib/dosemu/freedos ]
 + then
 + rm -f /var/lib/dosemu/freedos
 + fi
 + rmdir /var/lib/dosemu 2 /dev/null || true

-- 
Ryan Underwood, [EMAIL PROTECTED]


signature.asc
Description: Digital signature