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

Bug#776095: wheezy-pu: package sudo/1.8.5p2-1+nmu2



Package: release.debian.org
Severity: normal
Tags: wheezy
User: release.debian.org@packages.debian.org
Usertags: pu

I'd like to get a fix into wheezy to avoid dpkg complaining about
modified conffiles if /etc/sudoers is the unmodified version from lenny
(this happens on lenny -> squeeze -> wheezy upgrades). #660594
Fix is backported from 1.8.7-1, but adding only the md5sum from the
lenny config. Verified in piuparts that this allows smooth upgrades.

Version number is nonstandard since the wheezy version has a weird
version. Better suggestions welcome.


Andreas
diff -Nru sudo-1.8.5p2/debian/changelog sudo-1.8.5p2/debian/changelog
--- sudo-1.8.5p2/debian/changelog	2013-03-01 06:18:08.000000000 +0100
+++ sudo-1.8.5p2/debian/changelog	2015-01-23 22:16:01.000000000 +0100
@@ -1,3 +1,12 @@
+sudo (1.8.5p2-1+nmu2) wheezy; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport from 1.8.7-1: "recognize lenny and squeeze unmodified sudoers" to
+    avoid dpkg questions about modified conffiles on upgrades.
+    (Closes: #660594)
+
+ -- Andreas Beckmann <anbe@debian.org>  Fri, 23 Jan 2015 22:11:54 +0100
+
 sudo (1.8.5p2-1+nmu1) unstable; urgency=high
 
   * Non-maintainer upload by the Security Team.
diff -Nru sudo-1.8.5p2/debian/sudo.preinst sudo-1.8.5p2/debian/sudo.preinst
--- sudo-1.8.5p2/debian/sudo.preinst	2012-06-28 20:06:35.000000000 +0200
+++ sudo-1.8.5p2/debian/sudo.preinst	2015-01-23 22:11:08.000000000 +0100
@@ -8,7 +8,8 @@
 
       if [ -e "$SUDOERS" ]; then
         md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
-        if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then
+        if [ "$md5sum" = "c310ef4892a00cca8134f6e4fcd64b6d" ] ||      #lenny
+           [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then   #squeeze
 	    # move unchanged sudoers file to avoid conffile question
             mv "$SUDOERS" "$SUDOERS.pre-conffile"
         fi

Reply to: